Documentation ¶
Overview ¶
Package connectutil provides a reference implementation for Connect integrated with the Gate proxy.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequireEndpointName ¶
func RequireEndpointName(ln EndpointListener) connect.EndpointListener
RequireEndpointName requires that an EndpointWatch provides the name in metadata.
func RequireTunnelSessionID ¶
func RequireTunnelSessionID(ln TunnelListener) connect.TunnelListener
RequireTunnelSessionID requires that a tunnel provides session id metadata.
Types ¶
type Endpoint ¶
type Endpoint interface { Name() string // The endpoint name. connect.EndpointWatch // The watching endpoint. }
Endpoint is an endpoint (server) used to propose sessions or receive rejections.
type EndpointListener ¶
EndpointListener accepts an Endpoint and should block until the endpoint's context is canceled or an error occurred while accepting.
type InboundTunnel ¶
InboundTunnel is a tunnel with its session id.
type TunnelListener ¶
type TunnelListener interface {
AcceptTunnel(context.Context, InboundTunnel) error
}
TunnelListener accepts InboundTunnel.
Directories ¶
Path | Synopsis |
---|---|
Package single combines connect.EndpointAcceptor and connect.TunnelAcceptor into Acceptor allowing to run WatchService and TunnelService in the same instance.
|
Package single combines connect.EndpointAcceptor and connect.TunnelAcceptor into Acceptor allowing to run WatchService and TunnelService in the same instance. |
Click to show internal directories.
Click to hide internal directories.