package f5 import "q5" type App_ struct { nodeId int32 instanceId int32 terminated bool flags map[int32]int32 servicing bool contextHash map[int32]q5.XParams } func (this *App_) Init() { _Timer = &q5.Timer{} _Timer.Init( q5.GetTickCount, nil, 1000 * 60, 5000) } func (this *App_) UnInit() { _Timer.UnInit() _Timer = nil } func (this *App_) Run() { for !this.terminated { _Timer.Update() } } func (this *App_) NewUuid() int64 { return 0 } func (this *App_) HasFlag(flag int32) bool { _, ok := this.flags[flag] return ok }