package
0.0.0-20200811080959-ee406237c64f
Repository: https://github.com/telexy324/grpc-websocket-proxy.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
WebsocketProxy attempts to expose the underlying handler as a bidi websocket stream with newline-delimited JSON as the content encoding.
WithForwardedHeaders allows controlling which headers are forwarded.
WithLogger allows a custom FieldLogger to be supplied.
WithMaxRespBodyBufferSize allows specification of a custom size for the buffer used while reading the response body.
WithMethodParamOverride allows specification of the special http parameter that is used in the proxied streaming request.
WithPingControl allows specification of ping pong control.
WithRequestMutator allows a custom RequestMutatorFunc to be supplied.
WithTokenCookieName allows specification of the cookie that is supplied as an upstream 'Authorization: Bearer' http header.

# Constants

No description provided by the author
WriteWait is 1 second at the internal implementation, same as here but this can be changed at the future*.

# Variables

No description provided by the author
ErrAlreadyDisconnected can be reported on the `Connection#Disconnect` function whenever the caller tries to close the connection when it is already closed by the client or the caller previously.
MethodOverrideParam defines the special URL parameter that is translated into the subsequent proxied streaming http request's method.
TokenCookieName defines the cookie name that is translated to an 'Authorization: Bearer' header in the streaming http request's headers.

# Structs

No description provided by the author
Proxy provides websocket transport upgrade to compatible endpoints.
No description provided by the author

# Interfaces

Logger collects log messages.

# Type aliases

No description provided by the author
No description provided by the author
Option allows customization of the proxy.
RequestMutatorFunc can supply an alternate outgoing request.