Documentation ¶
Index ¶
- Variables
- type Daemon
- type Hades
- func (h *Hades) Add(cmd, dir string) (*Daemon, error)
- func (h *Hades) Daemons() ([]*Daemon, error)
- func (h *Hades) Get(id uint64) (*Daemon, error)
- func (h *Hades) Pause(id uint64) error
- func (h *Hades) Remove(id uint64) error
- func (h *Hades) Resume(id uint64) error
- func (h *Hades) Start(id uint64) error
- func (h *Hades) Stop(id uint64) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotFound returned when daemon doesn't exist in DB. ErrNotFound = errors.New("hades: not found") // ErrInitDatabase returned from errors initializing DB. ErrInitDatabase = errors.New("hades: error initializing db") // ErrAlreadyStarted returned when starting daemon already started. ErrAlreadyStarted = errors.New("hades: already started") // ErrNotStarted returned when stopping daemon not started. ErrNotStarted = errors.New("hades: not started") )
Functions ¶
This section is empty.
Types ¶
type Daemon ¶
type Daemon struct { ID uint64 `json:"id"` Cmd string `json:"cmd"` Dir string `json:"dir,omitempty"` Status string `json:"status"` Disabled bool `json:"disabled"` }
Daemon represents a single daemon process.
type Hades ¶
type Hades struct {
// contains filtered or unexported fields
}
Hades represents main daemon manager.
Click to show internal directories.
Click to hide internal directories.