Documentation ¶
Index ¶
- Constants
- func NewModule() core.IServiceMonitor
- type IOptions
- type Monitor
- func (this *Monitor) GetType() core.M_Modules
- func (this *Monitor) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error)
- func (this *Monitor) NewOptions() (options core.IModuleOptions)
- func (this *Monitor) RegisterModuleSettingItem(module core.M_Modules, name string, iswrite bool, value interface{}, ...)
- func (this *Monitor) RegisterServiceSettingItem(comp core.S_Comps, name string, iswrite bool, value interface{}, ...)
- func (this *Monitor) Rpc_GetServiceMonitorInfo() (result *core.ServiceMonitor, err string)
- func (this *Monitor) Rpc_SetMonitorModuleSetting(module, key, value string) (result string, err string)
- func (this *Monitor) Rpc_SetMonitorServiceSetting(key, value string) (result string, err string)
- func (this *Monitor) Start() (err error)
- type Options
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func NewModule ¶
func NewModule() core.IServiceMonitor
Types ¶
type Monitor ¶
type Monitor struct { cbase.ModuleBase ServiceMonitor *core.ServiceMonitor ServiceSetting map[string]func(newvalue string) (err error) ModulesSetting map[core.M_Modules]map[string]func(newvalue string) (err error) Process *process.Process // contains filtered or unexported fields }
func (*Monitor) NewOptions ¶
func (this *Monitor) NewOptions() (options core.IModuleOptions)
func (*Monitor) RegisterModuleSettingItem ¶
func (this *Monitor) RegisterModuleSettingItem(module core.M_Modules, name string, iswrite bool, value interface{}, f func(newvalue string) (err error))
注册模块配置信息
func (*Monitor) RegisterServiceSettingItem ¶
func (this *Monitor) RegisterServiceSettingItem(comp core.S_Comps, name string, iswrite bool, value interface{}, f func(newvalue string) (err error))
注册服务配置信息
func (*Monitor) Rpc_GetServiceMonitorInfo ¶
func (this *Monitor) Rpc_GetServiceMonitorInfo() (result *core.ServiceMonitor, err string)
RPC------------------------------------------------------------------------------------------------------------------------------------------ 读取服务监控信息
func (*Monitor) Rpc_SetMonitorModuleSetting ¶
func (this *Monitor) Rpc_SetMonitorModuleSetting(module, key, value string) (result string, err string)
读取服务监控信息
func (*Monitor) Rpc_SetMonitorServiceSetting ¶
读取服务监控信息
Click to show internal directories.
Click to hide internal directories.