core: v2ray.com/core/app/proxyman/inbound Index | Files

package inbound

import "v2ray.com/core/app/proxyman/inbound"

Index

Package Files

always.go dynamic.go errors.generated.go inbound.go worker.go

func NewHandler Uses

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

NewHandler creates a new inbound.Handler based on the given config.

type AlwaysOnInboundHandler Uses

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

func NewAlwaysOnInboundHandler Uses

func NewAlwaysOnInboundHandler(ctx context.Context, tag string, receiverConfig *proxyman.ReceiverConfig, proxyConfig interface{}) (*AlwaysOnInboundHandler, error)

func (*AlwaysOnInboundHandler) Close Uses

func (h *AlwaysOnInboundHandler) Close() error

Close implements common.Closable.

func (*AlwaysOnInboundHandler) GetInbound Uses

func (h *AlwaysOnInboundHandler) GetInbound() proxy.Inbound

func (*AlwaysOnInboundHandler) GetRandomInboundProxy Uses

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

func (*AlwaysOnInboundHandler) Start Uses

func (h *AlwaysOnInboundHandler) Start() error

Start implements common.Runnable.

func (*AlwaysOnInboundHandler) Tag Uses

func (h *AlwaysOnInboundHandler) Tag() string

type DynamicInboundHandler Uses

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

func NewDynamicInboundHandler Uses

func NewDynamicInboundHandler(ctx context.Context, tag string, receiverConfig *proxyman.ReceiverConfig, proxyConfig interface{}) (*DynamicInboundHandler, error)

func (*DynamicInboundHandler) Close Uses

func (h *DynamicInboundHandler) Close() error

func (*DynamicInboundHandler) GetRandomInboundProxy Uses

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

func (*DynamicInboundHandler) Start Uses

func (h *DynamicInboundHandler) Start() error

func (*DynamicInboundHandler) Tag Uses

func (h *DynamicInboundHandler) Tag() string

type Manager Uses

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

Manager is to manage all inbound handlers.

func New Uses

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

New returns a new Manager for inbound handlers.

func (*Manager) AddHandler Uses

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

AddHandler implements inbound.Manager.

func (*Manager) Close Uses

func (m *Manager) Close() error

Close implements common.Closable.

func (*Manager) GetHandler Uses

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

GetHandler implements inbound.Manager.

func (*Manager) RemoveHandler Uses

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

RemoveHandler implements inbound.Manager.

func (*Manager) Start Uses

func (m *Manager) Start() error

Start implements common.Runnable.

func (*Manager) Type Uses

func (*Manager) Type() interface{}

Type implements common.HasType.

Package inbound imports 25 packages (graph) and is imported by 2 packages. Updated 2019-07-19. Refresh now. Tools for package owners.