Documentation
¶
Index ¶
Constants ¶
View Source
const ( Idle = "Idle" Connecting = "Connecting" Connected = "Connected" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ABot ¶
type ABot struct { ClosePeerConnectionChan chan struct{} QuitWebRTCChan chan struct{} WebRTCConnectionStateChan chan string DescriptionChan chan webrtc.SessionDescription CandidateChan chan webrtc.ICECandidateInit ArenaDescriptionChan chan webrtc.SessionDescription ArenaCandidateChan chan webrtc.ICECandidateInit SendDataChan chan string WSConStatChan chan string ControlsReadyChan chan bool ID int Status string IsReady bool ConnectionID string }
func (*ABot) ClearConnectionID ¶
func (b *ABot) ClearConnectionID()
func (*ABot) NotifyAreControlsAllowedBySupervisorChange ¶
func (*ABot) SetConnected ¶
func (b *ABot) SetConnected()
func (*ABot) SetConnecting ¶
func (b *ABot) SetConnecting()
type CreateConnectionAction ¶
type CreateConnectionAction struct { Name string `json:"name"` Payload CreateConnectionPayload `json:"payload"` }
type CreateConnectionPayload ¶
type RunParams ¶
type RunParams struct { StunUrls []string TokenString string PublicKey string Api *webrtc.API MediaStream mediadevices.MediaStream WsWriteChan chan string BotCommandsWriteChan chan string GetAreControlsAllowedBySupervisor func() bool GetAreBotsReady func() bool SetBotReady func(int) SetBotNotReady func(int) IsAudioOutputEnabled bool CameraSelectChan chan string }
Click to show internal directories.
Click to hide internal directories.