{"modulePath":"gitlab.com/gitlab-org/gitlab-ci-multi-runner.git","version":"v12.5.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package proxy\n\n## Functions\n\n```go\nfunc WebsocketProtocolFor(httpProtocol string) string\n```\nWebsocketProtocolFor returns the proper Websocket protocol based on the HTTP protocol\n\n## Types\n\n```go\ntype MockPooler struct {\n\tmock.Mock\n}\n```\nMockPooler is an autogenerated mock type for the Pooler type\n\n```go\nfunc (_m *MockPooler) Pool() Pool\n```\nPool provides a mock function with given fields:\n\n```go\ntype MockRequester struct {\n\tmock.Mock\n}\n```\nMockRequester is an autogenerated mock type for the ProxyRequester type\n\n```go\nfunc (_m *MockRequester) ProxyRequest(w http.ResponseWriter, r *http.Request, requestedURI string, port string, settings *Settings)\n```\nProxyRequest provides a mock function with given fields: w, r, requestedURI, port, settings\n\n```go\ntype Pool map[string]*Proxy\n```\n\n```go\nfunc NewPool() Pool\n```\n\n```go\ntype Pooler interface {\n\tPool() Pool\n}\n```\n\n```go\ntype Port struct {\n\tNumber   int\n\tProtocol string\n\tName     string\n}\n```\n\n```go\nfunc (p *Port) Scheme() (string, error)\n```\n\n```go\ntype Proxy struct {\n\tSettings          *Settings\n\tConnectionHandler Requester\n}\n```\n\n```go\ntype Requester interface {\n\tProxyRequest(w http.ResponseWriter, r *http.Request, requestedURI, port string, settings *Settings)\n}\n```\n\n```go\ntype Settings struct {\n\tServiceName string\n\tPorts       []Port\n}\n```\n\n```go\nfunc NewProxySettings(serviceName string, ports []Port) *Settings\n```\n\n```go\nfunc (p *Settings) PortByNameOrNumber(portNameOrNumber string) (Port, error)\n```\nPortByNameOrNumber accepts both a port number or a port name. It will try to convert the method into an integer and then search if there is any port number with that value or any port name by the param value.\n\n","path":"gitlab.com/gitlab-org/gitlab-ci-multi-runner.git/session/proxy","name":"proxy","synopsis":"","isRedistributable":true}
