Versions in this module Expand all Collapse all v1 v1.0.0 Oct 10, 2023 Changes in this version + const CFAccessTokenHeader + const LogFieldOriginURL + func BuildAccessRequest(options *StartOptions, log *zerolog.Logger) (*http.Request, error) + func IsAccessResponse(resp *http.Response) bool + func ResolveBastionDest(r *http.Request) (string, error) + func Serve(remoteConn Connection, listener net.Listener, shutdownC <-chan struct{}, ...) error + func SetBastionDest(header http.Header, destination string) + func StartClient(conn Connection, stream io.ReadWriter, options *StartOptions) error + func StartForwarder(conn Connection, address string, shutdownC <-chan struct{}, ...) error + type Connection interface + ServeStream func(*StartOptions, io.ReadWriter) error + func NewWSConnection(log *zerolog.Logger) Connection + type StartOptions struct + AppInfo *token.AppInfo + Headers http.Header + Host string + OriginURL string + TLSClientConfig *tls.Config + type StdinoutStream struct + func (c *StdinoutStream) Read(p []byte) (int, error) + func (c *StdinoutStream) Write(p []byte) (int, error) + type Websocket struct + func (ws *Websocket) ServeStream(options *StartOptions, conn io.ReadWriter) error