Documentation ¶
Index ¶
- Variables
- func RateWriter(writer buf.Writer, limiter *RateLimiter) buf.Writer
- type Config
- type DefaultDispatcher
- func (*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 (*DefaultDispatcher) Start() error
- func (*DefaultDispatcher) Type() interface{}
- type RateLimiter
- type SessionConfig
- type SizeStatWriter
- type SniffResult
- type Sniffer
- type Writer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_app_dispatcher_config_proto protoreflect.FileDescriptor
Functions ¶
func RateWriter ¶
func RateWriter(writer buf.Writer, limiter *RateLimiter) buf.Writer
Types ¶
type Config ¶
type Config struct { Settings *SessionConfig `protobuf:"bytes,1,opt,name=settings,proto3" json:"settings,omitempty"` // contains filtered or unexported fields }
func (*Config) Descriptor
deprecated
func (*Config) GetSettings ¶
func (x *Config) GetSettings() *SessionConfig
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
type DefaultDispatcher ¶
type DefaultDispatcher struct {
// contains filtered or unexported fields
}
DefaultDispatcher is a default implementation of Dispatcher.
func (*DefaultDispatcher) Close ¶
func (*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 (*DefaultDispatcher) Start() error
Start implements common.Runnable.
func (*DefaultDispatcher) Type ¶
func (*DefaultDispatcher) Type() interface{}
Type implements common.HasType.
type RateLimiter ¶
type RateLimiter struct {
// contains filtered or unexported fields
}
func NewRateLimiter ¶
func NewRateLimiter(rate int64) *RateLimiter
func (*RateLimiter) RateWait ¶
func (l *RateLimiter) RateWait(count int64)
type SessionConfig ¶
type SessionConfig struct {
// contains filtered or unexported fields
}
func (*SessionConfig) Descriptor
deprecated
func (*SessionConfig) Descriptor() ([]byte, []int)
Deprecated: Use SessionConfig.ProtoReflect.Descriptor instead.
func (*SessionConfig) ProtoMessage ¶
func (*SessionConfig) ProtoMessage()
func (*SessionConfig) ProtoReflect ¶
func (x *SessionConfig) ProtoReflect() protoreflect.Message
func (*SessionConfig) Reset ¶
func (x *SessionConfig) Reset()
func (*SessionConfig) String ¶
func (x *SessionConfig) String() string
type SizeStatWriter ¶
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
type SniffResult ¶
type Sniffer ¶
type Sniffer struct {
// contains filtered or unexported fields
}
func NewSniffer ¶
func NewSniffer() *Sniffer
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) WriteMultiBuffer ¶
func (w *Writer) WriteMultiBuffer(mb buf.MultiBuffer) error
Click to show internal directories.
Click to hide internal directories.