Documentation ¶
Overview ¶
Package manager is the core module in Aqua, deals with config loading, sub-card's worker setting and getting
Index ¶
Constants ¶
View Source
const DBVER string = "1.0.0"
DBVER is DB File Version
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DB ¶
type DB struct { // Version should be used to check DB's compatibility Version string // Store contains all path params Params map[string]Params // contains filtered or unexported fields }
DB contains all path' config. It's degsinged to be easily exported to file (like JSON). set() and get() are not thread-safe, it's caller's responsibility to ensure that. It's designed to copy params in set() and get()
type Params ¶
type Params map[string]interface{}
Params is the main data struct used to set and get path setttings
type Path ¶
type Path struct {
// contains filtered or unexported fields
}
Path is the main struct for control sub-cards
func (*Path) GetAllStatus ¶
GetAllStatus return all status
func (*Path) GetWorkers ¶
GetWorkers gets all workers registered under a path
Click to show internal directories.
Click to hide internal directories.