2019-02-07 11:02:15 +03:00
|
|
|
package settings
|
|
|
|
|
|
|
|
const (
|
2019-02-08 18:02:24 +03:00
|
|
|
SETTING_LAST_MTIME = "last_mtime"
|
|
|
|
SETTING_INITIAL_RUN = "initial_run"
|
|
|
|
SETTING_LEGACY_PROCESSED = "legacy_processed"
|
2019-02-07 11:02:15 +03:00
|
|
|
)
|
|
|
|
|
2019-02-12 15:58:48 +03:00
|
|
|
type Settings interface {
|
|
|
|
GetString(key string, defaultValue string) string
|
|
|
|
SetString(key string, value string)
|
|
|
|
GetInt(key string, defaultValue int) int
|
|
|
|
SetInt(key string, value int)
|
|
|
|
GetInt64(key string, defaultValue int64) int64
|
|
|
|
SetInt64(key string, value int64)
|
|
|
|
GetBool(key string, defaultValue bool) bool
|
|
|
|
SetBool(key string, value bool)
|
2019-02-07 11:11:11 +03:00
|
|
|
}
|