Documentation ¶
Index ¶
- func Destroy(m *DefaultModule)
- func LoadStatisticalMethod(j string) map[string]*StatisticalMethod
- func NewModuleSession(app module.AppInterface, id string, Type string, client rpc.RPCClient) module.ModuleSession
- func NewRpcServerModule(app module.AppInterface, module module.Module, settings *conf.ModuleSettings) module.RpcServerModule
- func Run(m *DefaultModule)
- type BaseModule
- func (m *BaseModule) Destroy()
- func (m *BaseModule) GetApp() module.AppInterface
- func (m *BaseModule) GetExecuting() int64
- func (m *BaseModule) GetModuleSetting() *conf.ModuleSettings
- func (m *BaseModule) GetRouteServer(filter string, hash string) (module.ModuleSession, error)
- func (m *BaseModule) GetServer() module.RpcServerModule
- func (m *BaseModule) GetServerId() string
- func (m *BaseModule) GetStatistical() (statistical string, err error)
- func (m *BaseModule) GetSubclass() module.FullModule
- func (m *BaseModule) OnAppConfigurationLoaded(app module.AppInterface)
- func (m *BaseModule) OnConfChanged(settings *conf.ModuleSettings)
- func (m *BaseModule) OnInit(app module.AppInterface, subclass module.FullModule, ...)
- func (m *BaseModule) RpcCall(moduleType string, _func string, params ...interface{}) ([]interface{}, error)
- func (m *BaseModule) RpcCallArgs(moduleType string, _func string, ArgsType []string, Args [][]byte) ([]interface{}, error)
- func (m *BaseModule) RpcCallArgsNR(moduleType string, _func string, ArgsType []string, Args [][]byte) (err error)
- func (m *BaseModule) RpcCallNR(moduleType string, _func string, params ...interface{}) (err error)
- func (m *BaseModule) RpcSyncCall(moduleType string, _func string, params ...interface{}) (chan rpcpb.ResultInfo, error)
- func (m *BaseModule) RpcSyncCallArgs(moduleType string, _func string, ArgsType []string, Args [][]byte) (chan rpcpb.ResultInfo, error)
- type DefaultModule
- type StatisticalMethod
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Destroy ¶
func Destroy(m *DefaultModule)
func LoadStatisticalMethod ¶
func LoadStatisticalMethod(j string) map[string]*StatisticalMethod
func NewModuleSession ¶
func NewModuleSession(app module.AppInterface, id string, Type string, client rpc.RPCClient) module.ModuleSession
func NewRpcServerModule ¶
func NewRpcServerModule(app module.AppInterface, module module.Module, settings *conf.ModuleSettings) module.RpcServerModule
func Run ¶
func Run(m *DefaultModule)
Types ¶
type BaseModule ¶
type BaseModule struct {
// contains filtered or unexported fields
}
*
Implement FullModule except Module
func (*BaseModule) Destroy ¶
func (m *BaseModule) Destroy()
func (*BaseModule) GetApp ¶
func (m *BaseModule) GetApp() module.AppInterface
func (*BaseModule) GetExecuting ¶
func (m *BaseModule) GetExecuting() int64
func (*BaseModule) GetModuleSetting ¶
func (m *BaseModule) GetModuleSetting() *conf.ModuleSettings
func (*BaseModule) GetRouteServer ¶
func (m *BaseModule) GetRouteServer(filter string, hash string) (module.ModuleSession, error)
func (*BaseModule) GetServer ¶
func (m *BaseModule) GetServer() module.RpcServerModule
func (*BaseModule) GetServerId ¶
func (m *BaseModule) GetServerId() string
func (*BaseModule) GetStatistical ¶
func (m *BaseModule) GetStatistical() (statistical string, err error)
func (*BaseModule) GetSubclass ¶
func (m *BaseModule) GetSubclass() module.FullModule
func (*BaseModule) OnAppConfigurationLoaded ¶
func (m *BaseModule) OnAppConfigurationLoaded(app module.AppInterface)
func (*BaseModule) OnConfChanged ¶
func (m *BaseModule) OnConfChanged(settings *conf.ModuleSettings)
func (*BaseModule) OnInit ¶
func (m *BaseModule) OnInit(app module.AppInterface, subclass module.FullModule, settings *conf.ModuleSettings)
func (*BaseModule) RpcCall ¶
func (m *BaseModule) RpcCall(moduleType string, _func string, params ...interface{}) ([]interface{}, error)
func (*BaseModule) RpcCallArgs ¶
func (*BaseModule) RpcCallArgsNR ¶
func (*BaseModule) RpcCallNR ¶
func (m *BaseModule) RpcCallNR(moduleType string, _func string, params ...interface{}) (err error)
func (*BaseModule) RpcSyncCall ¶
func (m *BaseModule) RpcSyncCall(moduleType string, _func string, params ...interface{}) (chan rpcpb.ResultInfo, error)
func (*BaseModule) RpcSyncCallArgs ¶
type DefaultModule ¶
Click to show internal directories.
Click to hide internal directories.