Documentation ¶
Index ¶
- func NewRouterWithOptions(router adapter.ConnectionRouterEx, logger logger.ContextLogger, ...) (adapter.ConnectionRouterEx, error)
- type Client
- type Router
- func (r *Router) RouteConnection(ctx context.Context, conn net.Conn, metadata adapter.InboundContext) errordeprecated
- func (r *Router) RouteConnectionEx(ctx context.Context, conn net.Conn, metadata adapter.InboundContext, ...)
- func (r *Router) RoutePacketConnection(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext) errordeprecated
- func (r *Router) RoutePacketConnectionEx(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRouterWithOptions ¶ added in v1.7.0
func NewRouterWithOptions(router adapter.ConnectionRouterEx, logger logger.ContextLogger, options option.InboundMultiplexOptions) (adapter.ConnectionRouterEx, error)
Types ¶
type Router ¶ added in v1.7.0
type Router struct {
// contains filtered or unexported fields
}
func (*Router) RouteConnection
deprecated
added in
v1.7.0
func (*Router) RouteConnectionEx ¶
func (r *Router) RouteConnectionEx(ctx context.Context, conn net.Conn, metadata adapter.InboundContext, onClose N.CloseHandlerFunc)
func (*Router) RoutePacketConnection
deprecated
added in
v1.7.0
func (r *Router) RoutePacketConnection(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext) error
Deprecated: Use RoutePacketConnectionEx instead.
func (*Router) RoutePacketConnectionEx ¶
func (r *Router) RoutePacketConnectionEx(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext, onClose N.CloseHandlerFunc)
Click to show internal directories.
Click to hide internal directories.