Documentation ¶
Index ¶
- func NewError(logger logger.ContextLogger, ctx context.Context, err error)deprecated
- func NewInbound(ctx context.Context, router adapter.Router, logger log.ContextLogger, ...) (adapter.Inbound, error)
- func NewOutbound(ctx context.Context, router adapter.Router, logger log.ContextLogger, ...) (adapter.Outbound, error)
- func RegisterInbound(registry *inbound.Registry)
- func RegisterOutbound(registry *outbound.Registry)
- type Inbound
- func (h *Inbound) Close() error
- func (h *Inbound) NewConnection(ctx context.Context, conn net.Conn, metadata adapter.InboundContext) error
- func (h *Inbound) NewConnectionEx(ctx context.Context, conn net.Conn, metadata adapter.InboundContext, ...)
- func (h *Inbound) NewError(ctx context.Context, err error)
- func (h *Inbound) Start() error
- type Outbound
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInbound ¶
func NewOutbound ¶
func RegisterInbound ¶
func RegisterOutbound ¶
Types ¶
type Inbound ¶
func (*Inbound) NewConnection ¶
func (*Inbound) NewConnectionEx ¶
func (h *Inbound) NewConnectionEx(ctx context.Context, conn net.Conn, metadata adapter.InboundContext, onClose N.CloseHandlerFunc)
type Outbound ¶
func (*Outbound) DialContext ¶
func (*Outbound) InterfaceUpdated ¶
func (h *Outbound) InterfaceUpdated()
func (*Outbound) ListenPacket ¶
Click to show internal directories.
Click to hide internal directories.