Documentation ¶
Index ¶
Constants ¶
View Source
const ( ClientMessageJoin = "join" ClientMessageSDP = "sdp" ClientMessageICE = "ice" ClientMessageMute = "mute" ClientMessageUnmute = "unmute" ClientMessageScreenOn = "screen_on" ClientMessageScreenOff = "screen_off" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientMessage ¶
type ClientMessage struct { Type string `msgpack:"type"` Data map[string]interface{} `msgpack:"data"` }
func NewClientMessage ¶
func NewClientMessage(msgType string, data map[string]interface{}) *ClientMessage
func (*ClientMessage) Pack ¶
func (m *ClientMessage) Pack() ([]byte, error)
func (*ClientMessage) Unpack ¶
func (m *ClientMessage) Unpack(data []byte) error
type Config ¶
type Config struct { API api.Config RTC rtc.ServerConfig Store StoreConfig }
type StoreConfig ¶
type StoreConfig struct {
DataSource string `toml:"data_source"`
}
func (StoreConfig) IsValid ¶
func (c StoreConfig) IsValid() error
Click to show internal directories.
Click to hide internal directories.