Compare commits

..

No commits in common. "e489a12a282458365e6b533b17a2e26bffd4e63f" and "a952490188c1a315c7ccbccd8fb4659261e74a86" have entirely different histories.

View File

@ -54,15 +54,11 @@ type Config interface {
// not a boolean, it will return fallback.
GetBool (key string, fallback bool) (bool, error)
// Set sets a value in the user-level config file. If the key is
// invalid, it returns ErrMalformedKey. Note that calling this behavior
// *will* cause a write to disk, and a read from disk for whatever is
// watching the user file.
// invalid, it returns ErrMalformedKey.
Set (key string, value Value) error
// Reset removes the value from the user-level config file, resetting it
// to what is described by the system-level config files. If the key is
// invalid, it returns ErrMalformedKey. Note that calling this behavior
// *will* cause a write to disk if successful , and a read from disk for
// whatever is watching the user file.
// invalid, it returns ErrMalformedKey.
Reset (key string) error
// OnChange specifies a function to be called whenever a value is
// changed. The callback is always run within the backend's event loop