Documentation ¶
Index ¶
Constants ¶
View Source
const ( WSConnectEvent EventType = "WSConnect" WSDisconnectEvent = "WSDisconnect" WSCallJoinEvent = "WSCallJoin" WSCallRecordingState = "WSCallRecordingState" WSCallJobState = "WSCallJobState" WSJobStopEvent = "WSStopJobEvent" RTCConnectEvent = "RTCConnect" RTCDisconnectEvent = "RTCDisconnect" RTCTrackEvent = "RTCTrack" CloseEvent = "Close" ErrorEvent = "Error" )
View Source
const ( TrackTypeVoice = "voice" TrackTypeScreen = "screen" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CallJobState ¶
type CallJobState struct { Type string `json:"type"` InitAt int64 `json:"init_at"` StartAt int64 `json:"start_at"` EndAt int64 `json:"end_at"` Err string `json:"err,omitempty"` }
func (*CallJobState) FromMap ¶
func (cjs *CallJobState) FromMap(m map[string]any)
type CallJoinMessage ¶
type CallReconnectMessage ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a Golang implementation of a client for Mattermost Calls.
func (*Client) On ¶
func (c *Client) On(eventType EventType, h EventHandler)
On is used to subscribe to any events fired by the client. Note: there can only be one subscriber per event type.
type Config ¶
type Config struct { // SiteURL is the URL of the Mattermost installation to connect to. SiteURL string // AuthToken is a valid user session authentication token. AuthToken string // ChannelID is the id of the channel to start or join a call in. ChannelID string // JobID is an id used to identify bot initiated sessions (e.g. // recording/transcription) JobID string // contains filtered or unexported fields }
type EventHandler ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.