Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DispatcherType ¶
func DispatcherType() interface{}
DispatcherType returns the type of Dispatcher interface. Can be used to implement common.HasType.
func RouterType ¶
func RouterType() interface{}
RouterType return the type of Router interface. Can be used to implement common.HasType.
Types ¶
type DefaultRouter ¶
type DefaultRouter struct{}
DefaultRouter is an implementation of Router, which always returns ErrNoClue for routing decisions.
type Dispatcher ¶
type Dispatcher interface { features.Feature // Dispatch returns a Ray for transporting data for the given request. Dispatch(ctx context.Context, dest net.Destination) (*vio.Link, error) }
Dispatcher is a feature that dispatches inbound requests to outbound handlers based on rules. Dispatcher is required to be registered in a V2Ray instance to make V2Ray function properly.
Click to show internal directories.
Click to hide internal directories.