dispatcher

package
v3.50.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2018 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithSniffingResult added in v3.30.1

func ContextWithSniffingResult(ctx context.Context, r SniffResult) context.Context

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) Descriptor() ([]byte, []int)

func (*Config) GetSettings

func (m *Config) GetSettings() *SessionConfig

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) Reset

func (m *Config) Reset()

func (*Config) String

func (m *Config) String() string

func (*Config) XXX_DiscardUnknown added in v3.23.1

func (m *Config) XXX_DiscardUnknown()

func (*Config) XXX_Marshal added in v3.23.1

func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Config) XXX_Merge added in v3.23.1

func (m *Config) XXX_Merge(src proto.Message)

func (*Config) XXX_Size added in v3.23.1

func (m *Config) XXX_Size() int

func (*Config) XXX_Unmarshal added in v3.23.1

func (m *Config) XXX_Unmarshal(b []byte) error

type DefaultDispatcher added in v3.8.1

type DefaultDispatcher struct {
	// contains filtered or unexported fields
}

DefaultDispatcher is a default implementation of Dispatcher.

func (*DefaultDispatcher) Close added in v3.8.1

func (*DefaultDispatcher) Close() error

Close implements common.Closable.

func (*DefaultDispatcher) Dispatch added in v3.8.1

func (d *DefaultDispatcher) Dispatch(ctx context.Context, destination net.Destination) (*vio.Link, error)

Dispatch implements routing.Dispatcher.

func (*DefaultDispatcher) Init added in v3.50.1

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 added in v3.8.1

func (*DefaultDispatcher) Start() error

Start implements common.Runnable.

func (*DefaultDispatcher) Type added in v3.50.1

func (*DefaultDispatcher) Type() interface{}

Type implements common.HasType.

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 added in v3.23.1

func (m *SessionConfig) XXX_DiscardUnknown()

func (*SessionConfig) XXX_Marshal added in v3.23.1

func (m *SessionConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SessionConfig) XXX_Merge added in v3.23.1

func (m *SessionConfig) XXX_Merge(src proto.Message)

func (*SessionConfig) XXX_Size added in v3.23.1

func (m *SessionConfig) XXX_Size() int

func (*SessionConfig) XXX_Unmarshal added in v3.23.1

func (m *SessionConfig) XXX_Unmarshal(b []byte) error

type SniffResult added in v3.30.1

type SniffResult interface {
	Protocol() string
	Domain() string
}

func SniffingResultFromContext added in v3.30.1

func SniffingResultFromContext(ctx context.Context) SniffResult

type Sniffer added in v3.8.1

type Sniffer struct {
	// contains filtered or unexported fields
}

func NewSniffer added in v3.8.1

func NewSniffer() *Sniffer

func (*Sniffer) Sniff added in v3.8.1

func (s *Sniffer) Sniff(payload []byte) (SniffResult, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL