Documentation ¶
Index ¶
- type Config
- func (*Config) Descriptor() ([]byte, []int)
- func (m *Config) GetSettings() *SessionConfig
- func (*Config) ProtoMessage()
- func (m *Config) Reset()
- func (m *Config) String() string
- func (m *Config) XXX_DiscardUnknown()
- func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Config) XXX_Merge(src proto.Message)
- func (m *Config) XXX_Size() int
- func (m *Config) XXX_Unmarshal(b []byte) error
- type DefaultDispatcher
- func (d *DefaultDispatcher) Close() error
- func (d *DefaultDispatcher) Dispatch(ctx context.Context, destination net.Destination) (*transport.Link, error)
- func (d *DefaultDispatcher) Init(config *Config, om outbound.Manager, router routing.Router, pm policy.Manager, ...) error
- func (d *DefaultDispatcher) Start() error
- func (*DefaultDispatcher) Type() interface{}
- type InboundSizeWriter
- type OutboundSizeWriter
- type SessionConfig
- func (*SessionConfig) Descriptor() ([]byte, []int)
- func (*SessionConfig) ProtoMessage()
- func (m *SessionConfig) Reset()
- func (m *SessionConfig) String() string
- func (m *SessionConfig) XXX_DiscardUnknown()
- func (m *SessionConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SessionConfig) XXX_Merge(src proto.Message)
- func (m *SessionConfig) XXX_Size() int
- func (m *SessionConfig) XXX_Unmarshal(b []byte) error
- type SizeStatWriter
- type SniffResult
- type Sniffer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Settings *SessionConfig `protobuf:"bytes,1,opt,name=settings,proto3" json:"settings,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Config) Descriptor ¶
func (*Config) GetSettings ¶
func (m *Config) GetSettings() *SessionConfig
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) XXX_DiscardUnknown ¶
func (m *Config) XXX_DiscardUnknown()
func (*Config) XXX_Marshal ¶
func (*Config) XXX_Unmarshal ¶
type DefaultDispatcher ¶
type DefaultDispatcher struct {
// contains filtered or unexported fields
}
DefaultDispatcher is a default implementation of Dispatcher.
func (*DefaultDispatcher) Close ¶
func (d *DefaultDispatcher) Close() error
Close implements common.Closable.
func (*DefaultDispatcher) Dispatch ¶
func (d *DefaultDispatcher) Dispatch(ctx context.Context, destination net.Destination) (*transport.Link, error)
Dispatch implements routing.Dispatcher.
func (*DefaultDispatcher) Init ¶
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 ¶
func (d *DefaultDispatcher) Start() error
Start implements common.Runnable.
func (*DefaultDispatcher) Type ¶
func (*DefaultDispatcher) Type() interface{}
Type implements common.HasType.
type InboundSizeWriter ¶
type InboundSizeWriter struct { Session *tstats.Session Writer buf.LinkWriter }
func (*InboundSizeWriter) Close ¶
func (w *InboundSizeWriter) Close() error
func (*InboundSizeWriter) Interrupt ¶
func (w *InboundSizeWriter) Interrupt()
func (*InboundSizeWriter) WriteMultiBuffer ¶
func (w *InboundSizeWriter) WriteMultiBuffer(mb buf.MultiBuffer) error
func (*InboundSizeWriter) WritePacket ¶
type OutboundSizeWriter ¶
type OutboundSizeWriter struct { Session *tstats.Session Writer buf.LinkWriter }
func (*OutboundSizeWriter) Close ¶
func (w *OutboundSizeWriter) Close() error
func (*OutboundSizeWriter) Interrupt ¶
func (w *OutboundSizeWriter) Interrupt()
func (*OutboundSizeWriter) WriteMultiBuffer ¶
func (w *OutboundSizeWriter) WriteMultiBuffer(mb buf.MultiBuffer) error
func (*OutboundSizeWriter) WritePacket ¶
type SessionConfig ¶
type SessionConfig struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SessionConfig) Descriptor ¶
func (*SessionConfig) Descriptor() ([]byte, []int)
func (*SessionConfig) ProtoMessage ¶
func (*SessionConfig) ProtoMessage()
func (*SessionConfig) Reset ¶
func (m *SessionConfig) Reset()
func (*SessionConfig) String ¶
func (m *SessionConfig) String() string
func (*SessionConfig) XXX_DiscardUnknown ¶
func (m *SessionConfig) XXX_DiscardUnknown()
func (*SessionConfig) XXX_Marshal ¶
func (m *SessionConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SessionConfig) XXX_Merge ¶
func (m *SessionConfig) XXX_Merge(src proto.Message)
func (*SessionConfig) XXX_Size ¶
func (m *SessionConfig) XXX_Size() int
func (*SessionConfig) XXX_Unmarshal ¶
func (m *SessionConfig) XXX_Unmarshal(b []byte) error
type SizeStatWriter ¶
type SizeStatWriter struct { Counter stats.Counter Writer buf.LinkWriter }
func (*SizeStatWriter) Close ¶
func (w *SizeStatWriter) Close() error
func (*SizeStatWriter) Interrupt ¶
func (w *SizeStatWriter) Interrupt()
func (*SizeStatWriter) WriteMultiBuffer ¶
func (w *SizeStatWriter) WriteMultiBuffer(mb buf.MultiBuffer) error
func (*SizeStatWriter) WritePacket ¶
type SniffResult ¶
Click to show internal directories.
Click to hide internal directories.