Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeadlineReadWriteCloser ¶
type DeadlineReadWriteCloser interface {
io.ReadWriteCloser
SetReadDeadline(time.Time) error
}
type Gateway ¶
type Gateway struct {
GatewayConfig
// contains filtered or unexported fields
}
func New ¶
func New(conf GatewayConfig) *Gateway
func (*Gateway) AttachRouter ¶
func (g *Gateway) AttachRouter(ctx context.Context, router *transport.StreamRouter)
func (*Gateway) HandshakeEarlyHint ¶
inspiration from https://blog.cloudflare.com/eliminating-cold-starts-with-cloudflare-workers/ warm the route cache when tls handshake begins
type GatewayConfig ¶
type GatewayConfig struct {
Handlers InternalHandlers
PKIServer protocol.PKIService
TunnelServer tun.Server
HTTPListener net.Listener
H2Listener net.Listener
H3Listener q.Listener
Logger *zap.Logger
HandshakeHintFunc cipher.OnHandshakeFunc
AdminUser string
AdminPass string
RootDomains []string
GatewayPort int
Options Options
}
type InternalHandlers ¶
Click to show internal directories.
Click to hide internal directories.