Documentation ¶
Index ¶
- Constants
- func NewAnswerMessage(from, sdp string, extra map[string]string) ([]byte, error)
- func NewCandidateMessage(from, candidate string) ([]byte, error)
- func NewConnectMessage(userId string) ([]byte, error)
- func NewDisconnectMessage(userId string) ([]byte, error)
- func NewErrorMessage(errorType, message string) ([]byte, error)
- func NewHandshakeMessage(userId string, users []Users) ([]byte, error)
- func NewLockMessage(userId string) ([]byte, error)
- func NewOfferMessage(from, sdp string, extra map[string]string) ([]byte, error)
- func NewShutdownMessage() ([]byte, error)
- func NewUnlockMessage(userId string) ([]byte, error)
- type Answer
- type Candidate
- type Connect
- type Disconnect
- type Error
- type Handshake
- type Lock
- type Offer
- type Operation
- type Shutdown
- type Unlock
- type Users
Constants ¶
View Source
const ( HANDSHAKE = "handshake" CONNECTED = "connect" DISCONNECTED = "disconnect" SHUTDOWN = "shutdown" LOCK = "lock" UNLOCK = "unlock" OFFER = "offser" ANSWER = "answer" CANDIDATE = "candidate" LOCK_ERROR = "lock_error" UNLOCK_ERROR = "unlock_error" OFFER_ERROR = "offer_error" ANSWER_ERROR = "answer_error" USER_NOTFOUND = "user_not_found" )
Operation signatures
Variables ¶
This section is empty.
Functions ¶
func NewAnswerMessage ¶
func NewCandidateMessage ¶
func NewConnectMessage ¶
func NewDisconnectMessage ¶
func NewErrorMessage ¶
func NewLockMessage ¶
func NewOfferMessage ¶
func NewShutdownMessage ¶
func NewUnlockMessage ¶
Types ¶
type Disconnect ¶
Click to show internal directories.
Click to hide internal directories.