Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRouterWithOptions ¶
func NewRouterWithOptions(router adapter.ConnectionRouter, logger logger.ContextLogger, options option.InboundMultiplexOptions) (adapter.ConnectionRouter, error)
func NewV2RayLegacyRouter ¶
func NewV2RayLegacyRouter(router adapter.ConnectionRouter, logger logger.ContextLogger) adapter.ConnectionRouter
Types ¶
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
func (*Router) RouteConnection ¶
func (*Router) RoutePacketConnection ¶
func (r *Router) RoutePacketConnection(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext) error
type V2RayLegacyRouter ¶
type V2RayLegacyRouter struct {
// contains filtered or unexported fields
}
func (*V2RayLegacyRouter) RouteConnection ¶
func (r *V2RayLegacyRouter) RouteConnection(ctx context.Context, conn net.Conn, metadata adapter.InboundContext) error
func (*V2RayLegacyRouter) RoutePacketConnection ¶
func (r *V2RayLegacyRouter) RoutePacketConnection(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext) error
Click to show internal directories.
Click to hide internal directories.