Documentation ¶
Index ¶
- Constants
- type Manager
- type Typ
- func (r *Typ) AddMonitorFunc(f func(typ appError.Typ))
- func (r *Typ) CurrentMode() string
- func (r *Typ) GetCurrentState() string
- func (r *Typ) IsPaused() bool
- func (r *Typ) IsRunning() bool
- func (r *Typ) IsTerminated() bool
- func (r *Typ) Pause()
- func (r *Typ) Resume()
- func (r *Typ) Start(launchRightNow bool) appError.Typ
- func (r *Typ) Stop()
Constants ¶
View Source
const ( StateUninitialized = "uninitialized" StateInitialized = "initialized" StatePaused = "paused" StateRunning = "running" StateTerminated = "terminated" )
View Source
const ( CronMode = "cronMode" // When we are working in the cron mode TickerMode = "tickerMode" // When we are working in the ticker mode )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶ added in v0.1.2
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶ added in v0.1.2
func NewManager() Manager
func (*Manager) AddRoutine ¶ added in v0.1.2
func (*Manager) ShutdownAllRoutines ¶ added in v0.1.2
func (m *Manager) ShutdownAllRoutines()
type Typ ¶
type Typ struct { Name string // Name of the routine // contains filtered or unexported fields }
func (*Typ) AddMonitorFunc ¶
func (*Typ) CurrentMode ¶
func (*Typ) GetCurrentState ¶
func (*Typ) IsTerminated ¶
Click to show internal directories.
Click to hide internal directories.