Documentation ¶
Index ¶
Constants ¶
View Source
const (
BUCKET_NAME = "configuration"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command interface { // SetProperty updates configuration sets. SetProperty(property map[string]interface{}) error // GetProperty returns a single configuration property specified by name parameter. GetProperty(name string) (map[string]interface{}, error) // GetProperties returns a list of configurations stored in database. GetProperties() ([]map[string]interface{}, error) }
Interface of Service model's operations.
type Executor ¶
type Executor struct { }
func (Executor) GetProperties ¶
GetProperties returns a list of configurations stored in database. if succeed to get, return list of all configurations as slice. otherwise, return error.
func (Executor) GetProperty ¶
GetProperty returns a single configuration property specified by name parameter. if succeed to get, returns an error as nil. otherwise, return error.
func (Executor) SetProperty ¶
SetProperty inserts a map of configuration into the database. if succeed to add new configuration sets, returns an error as nil. otherwise, return error.
Click to show internal directories.
Click to hide internal directories.