Documentation ¶
Index ¶
- Variables
- func Cleanup()
- func RpcGo(addrs string, servicePath, serviceMethod string, args interface{}, ...) error
- func RpcInvoke(addrs string, servicePath, serviceMethod string, args interface{}, ...) error
- type Args
- type ArgsGroup
- type Call
- type CustomerRoute
- type HandlerRegister
- type Reply
- type ReplyGroup
- type RpcResponder
- type RpcRouter
- type Session
- func (s *Session) Bind(userId int64)
- func (s *Session) Clone() *Session
- func (s *Session) Close(reason string)
- func (s *Session) Get(key string) string
- func (s *Session) GetSessionId() int64
- func (s *Session) GetUserId() int64
- func (s *Session) Push()
- func (s *Session) Remove(key string)
- func (s *Session) Set(key, value string)
- func (s *Session) SetUserId(userId int64)
- func (s *Session) SyncSettings(settings map[string]interface{})
- func (s *Session) UnBind()
Constants ¶
This section is empty.
Variables ¶
View Source
var RpcMap sync.Map
Functions ¶
Types ¶
type CustomerRoute ¶ added in v1.0.1
Route msg to the specified node
type HandlerRegister ¶
type HandlerRegister interface { GetRemoteAddrs() string RegisterHandler(rcvr interface{}, metadata string) error RegisterName(name string, rcvr interface{}, metadata string) error }
register msg handler as service
type RpcResponder ¶
proxy return msg to agent
type Session ¶
type Session struct { NodeAddr string SessionId int64 UserId int64 Settings map[string]string // contains filtered or unexported fields }
func NewSession ¶
func (*Session) GetSessionId ¶
func (*Session) SyncSettings ¶
Click to show internal directories.
Click to hide internal directories.