Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServeProxy ¶
func ServeProxy(ctx context.Context, frontend ProxyFrontend, conn quic.Connection, callback func(Allocation) error) error
Types ¶
type Allocation ¶
type Allocation struct {
Endpoint string
}
type Handlers ¶
type Handlers struct { OnAllocation func(Allocation) error OnCleanup func(Allocation, error) HandleConn func(net.Conn) }
type ProxyFrontend ¶
type ProxyProtoFrontend ¶
type ProxyProtoFrontend struct { ListenPort int PortStart, PortEnd int PublicAddr string // contains filtered or unexported fields }
func (*ProxyProtoFrontend) Handle ¶
func (pf *ProxyProtoFrontend) Handle(ctx context.Context, handlers Handlers) error
func (*ProxyProtoFrontend) ListenAndServe ¶
func (pf *ProxyProtoFrontend) ListenAndServe(ctx context.Context) error
type RawFrontend ¶
type RawFrontend struct {
PublicAddr string
}
func (RawFrontend) Handle ¶
func (rf RawFrontend) Handle(ctx context.Context, handlers Handlers) error
func (RawFrontend) ListenAndServe ¶
func (rf RawFrontend) ListenAndServe(ctx context.Context) error
type ServerOpts ¶
type ServerOpts struct { ProxyFrontend ProxyFrontend ListenAddr string Subjects tlscerts.Subjects EnableGitHubOIDC bool }
Click to show internal directories.
Click to hide internal directories.