Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NewEventEmitter = eventemitter.NewEventEmitter
Functions ¶
This section is empty.
Types ¶
type Error ¶
type IEventEmitter ¶
type IEventEmitter = eventemitter.IEventEmitter
type Message ¶
type Message struct { OK bool `json:"ok,omitempty"` Request bool `json:"request,omitempty"` Response bool `json:"response,omitempty"` Notification bool `json:"notification,omitempty"` Id uint32 `json:"id,omitempty"` Method string `json:"method,omitempty"` Data json.RawMessage `json:"data,omitempty"` *Error }
func CreateErrorResponse ¶
func CreateNotification ¶
func CreateRequest ¶
func CreateSuccessResponse ¶
type Peer ¶
type Peer struct { IEventEmitter // contains filtered or unexported fields }
func (*Peer) Request ¶
func (peer *Peer) Request(method string, data interface{}) (rsp PeerResponse)
type PeerResponse ¶
type PeerResponse struct {
// contains filtered or unexported fields
}
func (PeerResponse) Data ¶
func (r PeerResponse) Data() []byte
func (PeerResponse) Err ¶
func (r PeerResponse) Err() error
func (PeerResponse) Unmarshal ¶
func (r PeerResponse) Unmarshal(v interface{}) error
type Room ¶
type Room struct { IEventEmitter // contains filtered or unexported fields }
func (*Room) CreatePeer ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.