Documentation ¶
Overview ¶
Package settings provides a generic, simple key-value pair like interface for saving application settings.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Identity ¶
type Identity struct {
// contains filtered or unexported fields
}
Identity implements an identity store that
func NewIdentity ¶
NewIdentity create a new identity store.
type Settings ¶
type Settings interface { // Get gets a setting. Returns errcode.NotFound error when the // key is missing. Get(key string, v interface{}) error // Set sets a setting. Set(key string, v interface{}) error // Has checks if a key exists. It does not have to read the key. Has(key string) (bool, error) }
Settings is an interface for saving simple JSON object based settings.
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
Table is a pisces.KV based settings implementation.
func NewTableName ¶
NewTableName creates a new settings table using the given table name.
Click to show internal directories.
Click to hide internal directories.