Documentation ¶
Index ¶
- type Connector
- type ConnectorRemote
- type Room
- func (r *Room) AfterInit()
- func (r *Room) Entry(ctx context.Context) (*protos.Response, error)
- func (r *Room) Init()
- func (r *Room) Join(ctx context.Context) (*protos.Response, error)
- func (r *Room) Message(ctx context.Context, msg *protos.UserMessage)
- func (r *Room) SendRPC(ctx context.Context, msg []byte) (*protos.Response, error)
- type SessionData
- type Stats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectorRemote ¶
ConnectorRemote is a remote that will receive rpc's
func (*ConnectorRemote) RemoteFunc ¶
RemoteFunc is a function that will be called remotelly
type Room ¶
Room represents a component that contains a bundle of room related handler like Join/Message
type SessionData ¶
type SessionData struct {
Data map[string]interface{} `json:"data"`
}
SessionData is the session data struct
Click to show internal directories.
Click to hide internal directories.