2021-02-02 23:06:34 -05:00
|
|
|
package storage
|
|
|
|
|
|
2021-07-15 22:07:30 -04:00
|
|
|
// Config is the configuration for storage
|
2021-02-02 23:06:34 -05:00
|
|
|
type Config struct {
|
2021-02-20 19:00:54 -05:00
|
|
|
// File is the path of the file to use for persistence
|
2021-07-15 22:07:30 -04:00
|
|
|
// If blank, persistence is disabled
|
2021-02-02 23:06:34 -05:00
|
|
|
File string `yaml:"file"`
|
2021-07-15 22:07:30 -04:00
|
|
|
|
|
|
|
|
// Type of store
|
|
|
|
|
// If blank, uses the default in-memory store
|
|
|
|
|
Type Type `yaml:"type"`
|
2021-02-02 23:06:34 -05:00
|
|
|
}
|