Documentation ¶
Index ¶
- func CreateInboundConfig(protocol string, data []byte) (interface{}, error)
- func CreateInboundHandler(name string, space app.Space, rawConfig []byte, meta *proxy.InboundHandlerMeta) (proxy.InboundHandler, error)
- func CreateOutboundConfig(protocol string, data []byte) (interface{}, error)
- func CreateOutboundHandler(name string, space app.Space, rawConfig []byte, ...) (proxy.OutboundHandler, error)
- func MustRegisterInboundHandlerCreator(name string, creator InboundHandlerFactory)
- func MustRegisterOutboundHandlerCreator(name string, creator OutboundHandlerFactory)
- func RegisterInboundConfig(protocol string, creator loader.ConfigCreator) error
- func RegisterInboundHandlerCreator(name string, creator InboundHandlerFactory) error
- func RegisterOutboundConfig(protocol string, creator loader.ConfigCreator) error
- func RegisterOutboundHandlerCreator(name string, creator OutboundHandlerFactory) error
- type InboundHandlerFactory
- type OutboundHandlerFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateInboundConfig ¶
func CreateInboundHandler ¶
func CreateInboundHandler(name string, space app.Space, rawConfig []byte, meta *proxy.InboundHandlerMeta) (proxy.InboundHandler, error)
func CreateOutboundConfig ¶
func CreateOutboundHandler ¶
func CreateOutboundHandler(name string, space app.Space, rawConfig []byte, meta *proxy.OutboundHandlerMeta) (proxy.OutboundHandler, error)
func MustRegisterInboundHandlerCreator ¶
func MustRegisterInboundHandlerCreator(name string, creator InboundHandlerFactory)
func MustRegisterOutboundHandlerCreator ¶
func MustRegisterOutboundHandlerCreator(name string, creator OutboundHandlerFactory)
func RegisterInboundConfig ¶
func RegisterInboundConfig(protocol string, creator loader.ConfigCreator) error
func RegisterInboundHandlerCreator ¶
func RegisterInboundHandlerCreator(name string, creator InboundHandlerFactory) error
func RegisterOutboundConfig ¶
func RegisterOutboundConfig(protocol string, creator loader.ConfigCreator) error
func RegisterOutboundHandlerCreator ¶
func RegisterOutboundHandlerCreator(name string, creator OutboundHandlerFactory) error
Types ¶
type InboundHandlerFactory ¶
type InboundHandlerFactory interface { StreamCapability() v2net.NetworkList Create(space app.Space, config interface{}, meta *proxy.InboundHandlerMeta) (proxy.InboundHandler, error) }
type OutboundHandlerFactory ¶
type OutboundHandlerFactory interface { StreamCapability() v2net.NetworkList Create(space app.Space, config interface{}, meta *proxy.OutboundHandlerMeta) (proxy.OutboundHandler, error) }
Click to show internal directories.
Click to hide internal directories.