Documentation ¶
Index ¶
- func NewSearchOption(opts ...SearchOption) *searchOption
- type SearchOption
- type Table
- func (tb *Table) BatchSet(ctx context.Context, args ...[]byte) error
- func (tb *Table) Delete(ctx context.Context, key []byte) error
- func (tb *Table) Get(ctx context.Context, key []byte, fn func(val []byte) error) error
- func (tb *Table) GetTTL(ctx context.Context, key []byte) (int64, error)
- func (tb *Table) Iterate(ctx context.Context, opt *nutsdb.IteratorOptions, ...) error
- func (tb *Table) MGet(ctx context.Context, keys [][]byte, fn func(val []byte) error) error
- func (tb *Table) MSet(ctx context.Context, args ...[]byte) error
- func (tb Table) Name() string
- func (tb *Table) Persist(ctx context.Context, key []byte, val []byte) error
- func (tb *Table) Search(ctx context.Context, cb func(key []byte, value []byte) error, ...) error
- func (tb *Table) Set(ctx context.Context, key []byte, val []byte) error
- func (tb Table) TTL() uint32
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSearchOption ¶ added in v1.1.5
func NewSearchOption(opts ...SearchOption) *searchOption
Types ¶
type SearchOption ¶ added in v1.1.5
type SearchOption = func(opt *searchOption)
func WithEndKey ¶ added in v1.1.5
func WithEndKey(endKey []byte) SearchOption
func WithLimit ¶ added in v1.1.5
func WithLimit(limit int) SearchOption
func WithOffset ¶ added in v1.1.5
func WithOffset(offset int) SearchOption
func WithPrefix ¶ added in v1.1.5
func WithPrefix(prefix []byte) SearchOption
func WithReg ¶ added in v1.1.5
func WithReg(reg string) SearchOption
func WithStartKey ¶ added in v1.1.5
func WithStartKey(startKey []byte) SearchOption
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.