Documentation ¶
Overview ¶
Copyright 2014 mqant Author. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func NewApp(version string) module.App
- type DefaultApp
- func (app *DefaultApp) AddRPCSerialize(name string, Interface module.RPCSerialize) error
- func (app *DefaultApp) Configure(settings conf.Config) error
- func (app *DefaultApp) DefaultTracer(_func func() opentracing.Tracer) error
- func (app *DefaultApp) GetJudgeGuest() func(session gate.Session) bool
- func (app *DefaultApp) GetModuleInited() func(app module.App, module module.Module)
- func (app *DefaultApp) GetRPCSerialize() map[string]module.RPCSerialize
- func (app *DefaultApp) GetRouteServers(filter string, hash string) (s module.ServerSession, err error)
- func (app *DefaultApp) GetServersById(serverId string) (module.ServerSession, error)
- func (app *DefaultApp) GetServersByType(Type string) []module.ServerSession
- func (app *DefaultApp) GetSettings() conf.Config
- func (app *DefaultApp) GetTracer() opentracing.Tracer
- func (app *DefaultApp) OnConfigurationLoaded(_func func(app module.App)) error
- func (app *DefaultApp) OnDestroy() error
- func (app *DefaultApp) OnInit(settings conf.Config) error
- func (app *DefaultApp) OnModuleInited(_func func(app module.App, module module.Module)) error
- func (app *DefaultApp) OnStartup(_func func(app module.App)) error
- func (app *DefaultApp) RegisterLocalClient(serverId string, server mqrpc.RPCServer) error
- func (app *DefaultApp) Route(moduleType string, ...) error
- func (app *DefaultApp) RpcInvoke(module module.RPCModule, moduleType string, _func string, ...) (result interface{}, err string)
- func (app *DefaultApp) RpcInvokeArgs(module module.RPCModule, moduleType string, _func string, ArgsType []string, ...) (result interface{}, err string)
- func (app *DefaultApp) RpcInvokeNR(module module.RPCModule, moduleType string, _func string, ...) (err error)
- func (app *DefaultApp) RpcInvokeNRArgs(module module.RPCModule, moduleType string, _func string, ArgsType []string, ...) (err error)
- func (app *DefaultApp) Run(debug bool, mods ...module.Module) error
- func (app *DefaultApp) SetJudgeGuest(_func func(session gate.Session) bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DefaultApp ¶
func (*DefaultApp) AddRPCSerialize ¶
func (app *DefaultApp) AddRPCSerialize(name string, Interface module.RPCSerialize) error
func (*DefaultApp) DefaultTracer ¶
func (app *DefaultApp) DefaultTracer(_func func() opentracing.Tracer) error
func (*DefaultApp) GetJudgeGuest ¶
func (app *DefaultApp) GetJudgeGuest() func(session gate.Session) bool
func (*DefaultApp) GetModuleInited ¶
func (app *DefaultApp) GetModuleInited() func(app module.App, module module.Module)
func (*DefaultApp) GetRPCSerialize ¶
func (app *DefaultApp) GetRPCSerialize() map[string]module.RPCSerialize
func (*DefaultApp) GetRouteServers ¶
func (app *DefaultApp) GetRouteServers(filter string, hash string) (s module.ServerSession, err error)
func (*DefaultApp) GetServersById ¶
func (app *DefaultApp) GetServersById(serverId string) (module.ServerSession, error)
func (*DefaultApp) GetServersByType ¶
func (app *DefaultApp) GetServersByType(Type string) []module.ServerSession
func (*DefaultApp) GetSettings ¶
func (app *DefaultApp) GetSettings() conf.Config
func (*DefaultApp) GetTracer ¶
func (app *DefaultApp) GetTracer() opentracing.Tracer
func (*DefaultApp) OnConfigurationLoaded ¶
func (app *DefaultApp) OnConfigurationLoaded(_func func(app module.App)) error
func (*DefaultApp) OnDestroy ¶
func (app *DefaultApp) OnDestroy() error
func (*DefaultApp) OnModuleInited ¶
func (*DefaultApp) RegisterLocalClient ¶
func (app *DefaultApp) RegisterLocalClient(serverId string, server mqrpc.RPCServer) error
func (*DefaultApp) Route ¶
func (app *DefaultApp) Route(moduleType string, fn func(app module.App, Type string, hash string) module.ServerSession) error
func (*DefaultApp) RpcInvokeArgs ¶
func (*DefaultApp) RpcInvokeNR ¶
func (*DefaultApp) RpcInvokeNRArgs ¶
func (*DefaultApp) SetJudgeGuest ¶
func (app *DefaultApp) SetJudgeGuest(_func func(session gate.Session) bool) error
Click to show internal directories.
Click to hide internal directories.