Documentation ¶
Overview ¶
Package database handles all communication between software and the database
Index ¶
Constants ¶
View Source
const ( BUCKET_USERS = "users" BUCKET_PORTS = "ports" )
Bucket constants
View Source
const (
DB_MAIN = "datastore.db"
)
Database constants
Variables ¶
View Source
var (
ErrKeyNotExist = errors.New("key does not exist")
)
Error codes
Functions ¶
This section is empty.
Types ¶
type Datastore ¶
type Datastore struct {
// contains filtered or unexported fields
}
func Open ¶
Open function will open the database and return a Datastore struct that has a handle within it for various datastore functions.
func (*Datastore) Close ¶
Close is a function attached to the Datastore struct that will close the current bolt instance
func (*Datastore) Delete ¶
Delete is a function attached to the Datastore struct that will delete data from the current bolt instance
Click to show internal directories.
Click to hide internal directories.