gateway

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2022 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RedirectHTTP

func RedirectHTTP(logger *zap.Logger, bindAddr string, webPort int)

Types

type ALPN added in v0.4.0

type ALPN struct {
	// contains filtered or unexported fields
}

ALPN is a connection muxer based on TLS extension ALPN (NextProtos)

func NewALPNMux added in v0.4.0

func NewALPNMux(logger *zap.Logger, listner net.Listener) *ALPN

func (*ALPN) For added in v0.4.0

func (a *ALPN) For(protos ...alpn.ALPN) net.Listener

func (*ALPN) Serve added in v0.4.0

func (a *ALPN) Serve(ctx context.Context)

type Gateway

type Gateway struct {
	GatewayConfig
	// contains filtered or unexported fields
}

func New

func New(conf GatewayConfig) (*Gateway, error)

func (*Gateway) Start

func (g *Gateway) Start(ctx context.Context)

type GatewayConfig

type GatewayConfig struct {
	Logger      *zap.Logger
	Multiplexer *server.Server
	Listener    net.Listener
	RootDomain  string
	GatewayPort int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL