Documentation
¶
Index ¶
- Constants
- Variables
- type Command
- type Query
- func (q *Query) GetEncrypted(bucket, key []byte) ([]byte, error)
- func (q *Query) GetPlain(bucket, key []byte) ([]byte, error)
- func (q *Query) IterateEncrypted(bucket []byte) iter.Seq2[[]byte, []byte]
- func (q *Query) IteratePlain(bucket []byte) iter.Seq2[[]byte, []byte]
- func (q *Query) ListBuckets() []string
- func (q *Query) ListBucketsWithPrefix(prefix string) []string
- type Store
Constants ¶
View Source
const ( DefaultBucket = "kamune-store" PeersBucket = "peers" )
Variables ¶
View Source
var ( ErrMissingItem = errors.New("item not found") ErrMissingBucket = errors.New("bucket not found") )
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
Query
}
func (*Command) AddEncrypted ¶
func (*Command) CreateBucket ¶
type Query ¶
type Query struct {
// contains filtered or unexported fields
}
func (*Query) IterateEncrypted ¶
func (*Query) ListBuckets ¶ added in v0.2.0
ListBuckets returns a list of all bucket names in the database
func (*Query) ListBucketsWithPrefix ¶ added in v0.2.0
ListBucketsWithPrefix returns bucket names that start with the given prefix
Click to show internal directories.
Click to hide internal directories.