Documentation
¶
Index ¶
- func Close()
- func Entry(method string, peer *signal.Peer, msg json.RawMessage, ...)
- func Init(dcID, nodeID, rpcID, eventID string, natsURL string)
- func WatchServiceNodes(service string, state discovery.NodeStateType, node discovery.Node)
- type BroadcastMsg
- type CloseMsg
- type JoinMsg
- type LeaveMsg
- type LoginMsg
- type MediaInfo
- type PublishMsg
- type PublishOptions
- type PublishResponseMsg
- type RTCInfo
- type RoomInfo
- type StreamAddMsg
- type StreamRemoveMsg
- type SubscribeMsg
- type SubscribeResponseMsg
- type TrackInfo
- type TrackMap
- type TrickleMsg
- type UnpublishMsg
- type UnsubscribeMsg
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Entry ¶
func Entry(method string, peer *signal.Peer, msg json.RawMessage, accept signal.RespondFunc, reject signal.RejectFunc)
Entry is the biz entry
func WatchServiceNodes ¶
func WatchServiceNodes(service string, state discovery.NodeStateType, node discovery.Node)
WatchServiceNodes .
Types ¶
type BroadcastMsg ¶ added in v0.3.0
type BroadcastMsg struct { RoomInfo Info json.RawMessage `json:"info"` }
type PublishMsg ¶ added in v0.3.0
type PublishMsg struct { RoomInfo RTCInfo Options PublishOptions `json:"options"` }
type PublishOptions ¶ added in v0.3.0
type PublishResponseMsg ¶ added in v0.3.1
type StreamAddMsg ¶ added in v0.3.1
type StreamRemoveMsg ¶ added in v0.3.1
type SubscribeMsg ¶ added in v0.3.0
type SubscribeResponseMsg ¶ added in v0.3.1
type TrickleMsg ¶ added in v0.3.0
type TrickleMsg struct { RoomInfo MediaInfo Info json.RawMessage `json:"info"` Trickle json.RawMessage `json:"trickle"` }
type UnpublishMsg ¶ added in v0.3.0
type UnsubscribeMsg ¶ added in v0.3.0
type UnsubscribeMsg struct {
MediaInfo
}
Click to show internal directories.
Click to hide internal directories.