proxy

package
v0.0.0-...-2afb73b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2026 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const DelaySamples = 30

Variables

View Source
var LockedConn *websocket.Conn
View Source
var ModifyResponseAssetDeliveryDelaysNs = []int{}
View Source
var ModifyResponseCdnDelaysNs = []int{}
View Source
var RewriteDelaysNs = []int{}

Functions

func CalcAvg

func CalcAvg(slice []int) int

func ConsolidateMods

func ConsolidateMods() []common.RcmfRule

func GetProxyServemux

func GetProxyServemux(proxy *httputil.ReverseProxy, closeF *func() error) *http.ServeMux

func IndentBytes

func IndentBytes(input []byte, prefix, indent string) []byte

func LookupIps

func LookupIps() (cdnIp net.IP, assetDeliveryIp net.IP)

func ModifyHostsFile

func ModifyHostsFile(add bool)

func NewBodyDecodingReader

func NewBodyDecodingReader(encoding string, body io.Reader) (io.Reader, error)

not up to spec but who cares

func RunProxyWriteLoop

func RunProxyWriteLoop(ctx context.Context)

func StartProxy

func StartProxy()

Types

type ContentRepresentationSpecifier

type ContentRepresentationSpecifier struct {
	Format string `json:"format"`
}

type ProxyContextKey

type ProxyContextKey int
const (
	RequestIds ProxyContextKey = 0
)

type V1BatchRequest

type V1BatchRequest struct {
	AssetId   int    `json:"assetId"`
	RequestId string `json:"requestId"`
}

type V1BatchResponse

type V1BatchResponse struct {
	Location                       string                         `json:"location"`
	AssetTypeId                    int                            `json:"assetTypeId"`
	ContentRepresentationSpecifier ContentRepresentationSpecifier `json:"contentRepresentationSpecifier"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL