Documentation ¶
Index ¶
- func CopyEarlyConn(ctx context.Context, conn net.Conn, serverConn net.Conn) error
- func NewConnection(ctx context.Context, this N.Dialer, conn net.Conn, ...) error
- func NewDirectConnection(ctx context.Context, router adapter.Router, this N.Dialer, conn net.Conn, ...) error
- func NewDirectPacketConnection(ctx context.Context, router adapter.Router, this N.Dialer, conn N.PacketConn, ...) error
- func NewPacketConnection(ctx context.Context, this N.Dialer, conn N.PacketConn, ...) error
- func Register[Options any](registry *Registry, outboundType string, constructor ConstructorFunc[Options])
- type Adapter
- type ConstructorFunc
- type Manager
- func (m *Manager) Close() error
- func (m *Manager) Create(ctx context.Context, router adapter.Router, logger log.ContextLogger, ...) error
- func (m *Manager) Default() adapter.Outbound
- func (m *Manager) Initialize(defaultOutboundFallback adapter.Outbound)
- func (m *Manager) Outbound(tag string) (adapter.Outbound, bool)
- func (m *Manager) Outbounds() []adapter.Outbound
- func (m *Manager) Remove(tag string) error
- func (m *Manager) Start(stage adapter.StartStage) error
- type Registry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyEarlyConn ¶
func NewConnection ¶
func NewDirectConnection ¶
func NewPacketConnection ¶
func NewPacketConnection(ctx context.Context, this N.Dialer, conn N.PacketConn, metadata adapter.InboundContext) error
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
func NewAdapter ¶
func (*Adapter) Dependencies ¶
type ConstructorFunc ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager(logger logger.ContextLogger, registry adapter.OutboundRegistry, defaultTag string) *Manager
func (*Manager) Initialize ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
func NewRegistry() *Registry
Click to show internal directories.
Click to hide internal directories.