Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WebsocketProtocolFor ¶
WebsocketProtocolFor returns the proper Websocket protocol based on the HTTP protocol
Types ¶
type MockPooler ¶
MockPooler is an autogenerated mock type for the Pooler type
func (*MockPooler) Pool ¶
func (_m *MockPooler) Pool() Pool
Pool provides a mock function with given fields:
type MockRequester ¶
MockRequester is an autogenerated mock type for the ProxyRequester type
func (*MockRequester) ProxyRequest ¶
func (_m *MockRequester) ProxyRequest(w http.ResponseWriter, r *http.Request, requestedURI string, port string, settings *Settings)
ProxyRequest provides a mock function with given fields: w, r, requestedURI, port, settings
type Settings ¶
func NewProxySettings ¶
func (*Settings) PortByNameOrNumber ¶
PortByNameOrNumber 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.
Click to show internal directories.
Click to hide internal directories.