Versions in this module Expand all Collapse all v25 v25.1.1 Jan 1, 2025 Changes in this version + func DispatcherType() interface + func RouterType() interface + type BalancerOverrider interface + GetOverrideTarget func(tag string) (string, error) + SetOverrideTarget func(tag, target string) error + type BalancerPrincipleTarget interface + GetPrincipleTarget func(tag string) ([]string, error) + type Context interface + GetAttributes func() map[string]string + GetInboundTag func() string + GetNetwork func() net.Network + GetProtocol func() string + GetSkipDNSResolve func() bool + GetSourceIPs func() []net.IP + GetSourcePort func() net.Port + GetTargetDomain func() string + GetTargetIPs func() []net.IP + GetTargetPort func() net.Port + GetUser func() string + type DefaultRouter struct + func (DefaultRouter) AddRule(config *serial.TypedMessage, shouldAppend bool) error + func (DefaultRouter) Close() error + func (DefaultRouter) PickRoute(ctx Context) (Route, error) + func (DefaultRouter) RemoveRule(tag string) error + func (DefaultRouter) Start() error + func (DefaultRouter) Type() interface{} + type Dispatcher interface + Dispatch func(ctx context.Context, dest net.Destination) (*transport.Link, error) + DispatchLink func(ctx context.Context, dest net.Destination, link *transport.Link) error + type Route interface + GetOutboundGroupTags func() []string + GetOutboundTag func() string + GetRuleTag func() string + type Router interface + AddRule func(config *serial.TypedMessage, shouldAppend bool) error + PickRoute func(ctx Context) (Route, error) + RemoveRule func(tag string) error Other modules containing this package github.com/xmplusdev/xray-core github.com/xmplusdev/xray-core/v24