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 AwsTurnsServers ¶
type AwsTurnsServers struct { StunServerAddr string TurnServerAddrs []AwsTurnServers }
func AllocAwsTurns ¶
func AllocAwsTurns(request *RequestBody) (*AwsTurnsServers, error)
type RequestBody ¶
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 }
Click to show internal directories.
Click to hide internal directories.