turntest

package
v0.0.0-...-5714200 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TrunRequest

func TrunRequest(req *TrunRequestST) error

func TrunRequest2Cloud

func TrunRequest2Cloud(req *TrunRequestST) error

PeerA <--> RelayA <---> RelayB <---> PeerB

Types

type AwsTurnServers

type AwsTurnServers struct {
	TurnServerAddr string
	Username       string
	Password       string
	Expired        time.Time
}

type AwsTurnsServers

type AwsTurnsServers struct {
	StunServerAddr  string
	TurnServerAddrs []AwsTurnServers
}

func AllocAwsTurns

func AllocAwsTurns(request *RequestBody) (*AwsTurnsServers, error)

type RequestBody

type RequestBody struct {
	DeviceId string `json:"deviceId"`
	Token    string `json:"token"`
}

type TrunRequestST

type TrunRequestST struct {
	Ctx            context.Context
	Log            logging.LeveledLogger
	ChanId         uint64
	PackageSize    int32
	PackageWait    time.Duration
	StunServerAddr string // STUN server address (e.g. "stun.abc.com:3478")
	TurnServerAddr string // TURN server addrees (e.g. "turn.abc.com:3478")
	Username       string
	Password       string
	Ch             chan statistics.RequestResults
}

Jump to

Keyboard shortcuts

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