import "github.com/v2ray/v2ray-core/app/dispatcher"
config.pb.go default.go dispatcher.go errors.generated.go sniffer.go stats.go
var File_app_dispatcher_config_proto protoreflect.FileDescriptor
type Config struct { Settings *SessionConfig `protobuf:"bytes,1,opt,name=settings,proto3" json:"settings,omitempty"` // contains filtered or unexported fields }
Deprecated: Use Config.ProtoReflect.Descriptor instead.
func (x *Config) GetSettings() *SessionConfig
func (x *Config) ProtoReflect() protoreflect.Message
type DefaultDispatcher struct {
// contains filtered or unexported fields
}
DefaultDispatcher is a default implementation of Dispatcher.
func (*DefaultDispatcher) Close() error
Close implements common.Closable.
func (d *DefaultDispatcher) Dispatch(ctx context.Context, destination net.Destination) (*transport.Link, error)
Dispatch implements routing.Dispatcher.
func (d *DefaultDispatcher) Init(config *Config, om outbound.Manager, router routing.Router, pm policy.Manager, sm stats.Manager) error
Init initializes DefaultDispatcher.
func (*DefaultDispatcher) Start() error
Start implements common.Runnable.
func (*DefaultDispatcher) Type() interface{}
Type implements common.HasType.
type SessionConfig struct {
// contains filtered or unexported fields
}
func (*SessionConfig) Descriptor() ([]byte, []int)
Deprecated: Use SessionConfig.ProtoReflect.Descriptor instead.
func (*SessionConfig) ProtoMessage()
func (x *SessionConfig) ProtoReflect() protoreflect.Message
func (x *SessionConfig) Reset()
func (x *SessionConfig) String() string
func (w *SizeStatWriter) Close() error
func (w *SizeStatWriter) Interrupt()
func (w *SizeStatWriter) WriteMultiBuffer(mb buf.MultiBuffer) error
type Sniffer struct {
// contains filtered or unexported fields
}
func (s *Sniffer) Sniff(payload []byte) (SniffResult, error)
Package dispatcher imports 26 packages (graph) and is imported by 10 packages. Updated 2020-12-29. Refresh now. Tools for package owners.