Documentation ¶
Index ¶
- func GetApplicationInstanceId() string
- func GetApplicationName() string
- func GetTickRate() time.Duration
- func PrepareApplicationInstanceId() string
- func SetApplicationName(name string)
- func SetTickRate(rate time.Duration)
- type Application
- type ApplicationImpl
- func (a *ApplicationImpl) AddWorker(w Worker)
- func (a *ApplicationImpl) Deinit()
- func (a *ApplicationImpl) DoInMainThread(t func())
- func (a *ApplicationImpl) Execute()
- func (a *ApplicationImpl) GetCtx() context.Context
- func (a *ApplicationImpl) GetWg() *sync.WaitGroup
- func (a *ApplicationImpl) Init()
- func (a *ApplicationImpl) Quit()
- type Handle
- type Worker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetApplicationInstanceId ¶
func GetApplicationInstanceId() string
func GetApplicationName ¶
func GetApplicationName() string
func GetTickRate ¶
func PrepareApplicationInstanceId ¶
func PrepareApplicationInstanceId() string
func SetApplicationName ¶
func SetApplicationName(name string)
func SetTickRate ¶
Types ¶
type Application ¶
type Application interface { AddWorker(Worker) Execute() }
func NewApplication ¶
func NewApplication(name string) Application
type ApplicationImpl ¶
type ApplicationImpl struct {
// contains filtered or unexported fields
}
func (*ApplicationImpl) AddWorker ¶
func (a *ApplicationImpl) AddWorker(w Worker)
func (*ApplicationImpl) Deinit ¶
func (a *ApplicationImpl) Deinit()
func (*ApplicationImpl) DoInMainThread ¶
func (a *ApplicationImpl) DoInMainThread(t func())
func (*ApplicationImpl) Execute ¶
func (a *ApplicationImpl) Execute()
func (*ApplicationImpl) GetCtx ¶
func (a *ApplicationImpl) GetCtx() context.Context
func (*ApplicationImpl) GetWg ¶
func (a *ApplicationImpl) GetWg() *sync.WaitGroup
func (*ApplicationImpl) Init ¶
func (a *ApplicationImpl) Init()
func (*ApplicationImpl) Quit ¶
func (a *ApplicationImpl) Quit()
Click to show internal directories.
Click to hide internal directories.