Versions in this module Expand all Collapse all v1 v1.6.7 Feb 27, 2018 Changes in this version + type App interface + AddRPCSerialize func(name string, Interface RPCSerialize) error + Configure func(settings conf.Config) error + DefaultTracer func(func() opentracing.Tracer) error + GetJudgeGuest func() func(session gate.Session) bool + GetModuleInited func() func(app App, module Module) + GetProcessID func() string + GetRPCSerialize func() map[string]RPCSerialize + GetRouteServer func(filter string, hash string) (ServerSession, error) + GetServerById func(id string) (ServerSession, error) + GetServersByType func(Type string) []ServerSession + GetSettings func() conf.Config + GetTracer func() opentracing.Tracer + NewProtocolMarshal func(data []byte) ProtocolMarshal + OnConfigurationLoaded func(func(app App)) error + OnDestroy func() error + OnInit func(settings conf.Config) error + OnModuleInited func(func(app App, module Module)) error + OnStartup func(func(app App)) error + ProtocolMarshal func(Result interface{}, Error string) (ProtocolMarshal, string) + RegisterLocalClient func(serverId string, server mqrpc.RPCServer) error + Route func(moduleType string, fn func(app App, Type string, hash string) ServerSession) error + RpcInvoke func(module RPCModule, moduleType string, _func string, params ...interface{}) (interface{}, string) + RpcInvokeNR func(module RPCModule, moduleType string, _func string, params ...interface{}) error + Run func(debug bool, mods ...Module) error + SetJudgeGuest func(judgeGuest func(session gate.Session) bool) error + SetProtocolMarshal func(...) error + type Module interface + GetApp func() App + GetType func() string + OnAppConfigurationLoaded func(app App) + OnConfChanged func(settings *conf.ModuleSettings) + OnDestroy func() + OnInit func(app App, settings *conf.ModuleSettings) + Run func(closeSig chan bool) + Version func() string + type ProtocolMarshal interface + GetData func() []byte + type RPCModule interface + GetExecuting func() int64 + GetModuleSettings func() (settings *conf.ModuleSettings) + GetRouteServer func(filter string, hash string) (ServerSession, error) + GetServerId func() string + GetStatistical func() (statistical string, err error) + RpcInvoke func(moduleType string, _func string, params ...interface{}) (interface{}, string) + RpcInvokeArgs func(moduleType string, _func string, ArgsType []string, args [][]byte) (interface{}, string) + RpcInvokeNR func(moduleType string, _func string, params ...interface{}) error + RpcInvokeNRArgs func(moduleType string, _func string, ArgsType []string, args [][]byte) error + type RPCSerialize interface + Deserialize func(ptype string, b []byte) (param interface{}, err error) + GetTypes func() []string + Serialize func(param interface{}) (ptype string, p []byte, err error) + type ServerSession interface + Call func(_func string, params ...interface{}) (interface{}, string) + CallArgs func(_func string, ArgsType []string, args [][]byte) (interface{}, string) + CallNR func(_func string, params ...interface{}) (err error) + CallNRArgs func(_func string, ArgsType []string, args [][]byte) (err error) + GetId func() string + GetRpc func() mqrpc.RPCClient + GetType func() string