Documentation ¶
Index ¶
- func NewHandler(ctx context.Context, config *core.InboundHandlerConfig) (core.InboundHandler, error)
- type AlwaysOnInboundHandler
- type DynamicInboundHandler
- type Manager
- func (m *Manager) AddHandler(ctx context.Context, handler core.InboundHandler) error
- func (m *Manager) Close() error
- func (m *Manager) GetHandler(ctx context.Context, tag string) (core.InboundHandler, error)
- func (m *Manager) RemoveHandler(ctx context.Context, tag string) error
- func (m *Manager) Start() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
func NewHandler(ctx context.Context, config *core.InboundHandlerConfig) (core.InboundHandler, error)
NewHandler creates a new core.InboundHandler 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
func (*AlwaysOnInboundHandler) GetInbound ¶
func (h *AlwaysOnInboundHandler) GetInbound() proxy.Inbound
func (*AlwaysOnInboundHandler) GetRandomInboundProxy ¶
func (h *AlwaysOnInboundHandler) GetRandomInboundProxy() (interface{}, net.Port, int)
func (*AlwaysOnInboundHandler) Start ¶
func (h *AlwaysOnInboundHandler) Start() error
func (*AlwaysOnInboundHandler) Tag ¶
func (h *AlwaysOnInboundHandler) Tag() string
type DynamicInboundHandler ¶
type DynamicInboundHandler struct {
// contains filtered or unexported fields
}
func NewDynamicInboundHandler ¶
func NewDynamicInboundHandler(ctx context.Context, tag string, receiverConfig *proxyman.ReceiverConfig, proxyConfig interface{}) (*DynamicInboundHandler, error)
func (*DynamicInboundHandler) Close ¶
func (h *DynamicInboundHandler) Close() error
func (*DynamicInboundHandler) GetRandomInboundProxy ¶
func (h *DynamicInboundHandler) GetRandomInboundProxy() (interface{}, net.Port, int)
func (*DynamicInboundHandler) Start ¶
func (h *DynamicInboundHandler) Start() error
func (*DynamicInboundHandler) Tag ¶
func (h *DynamicInboundHandler) Tag() string
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager is to manage all inbound handlers.
func New ¶
New returns a new Manager for inbound handlers.
func (*Manager) AddHandler ¶
AddHandler implements core.InboundHandlerManager.
func (*Manager) GetHandler ¶
GetHandler implements core.InboundHandlerManager.
func (*Manager) RemoveHandler ¶
RemoveHandler implements core.InboundHandlerManager.
Click to show internal directories.
Click to hide internal directories.