register

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dialer

func Dialer(p *point.Point) (r netapi.Proxy, err error)

func GetNetworkOneofValue

func GetNetworkOneofValue(i *listener.Inbound) proto.Message

func GetPointValue

func GetPointValue(i *protocol.Protocol) proto.Message

func GetProtocolOneofValue

func GetProtocolOneofValue(i *listener.Inbound) proto.Message

func GetTransportOneofValue

func GetTransportOneofValue(i *listener.Transport) proto.Message

func IsBootstrap

func IsBootstrap(p netapi.Proxy) bool

func Listen

func Listen(config *listener.Inbound, handler netapi.Handler) (netapi.Accepter, error)

func Network

func Network(config proto.Message) (netapi.Listener, error)

func NewBootstrapDnsWarp

func NewBootstrapDnsWarp(p netapi.Proxy) netapi.Proxy

func ParseCertificates

func ParseCertificates(t *listener.TlsConfig) []tls.Certificate

func ParseServerNameCertificate

func ParseServerNameCertificate(t *listener.TlsConfig) *trie.Trie[*tls.Certificate]

func ParseTLS

func ParseTLS(t *listener.TlsConfig) (*tls.Config, error)

func ParseTLSConfig

func ParseTLSConfig(t *protocol.TlsConfig) *tls.Config

func Protocols

func Protocols(lis netapi.Listener, config proto.Message, handler netapi.Handler) (netapi.Accepter, error)

func RegisterNetwork

func RegisterNetwork[T proto.Message](wrap func(T) (netapi.Listener, error))

func RegisterPoint

func RegisterPoint[T proto.Message](wrap func(T, netapi.Proxy) (netapi.Proxy, error))

func RegisterProtocol

func RegisterProtocol[T proto.Message](wrap func(T, netapi.Listener, netapi.Handler) (netapi.Accepter, error))

func RegisterTransport

func RegisterTransport[T proto.Message](wrap func(T, netapi.Listener) (netapi.Listener, error))

func SetBootstrap

func SetBootstrap(p netapi.Proxy)

func Transports

func Transports(lis netapi.Listener, protocols []*listener.Transport) (netapi.Listener, error)

func Wrap

func Wrap(p proto.Message, x netapi.Proxy) (netapi.Proxy, error)

func X509KeyPair

func X509KeyPair(c *listener.Certificate) (tls.Certificate, error)

Types

type TlsConfigManager

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

func NewTlsConfigManager

func NewTlsConfigManager(t *listener.TlsConfig) *TlsConfigManager

func (*TlsConfigManager) Refresh

func (t *TlsConfigManager) Refresh()

type WrapProxy

type WrapProxy[T proto.Message] func(t T, p netapi.Proxy) (netapi.Proxy, error)

Jump to

Keyboard shortcuts

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