Documentation
¶
Index ¶
- func AddPeer(rid string, peer *Peer)
- func DelPeer(rid, id string)
- func HasPeer(rid string, peer *Peer) bool
- func Init(host string, port int, cert, key string, ...)
- func NotifyAll(rid string, method string, msg map[string]interface{})
- func NotifyAllWithoutID(rid string, skipID string, method string, msg map[string]interface{})
- func NotifyAllWithoutPeer(rid string, peer *Peer, method string, msg map[string]interface{})
- type AcceptFunc
- type Peer
- type RejectFunc
- type RespondFunc
- type Room
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(host string, port int, cert, key string, bizEntry func(method string, peer *Peer, msg json.RawMessage, accept RespondFunc, reject RejectFunc))
func NotifyAllWithoutID ¶
Types ¶
type AcceptFunc ¶
type AcceptFunc peer.AcceptFunc
type RejectFunc ¶
type RejectFunc peer.RejectFunc
type RespondFunc ¶ added in v0.3.0
type RespondFunc peer.RespondFunc
Click to show internal directories.
Click to hide internal directories.