Documentation ¶
Index ¶
- Variables
- func FileClose(f *Flock)
- type App
- type Application
- func (this *Application) Distroy()
- func (this *Application) Init(f func(int64)) bool
- func (this *Application) Run(f func(int64))
- func (this *Application) SetFps(needFps int) *Application
- func (this *Application) SetPidFile(pidFile string) *Application
- func (this *Application) SetVersion(major, minor, patch int) *Application
- type Flock
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MarjoVersion string MinorVersion string PatchVersion string GApp = Application{} )
版本
Functions ¶
Types ¶
type Application ¶
type Application struct { FrameTime time.Duration FrameTimeTotal time.Duration InitOKTime time.Time // 初始化完成计时 // contains filtered or unexported fields }
实现接口的结构
func (*Application) Distroy ¶
func (this *Application) Distroy()
func (*Application) Init ¶
func (this *Application) Init(f func(int64)) bool
func (*Application) SetPidFile ¶
func (this *Application) SetPidFile(pidFile string) *Application
设置PID file
func (*Application) SetVersion ¶
func (this *Application) SetVersion(major, minor, patch int) *Application
设置版本
Click to show internal directories.
Click to hide internal directories.