Documentation ¶
Index ¶
- type DModule
- type DModuleGetter
- type DModuleMetric
- type DModuleMgr
- func (mgr *DModuleMgr) GetMetricData() map[string]*DModuleMetric
- func (mgr *DModuleMgr) Getter(id int) DModuleGetter
- func (mgr *DModuleMgr) Init(id int) bool
- func (mgr *DModuleMgr) Register(id int, m DModule) DModuleGetter
- func (mgr *DModuleMgr) Run(id int, delta int64)
- func (mgr *DModuleMgr) RunAll(delta int64)
- func (mgr *DModuleMgr) TickUseTime(id int) time.Duration
- type SModule
- type SModuleGetter
- type SModuleMgr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DModule ¶
type DModule interface { Init(selfGetter DModuleGetter) bool Destroy() Run(delta int64) }
type DModuleGetter ¶
type DModuleGetter struct {
// contains filtered or unexported fields
}
type DModuleMetric ¶
DModuleMetric ...
type DModuleMgr ¶
type DModuleMgr []implDModule
func (*DModuleMgr) GetMetricData ¶
func (mgr *DModuleMgr) GetMetricData() map[string]*DModuleMetric
GetMetricData ...
func (*DModuleMgr) Register ¶
func (mgr *DModuleMgr) Register(id int, m DModule) DModuleGetter
Register ... ...
func (*DModuleMgr) TickUseTime ¶
func (mgr *DModuleMgr) TickUseTime(id int) time.Duration
TickUseTime ...
type SModuleGetter ¶
type SModuleGetter struct {
// contains filtered or unexported fields
}
func (SModuleGetter) Get ¶
func (g SModuleGetter) Get() SModule
type SModuleMgr ¶
type SModuleMgr []SModule
func (*SModuleMgr) Register ¶
func (mgr *SModuleMgr) Register(id int, m SModule) SModuleGetter
Register ...
Click to show internal directories.
Click to hide internal directories.