Documentation ¶
Index ¶
- func DialDispatcher(ctx context.Context, dispatcher routing.Dispatcher) (net.PacketConn, error)
- func ReadUDPMsg(conn *net.UDPConn, payload []byte, oob []byte) (int, int, int, *net.UDPAddr, error)
- func RetrieveOriginalDest(oob []byte) net.Destination
- type Config
- func (*Config) Descriptor() ([]byte, []int)
- 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 Dispatcher
- type Hub
- type HubOption
- type ResponseCallback
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DialDispatcher ¶
func DialDispatcher(ctx context.Context, dispatcher routing.Dispatcher) (net.PacketConn, error)
func ReadUDPMsg ¶
func RetrieveOriginalDest ¶
func RetrieveOriginalDest(oob []byte) net.Destination
Types ¶
type Config ¶
type Config struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Config) Descriptor ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) XXX_DiscardUnknown ¶
func (m *Config) XXX_DiscardUnknown()
func (*Config) XXX_Marshal ¶
func (*Config) XXX_Unmarshal ¶
type Dispatcher ¶
func NewDispatcher ¶
func NewDispatcher(dispatcher routing.Dispatcher, callback ResponseCallback) *Dispatcher
func (*Dispatcher) Dispatch ¶
func (v *Dispatcher) Dispatch(ctx context.Context, destination net.Destination, payload *buf.Buffer)
func (*Dispatcher) RemoveRay ¶
func (v *Dispatcher) RemoveRay(dest net.Destination)
type HubOption ¶
type HubOption func(h *Hub)
func HubCapacity ¶
Click to show internal directories.
Click to hide internal directories.