Discover Packages
github.com/elliottpolk/confgr
datastore
package
Version:
v1.1.1
Opens a new window with list of versions in this module.
Published: Nov 3, 2017
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
Documentation
¶
Copyright 2017 Elliott Polk. All rights reserved.
Use of this source code is governed by a MIT-style
license that can be found in the LICENSE file.
Get retrieves the relevant content for the provided key.
GetKeys iterates over the available keys and returns them as a list.
Remove deletes the content for the provided key. No error is returned if the
provided key does not exist.
Set adds a new entry into the key/value store. If the key exists, the old
value will be overwritten.
type Datastore struct {
*bolt .DB
}
Start will open a bolt key / value. If the datastore does not currently
exist, a new one will be generated. It will also create the relevant bucket
for storage if it does not exist.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.