Versions in this module Expand all Collapse all v2 v2.3.2 Mar 16, 2023 v2.3.1 Mar 16, 2023 Changes in this version + type AllMembers struct + Members []string + type Connector struct + func NewConnector(app pitaya.Pitaya) *Connector + func (c *Connector) GetSessionData(ctx context.Context) (*SessionData, error) + func (c *Connector) NotifySessionData(ctx context.Context, data *SessionData) + func (c *Connector) SetSessionData(ctx context.Context, data *SessionData) (*protos.Response, error) + type ConnectorRemote struct + func NewConnectorRemote(app pitaya.Pitaya) *ConnectorRemote + func (c *ConnectorRemote) Descriptor(ctx context.Context, names *pitayaprotos.ProtoNames) (*pitayaprotos.ProtoDescriptors, error) + func (c *ConnectorRemote) Docs(ctx context.Context, ddd *pitayaprotos.Doc) (*pitayaprotos.Doc, error) + func (c *ConnectorRemote) RemoteFunc(ctx context.Context, msg *protos.RPCMsg) (*protos.RPCRes, error) + type JoinResponse struct + Code int + Result string + type NewUser struct + Content string + type RPCResponse struct + Msg string + type Response struct + Code int32 + Msg string + type Room struct + Stats *protos.Stats + func NewRoom(app pitaya.Pitaya) *Room + func (r *Room) AfterInit() + func (r *Room) Entry(ctx context.Context, msg []byte) (*protos.JoinResponse, error) + func (r *Room) GetSessionData(ctx context.Context) (*SessionData, error) + func (r *Room) Init() + func (r *Room) Join(ctx context.Context) (*protos.JoinResponse, error) + func (r *Room) Message(ctx context.Context, msg *protos.UserMessage) + func (r *Room) MessageRemote(ctx context.Context, msg *protos.UserMessage, b bool, s string) (*protos.UserMessage, error) + func (r *Room) SendRPC(ctx context.Context, msg *protos.SendRPCMsg) (*protos.RPCRes, error) + func (r *Room) SetSessionData(ctx context.Context, data *SessionData) ([]byte, error) + type SendRPCMsg struct + Msg string + Route string + ServerID string + type SessionData struct + Data map[string]interface{} + type Stats struct + type UserMessage struct + Content string + Name string