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