Documentation
¶
Index ¶
- func IsLocal(ip net.IP) bool
- func NewHandler(ctx context.Context, config *core.InboundHandlerConfig) (inbound.Handler, error)
- type AlwaysOnInboundHandler
- func (h *AlwaysOnInboundHandler) Close() error
- func (h *AlwaysOnInboundHandler) GetInbound() proxy.Inbound
- func (h *AlwaysOnInboundHandler) ProxySettings() *serial.TypedMessage
- func (h *AlwaysOnInboundHandler) ReceiverSettings() *serial.TypedMessage
- func (h *AlwaysOnInboundHandler) Start() error
- func (h *AlwaysOnInboundHandler) Tag() string
- type Manager
- func (m *Manager) AddHandler(ctx context.Context, handler inbound.Handler) error
- func (m *Manager) Close() error
- func (m *Manager) GetHandler(ctx context.Context, tag string) (inbound.Handler, error)
- func (m *Manager) ListHandlers(ctx context.Context) []inbound.Handler
- func (m *Manager) RemoveHandler(ctx context.Context, tag string) error
- func (m *Manager) Start() error
- func (*Manager) Type() interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
NewHandler creates a new inbound.Handler based on the given config.
Types ¶
type AlwaysOnInboundHandler ¶
type AlwaysOnInboundHandler struct {
// contains filtered or unexported fields
}
func NewAlwaysOnInboundHandler ¶
func NewAlwaysOnInboundHandler(ctx context.Context, tag string, receiverConfig *proxyman.ReceiverConfig, proxyConfig interface{}) (*AlwaysOnInboundHandler, error)
func (*AlwaysOnInboundHandler) Close ¶
func (h *AlwaysOnInboundHandler) Close() error
Close implements common.Closable.
func (*AlwaysOnInboundHandler) GetInbound ¶
func (h *AlwaysOnInboundHandler) GetInbound() proxy.Inbound
func (*AlwaysOnInboundHandler) ProxySettings ¶
func (h *AlwaysOnInboundHandler) ProxySettings() *serial.TypedMessage
ProxySettings implements inbound.Handler.
func (*AlwaysOnInboundHandler) ReceiverSettings ¶
func (h *AlwaysOnInboundHandler) ReceiverSettings() *serial.TypedMessage
ReceiverSettings implements inbound.Handler.
func (*AlwaysOnInboundHandler) Start ¶
func (h *AlwaysOnInboundHandler) Start() error
Start implements common.Runnable.
func (*AlwaysOnInboundHandler) Tag ¶
func (h *AlwaysOnInboundHandler) Tag() string
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager manages all inbound handlers.
func (*Manager) AddHandler ¶
AddHandler implements inbound.Manager.
func (*Manager) GetHandler ¶
GetHandler implements inbound.Manager.
func (*Manager) ListHandlers ¶
ListHandlers implements inbound.Manager.
func (*Manager) RemoveHandler ¶
RemoveHandler implements inbound.Manager.
Click to show internal directories.
Click to hide internal directories.