Documentation ¶
Index ¶
- type Connector
- type ConnectorRemote
- func (c *ConnectorRemote) Docs(ctx context.Context, flag *pitayaprotos.DocMsg) (*pitayaprotos.Doc, error)
- func (c *ConnectorRemote) Proto(ctx context.Context, name *pitayaprotos.ProtoName) (*pitayaprotos.ProtoDescriptor, error)
- func (c *ConnectorRemote) RemoteFunc(ctx context.Context, msg *protos.RPCMsg) (*protos.RPCRes, error)
- func (c *ConnectorRemote) RemoteWithImports(ctx context.Context, msg *protos.TestMessage) (*protos.RPCRes, error)
- type Response
- type SessionData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connector ¶
Connector struct
func (*Connector) GetSessionData ¶
func (c *Connector) GetSessionData(ctx context.Context) (*SessionData, error)
GetSessionData gets the session data
func (*Connector) NotifySessionData ¶
func (c *Connector) NotifySessionData(ctx context.Context, data *SessionData)
NotifySessionData sets the session data
func (*Connector) SetSessionData ¶
SetSessionData sets the session data
type ConnectorRemote ¶
ConnectorRemote is a remote that will receive rpc's
func (*ConnectorRemote) Docs ¶
func (c *ConnectorRemote) Docs(ctx context.Context, flag *pitayaprotos.DocMsg) (*pitayaprotos.Doc, error)
Docs returns documentation
func (*ConnectorRemote) Proto ¶
func (c *ConnectorRemote) Proto(ctx context.Context, name *pitayaprotos.ProtoName) (*pitayaprotos.ProtoDescriptor, error)
Proto is a function that will be called remotely to get the game proto specified by name.doc
func (*ConnectorRemote) RemoteFunc ¶
func (c *ConnectorRemote) RemoteFunc(ctx context.Context, msg *protos.RPCMsg) (*protos.RPCRes, error)
RemoteFunc is a function that will be called remotely
func (*ConnectorRemote) RemoteWithImports ¶
func (c *ConnectorRemote) RemoteWithImports(ctx context.Context, msg *protos.TestMessage) (*protos.RPCRes, error)
RemoteWithImports is a function that will be called remotely with imported proto messages
Click to show internal directories.
Click to hide internal directories.