Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONConfig ¶
type JSONConfig struct {
Filesystem fs.Filesystem
Filepath string // Full path to the database file
Logger log.Logger
}
type Store ¶
type Store interface {
// Load data from the store
Load() (StoreData, error)
// Save data to the store
Store(data StoreData) error
}
func NewJSON ¶ added in v16.12.0
func NewJSON(config JSONConfig) (Store, error)
type StoreData ¶
type StoreData struct {
Version uint64 `json:"version"`
Process map[string]*app.Process `json:"process"`
Metadata struct {
System map[string]interface{} `json:"system"`
Process map[string]map[string]interface{} `json:"process"`
} `json:"metadata"`
}
func NewStoreData ¶
func NewStoreData() StoreData
Click to show internal directories.
Click to hide internal directories.