Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultCacheTTL = 20 * time.Second
)
Variables ¶
View Source
var (
ErrCheckInProgress = errors.New("probe check is already in progress")
)
Functions ¶
This section is empty.
Types ¶
type ProbeResult ¶
ProbeResult holds the info about the result of a relay probe request
type StunTurnProbe ¶
type StunTurnProbe struct {
// contains filtered or unexported fields
}
func NewStunTurnProbe ¶
func NewStunTurnProbe(cacheTTL time.Duration) *StunTurnProbe
func (*StunTurnProbe) ProbeAll ¶
func (p *StunTurnProbe) ProbeAll(ctx context.Context, stuns []*stun.URI, turns []*stun.URI) []ProbeResult
ProbeAll probes all given servers asynchronously and returns the results
func (*StunTurnProbe) ProbeAllWaitResult ¶
func (p *StunTurnProbe) ProbeAllWaitResult(ctx context.Context, stuns []*stun.URI, turns []*stun.URI) []ProbeResult
Click to show internal directories.
Click to hide internal directories.