Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientAnswer ¶
type ClientAnswer P2PMessage
func (ClientAnswer) Type ¶
func (ClientAnswer) Type() string
type ClientSession ¶
type ClientSession struct { ID xid.ID `json:"id"` Peer xid.ID `json:"peer"` ICEServers []ICEServer `json:"iceServers"` }
func (ClientSession) Type ¶
func (ClientSession) Type() string
type ConnectionMode ¶
type ConnectionMode string
const ( ConnectionLocal ConnectionMode = "local" ConnectionSTUN ConnectionMode = "stun" ConnectionTURN ConnectionMode = "turn" )
type HostSession ¶
type HostSession struct { ID xid.ID `json:"id"` Peer xid.ID `json:"peer"` ICEServers []ICEServer `json:"iceServers"` }
func (HostSession) Type ¶
func (HostSession) Type() string
type P2PMessage ¶
type P2PMessage struct { SID xid.ID `json:"sid"` Value json.RawMessage `json:"value"` }
type Room ¶
type Room struct { ID string `json:"id"` Mode ConnectionMode `json:"mode"` Users []User `json:"users"` }
Click to show internal directories.
Click to hide internal directories.