Documentation ¶
Index ¶
- func GetApplicationInstanceId() string
- func GetCancel() context.CancelFunc
- func GetCtx() context.Context
- func GetName() string
- func GetTickRate() time.Duration
- func InitCtx()
- func PrepareApplicationInstanceId() string
- func SetName(name string)
- func SetTickRate(rate time.Duration)
- type Application
- type ApplicationImpl
- type Handle
- type Worker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetApplicationInstanceId ¶
func GetApplicationInstanceId() string
func GetCancel ¶ added in v0.0.12
func GetCancel() context.CancelFunc
func GetTickRate ¶
func PrepareApplicationInstanceId ¶
func PrepareApplicationInstanceId() 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) GetWg ¶
func (a *ApplicationImpl) GetWg() *sync.WaitGroup
func (*ApplicationImpl) Init ¶
func (a *ApplicationImpl) Init()
Click to show internal directories.
Click to hide internal directories.