signaling

package
v0.0.0-...-27c307a Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	WireTimeoutError        = fmt.Errorf("Wire timeout")
	NextHopUnreachableError = fmt.Errorf("Next hop unreachable")
)

Functions

func RegisterNewEngineFunc

func RegisterNewEngineFunc(name string, fn NewEngineFunc)

func UnsupportedSignalingEngine

func UnsupportedSignalingEngine(name string) error

Types

type Descriptor

type Descriptor struct {
	ID       string
	UserData UserData
}

type Engine

type Engine interface {
	Wire(dst, src *Descriptor) (*Descriptor, error)
	OnWire(handler WireHandler)
	Close() error
}

func NewEngine

func NewEngine(name string, opts ...NewEngineOption) (Engine, error)

type NewEngineFunc

type NewEngineFunc func(...NewEngineOption) (Engine, error)

type NewEngineOption

type NewEngineOption = ofn.OFN

func WithID

func WithID(id string) NewEngineOption

func WithLogger

func WithLogger(logger logrus.FieldLogger) NewEngineOption

type UserData

type UserData = map[string]interface{}

type WireHandler

type WireHandler func(*Descriptor) (*Descriptor, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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