Documentation
¶
Overview ¶
Package serv
Index ¶
- Constants
- func ServeWs(roomuqin string, useruqin string, perroom int, nikin string, hubin *Hub, ...)
- func ServeWsErec(roomuqin string, win http.ResponseWriter, rin *http.Request)
- func WhoConnectedRoom(uqroomIn string, me string, onlyInvis bool) (res string)
- type AVConfig
- type Client
- type Hub
- type HubMessage
- type ListConnected
- type Message
- type Room
- type RoomDebType
- type RoomsDebugType
- type Talker
- type TalkerDebType
- type TrackDebType
- type WConnected
Constants ¶
View Source
const ( JOINROOM = "joinroom" CANDIDATE = "candidate" OFFER = "offer" ANSWER = "answer" WHOCO = "whoco" WHOCOINV = "whocoinv" TCON = "tcon" AVC = "avc" AVCD = "avcd" SCRE = "screen" SCRECD = "screencd" BREC = "beginrecord" EREC = "endrecord" CLBREC = "clbeginrecord" CLEREC = "clendrecord" CHAT = "chat" CHATFILE = "chatfile" TALKERST = "talkerstopped" )
Variables ¶
This section is empty.
Functions ¶
func ServeWs ¶
func ServeWs(roomuqin string, useruqin string, perroom int, nikin string, hubin *Hub, win http.ResponseWriter, rin *http.Request, )
ServeWs handles websocket requests from the peer.
func ServeWsErec ¶
func ServeWsErec(roomuqin string, win http.ResponseWriter, rin *http.Request)
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a middleman between the websocket connection and the hub.
type HubMessage ¶
type HubMessage struct {
// contains filtered or unexported fields
}
HubMessage is a message for hub select
type ListConnected ¶
type ListConnected struct {
List map[string]WConnected `json:"list"`
}
type RoomDebType ¶
type RoomDebType struct {
RoomID string `json:"room_id"`
TalkersLen int `json:"talkers_len"`
TrackLocalsLen int `json:"trackLocals_len"`
Talkers []TalkerDebType `json:"talkers"`
Tracks []TrackDebType `json:"tracks"`
}
type RoomsDebugType ¶
type RoomsDebugType struct {
Rooms []RoomDebType `json:"rooms,omitempty"`
}
func GetShowRooms ¶
func GetShowRooms() (ret RoomsDebugType)
type TalkerDebType ¶
type TalkerDebType struct {
Nik string `json:"nik"`
Uquser string `json:"uquser"`
StrID string `json:"strID"`
Recording bool `json:"recording"`
Crecording bool `json:"crecording"`
Screen bool `json:"screen"`
Sound bool `json:"sound"`
Video bool `json:"video"`
Invis bool `json:"invis"`
Virt bool `json:"virt"`
Ices []string `json:"ices"`
}
type TrackDebType ¶
type WConnected ¶
Click to show internal directories.
Click to hide internal directories.