Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultRelayTTL = 1 * time.Hour
)
Variables ¶
View Source
var ( DefaultExponentialBackoff = ExponentialBackoff{ Factor: 1.5, Maximum: 1 * time.Minute, Initial: 1 * time.Second, Duration: 1 * time.Second, } )
Functions ¶
This section is empty.
Types ¶
type CandidateMessage ¶
type ControlMessage ¶
type DescriptionMessage ¶
type ExponentialBackoff ¶
type ExponentialBackoff struct {
Factor float32
Maximum time.Duration
Initial time.Duration
Duration time.Duration
}
func (*ExponentialBackoff) Next ¶
func (e *ExponentialBackoff) Next() time.Duration
func (*ExponentialBackoff) Reset ¶
func (e *ExponentialBackoff) Reset()
type RelayInfo ¶
type RelayInfo struct {
URL string
Realm string
Username string
Password string
TTL time.Duration
Secret string
}
func NewRelayInfo ¶
func NewRelayInfos ¶
type Signal ¶
type Signal struct {
Name string `json:"name"`
Type SignalType `json:"type"`
Unit string `json:"unit,omitempty"`
Init any `json:"init,omitempty"`
}
type SignalType ¶
type SignalType string
const ( SignalTypeFloat SignalType = "float" SignalTypeInteger SignalType = "integer" SignalTypeBoolean SignalType = "boolean" SignalTypeComplex SignalType = "complex" )
type SignalingMessage ¶
type SignalingMessage struct {
Signals []Signal `json:"signals,omitempty"`
Relays []Relay `json:"servers,omitempty"`
Candidate *CandidateMessage `json:"candidate,omitempty"`
Control *ControlMessage `json:"control,omitempty"`
Description *DescriptionMessage `json:"description,omitempty"`
}
func (SignalingMessage) String ¶
func (msg SignalingMessage) String() string
Click to show internal directories.
Click to hide internal directories.