Documentation ¶
Index ¶
- Variables
- func DeleteData(key string, db *bolt.DB) error
- func GetBytes(i interface{}) []byte
- func GetDB(dbPath string, o ...bolt.Options) *bolt.DB
- func GetData(key string, db *bolt.DB) ([]byte, error)
- func ParseKey(key string) [][]byte
- func RunDB(options DbConfig)
- func WriteData(overwrite bool, key string, data []byte, db *bolt.DB) error
- type DBResponse
- type DbConfig
- type DbMsg
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNilReadResponse is returned when a read operation returns nil ErrNilReadResponse = errors.New("Read Operation returned nil") // ErrKeyExists is returned when trying to update a data key that already has data // This will only be returned if overwrite is set to false(the default) ErrKeyExists = errors.New("Refusing to overwrite exisitng data key") )
Functions ¶
func DeleteData ¶
DeleteData will delete either key/values or Buckets depending on what is sent by user
func GetBytes ¶
func GetBytes(i interface{}) []byte
getBytes is a helper function to convert types to byte arrays as needed
Types ¶
type DBResponse ¶
Click to show internal directories.
Click to hide internal directories.