Documentation ¶
Overview ¶
Copyright 2017-2018 OneLedger
Copyright 2017-2018 OneLedger
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Monitor ¶
type Monitor struct { TickerThreshold int RunningMode RunningMode PidFilePath string }
func CreateMonitor ¶
func CreateMonitor(tickerThreshold int, runningMode RunningMode, pidPath string) Monitor
func (Monitor) CheckStatus ¶
func (Monitor) CheckUnique ¶
func (Monitor) GetPidFilePath ¶
type RunningMode ¶
type RunningMode int
const ( DEFAULT_MODE RunningMode = iota AGGRESIVE_MODE CONSERVATIVE_MODE )
type Status ¶
type Status struct { Details string Code StatusCode }
type StatusCode ¶
type StatusCode int
TODO: Conflicts with the protocol's status code
const ( STATUS_OK StatusCode = iota STATUS_WARNING STATUS_ERROR STATUS_DEADLOOP STATUS_PANIC STATUS_ALREADY_RUNNING )
Click to show internal directories.
Click to hide internal directories.