Documentation
¶
Overview ¶
Package turnsession owns the lifetime of TURN authorization for one authenticated share session.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrUnknownGrant = errors.New("TURN grant is missing or expired")
Functions ¶
This section is empty.
Types ¶
type Capacity ¶
type Capacity struct {
// contains filtered or unexported fields
}
Capacity covers negotiation through authenticated attachment. An established lane owns its transport independently and no longer consumes this permit.
func NewCapacity ¶
func NewCapacity() *Capacity
type Demand ¶
type Demand struct {
// contains filtered or unexported fields
}
Delivery clocks advance only while more network supply can help. A sink blocked on disk must not spend fallback quota even if its download is large.
type OfferGrant ¶
type OfferGrant struct {
// contains filtered or unexported fields
}
OfferGrant authorizes one accepted offer while it waits for local ICE capacity. Later rotations change what a new offer can bind without revoking this one.
func (OfferGrant) GrantAt ¶
GrantAt supplies local ICE credentials. Wire TTL rounding does not shorten an offer already in flight, even during the last fraction of a millisecond.
func (OfferGrant) ServiceID ¶
func (g OfferGrant) ServiceID() string
type Provider ¶
type Provider interface {
Issue(context.Context, turngrant.IssueRequest) turngrant.IssueResult
}