package
0.1.2
Repository: https://github.com/depado/capybara.git
Documentation: pkg.go.dev

# Functions

NewCapybaraDB creates a new instance of CapybaraDB.
Traverse will traverse the whole bucket tree defined in the buckets argument and will fail if a bucket isn't found.
TraverseCreate will traverse the whole bucket tree defined in the buckets argument and will create the necessary buckets if they don't exist.

# Constants

LocksBucket is the default bucket used to store the locks.

# Variables

ErrBucketNotFound is returned when a specific bucket can't be found.
ErrIncompatibleValue is returned when attempting to put/delete/get a key that is actually a bucket or a bucket that is actually a key.
ErrLockNotFound is the error returned when a lock can't be found.
ErrLocksBucketNotFound is the error returned when the bucket isn't found.
ErrNoBucket is returned when trying to put, get or delete a key with no bucket.
ErrNotOwner is the error returned when ownership of the lock doesn't match.

# Structs

CapybaraDB is the struct representing a capybara database.