binx

package module
v0.0.0-...-84df950 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2020 License: MIT Imports: 5 Imported by: 0

README

binx

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound    = errors.New("not found")
	ErrIdxNotFound = errors.New("index not found")
)

Functions

This section is empty.

Types

type Bound

type Bound interface {
	Index
	Upper() bool
	Lower() bool
}

func By

func By(idx Index) Bound

func LowerBound

func LowerBound(idx Index) Bound

func UpperBound

func UpperBound(idx Index) Bound

func Where

func Where(idx Index) Bound

type Bucket

type Bucket interface {
	BucketKey() []byte
}

type Count

type Count struct {
	Total int
}

func (*Count) AppendBinary

func (c *Count) AppendBinary([]byte) error

type Index

type Index interface {
	Bucket
	Key() []byte
}

type Indexable

type Indexable interface {
	UniqueIndex
	encoding.BinaryMarshaler
	MasterIndexBucketKey() []byte
	Indexes() []Index
}

type Queryable

type Queryable interface {
	Bucket
	AppendBinary(data []byte) (bool, error)
}

func Page

func Page(q Queryable, skip, limit int) Queryable

type Tx

type Tx struct {
	*bolt.Tx
}

func (*Tx) Get

func (r *Tx) Get(q Queryable, key []byte) error

func (*Tx) Put

func (w *Tx) Put(idx Indexable) error

func (*Tx) Scan

func (r *Tx) Scan(s Queryable, bns []Bound) error

type UniqueIndex

type UniqueIndex interface {
	Bucket
	UniqueKey() []byte
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL