inbound

package
v1.250910.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2025 License: MPL-2.0 Imports: 29 Imported by: 73

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsLocal added in v1.250910.0

func IsLocal(ip net.IP) bool

func NewHandler

func NewHandler(ctx context.Context, config *core.InboundHandlerConfig) (inbound.Handler, error)

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) GetRandomInboundProxy

func (h *AlwaysOnInboundHandler) GetRandomInboundProxy() (interface{}, net.Port, int)

func (*AlwaysOnInboundHandler) ProxySettings added in v1.250608.0

func (h *AlwaysOnInboundHandler) ProxySettings() *serial.TypedMessage

ProxySettings implements inbound.Handler.

func (*AlwaysOnInboundHandler) ReceiverSettings added in v1.250608.0

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 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) ProxySettings added in v1.250608.0

func (h *DynamicInboundHandler) ProxySettings() *serial.TypedMessage

ProxySettings implements inbound.Handler.

func (*DynamicInboundHandler) ReceiverSettings added in v1.250608.0

func (h *DynamicInboundHandler) ReceiverSettings() *serial.TypedMessage

ReceiverSettings implements inbound.Handler.

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 manages all inbound handlers.

func New

func New(ctx context.Context, config *proxyman.InboundConfig) (*Manager, error)

New returns a new Manager for inbound handlers.

func (*Manager) AddHandler

func (m *Manager) AddHandler(ctx context.Context, handler inbound.Handler) error

AddHandler implements inbound.Manager.

func (*Manager) Close

func (m *Manager) Close() error

Close implements common.Closable.

func (*Manager) GetHandler

func (m *Manager) GetHandler(ctx context.Context, tag string) (inbound.Handler, error)

GetHandler implements inbound.Manager.

func (*Manager) ListHandlers added in v1.250608.0

func (m *Manager) ListHandlers(ctx context.Context) []inbound.Handler

ListHandlers implements inbound.Manager.

func (*Manager) RemoveHandler

func (m *Manager) RemoveHandler(ctx context.Context, tag string) error

RemoveHandler implements inbound.Manager.

func (*Manager) Start

func (m *Manager) Start() error

Start implements common.Runnable.

func (*Manager) Type

func (*Manager) Type() interface{}

Type implements common.HasType.

Jump to

Keyboard shortcuts

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