bolt

package
v1.0.23 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const GLOBAL = "m41gA7omIWU4s"

Variables

This section is empty.

Functions

This section is empty.

Types

type Bolt

type Bolt struct {
	// contains filtered or unexported fields
}

func Open

func Open(path string, opts ...BoltOption) *Bolt

func (*Bolt) BatchSet added in v1.0.11

func (b *Bolt) BatchSet(kvs map[string][]byte) error

func (*Bolt) Close

func (b *Bolt) Close() error

func (*Bolt) Del

func (b *Bolt) Del(k []byte) (err error)

func (*Bolt) Get

func (b *Bolt) Get(k []byte) (v []byte)

func (*Bolt) Name added in v1.0.15

func (b *Bolt) Name() string

func (*Bolt) Prefix

func (b *Bolt) Prefix(prefix []byte) (res [][]byte)

func (*Bolt) Range

func (b *Bolt) Range(start, limit []byte) (res [][]byte)

func (*Bolt) Scan

func (b *Bolt) Scan() (res [][]byte)

func (*Bolt) Set

func (b *Bolt) Set(k, v []byte) (err error)

func (*Bolt) SetTTL

func (b *Bolt) SetTTL(k, v []byte, expire time.Duration) (err error)

func (*Bolt) Suffix

func (b *Bolt) Suffix(suffix []byte) (res [][]byte)

type BoltOption added in v1.0.10

type BoltOption func(bolt.Options) bolt.Options

Jump to

Keyboard shortcuts

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