Documentation
¶
Index ¶
- Constants
- Variables
- func CalcAvg(slice []int) int
- func ConsolidateMods() []common.RcmfRule
- func GetProxyServemux(proxy *httputil.ReverseProxy, closeF *func() error) *http.ServeMux
- func IndentBytes(input []byte, prefix, indent string) []byte
- func LookupIps() (cdnIp net.IP, assetDeliveryIp net.IP)
- func ModifyHostsFile(add bool)
- func NewBodyDecodingReader(encoding string, body io.Reader) (io.Reader, error)
- func RunProxyWriteLoop(ctx context.Context)
- func StartProxy()
- type ContentRepresentationSpecifier
- type ProxyContextKey
- type V1BatchRequest
- type V1BatchResponse
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 ConsolidateMods ¶
func GetProxyServemux ¶
func GetProxyServemux(proxy *httputil.ReverseProxy, closeF *func() error) *http.ServeMux
func IndentBytes ¶
func ModifyHostsFile ¶
func ModifyHostsFile(add bool)
func NewBodyDecodingReader ¶
not up to spec but who cares
func RunProxyWriteLoop ¶
func StartProxy ¶
func StartProxy()
Types ¶
type ContentRepresentationSpecifier ¶
type ContentRepresentationSpecifier struct {
Format string `json:"format"`
}
type V1BatchRequest ¶
type V1BatchResponse ¶
type V1BatchResponse struct {
Location string `json:"location"`
AssetTypeId int `json:"assetTypeId"`
ContentRepresentationSpecifier ContentRepresentationSpecifier `json:"contentRepresentationSpecifier"`
}
Click to show internal directories.
Click to hide internal directories.