services

package
v0.0.0-...-0d2f101 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connector

type Connector struct {
	component.Base
}

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

func (c *Connector) SetSessionData(ctx context.Context, data *SessionData) (*Response, error)

SetSessionData sets the session data

type ConnectorRemote

type ConnectorRemote struct {
	component.Base
}

ConnectorRemote is a remote that will receive rpc's

func (*ConnectorRemote) Docs

Docs returns documentation

func (*ConnectorRemote) Proto

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

type Response

type Response struct {
	Code int32
	Msg  string
}

Response struct

type SessionData

type SessionData struct {
	Data map[string]interface{}
}

SessionData struct

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL