proxy

package
v0.0.0-...-60cf890 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: GPL-3.0 Imports: 24 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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