mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-14 07:26:47 +00:00
* Updates starting and stopping routines to be a bit more parallel with less waiting required * Removes stop, removes debugging output * linting and test fixes * Add extra kill switch for exiting on exchange loading delay * Fixes fun math * breaks loop instead of switch. Moves param warns higher * Removes unceccary gos. passes in cfg to remove data race * Removes os signal processing. Fixes bad master merge
22 lines
799 B
Go
22 lines
799 B
Go
package subsystem
|
|
|
|
import "errors"
|
|
|
|
const (
|
|
// MsgSubSystemStarting message to return when subsystem is starting up
|
|
MsgSubSystemStarting = "manager starting..."
|
|
// MsgSubSystemStarted message to return when subsystem has started
|
|
MsgSubSystemStarted = "started."
|
|
// MsgSubSystemShuttingDown message to return when a subsystem is shutting down
|
|
MsgSubSystemShuttingDown = "shutting down..."
|
|
// MsgSubSystemShutdown message to return when a subsystem has shutdown
|
|
MsgSubSystemShutdown = "manager shutdown."
|
|
)
|
|
|
|
var (
|
|
// ErrSubSystemAlreadyStarted message to return when a subsystem is already started
|
|
ErrSubSystemAlreadyStarted = errors.New("manager already started")
|
|
// ErrSubSystemNotStarted message to return when subsystem not started
|
|
ErrSubSystemNotStarted = errors.New("not started")
|
|
)
|