Documentation ¶
Index ¶
Constants ¶
View Source
const ( CloseOwnerLeft = "Owner Left" CloseDone = "Read End" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientAnswer ¶
type ClientAnswer outgoing.P2PMessage
func (*ClientAnswer) Execute ¶
func (e *ClientAnswer) Execute(rooms *Rooms, current ClientInfo) error
type ClientICE ¶
type ClientICE outgoing.P2PMessage
type ClientInfo ¶
type ClientMessage ¶
type ClientMessage struct { Info ClientInfo Incoming Event }
type ConnectionMode ¶
type ConnectionMode string
const ( ConnectionLocal ConnectionMode = "local" ConnectionSTUN ConnectionMode = "stun" ConnectionTURN ConnectionMode = config.AuthModeTurn )
type Create ¶
type Create struct { ID string `json:"id"` Mode ConnectionMode `json:"mode"` CloseOnOwnerLeave bool `json:"closeOnOwnerLeave"` UserName string `json:"username"` JoinIfExist bool `json:"joinIfExist,omitempty"` }
type Disconnected ¶
type Disconnected struct{}
func (*Disconnected) Execute ¶
func (e *Disconnected) Execute(rooms *Rooms, current ClientInfo) error
type Event ¶
type Event interface {
Execute(*Rooms, ClientInfo) error
}
type HostICE ¶
type HostICE outgoing.P2PMessage
type HostOffer ¶
type HostOffer outgoing.P2PMessage
type Room ¶
type Room struct { ID string CloseOnOwnerLeave bool Mode ConnectionMode Users map[xid.ID]*User Sessions map[xid.ID]*RoomSession }
type Rooms ¶
type Rooms struct { Rooms map[string]*Room Incoming chan ClientMessage // contains filtered or unexported fields }
func (*Rooms) RandUserName ¶
type StartShare ¶
type StartShare struct{}
func (*StartShare) Execute ¶
func (e *StartShare) Execute(rooms *Rooms, current ClientInfo) error
type Typed ¶
type Typed struct { Type string `json:"type"` Payload json.RawMessage `json:"payload"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.