bolt

package
v0.0.0-...-0dfd57a Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

BoltDB driver for the store service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	DB *bolt.DB
}

func Open

func Open(path string) (*Store, error)

func (*Store) Del

func (s *Store) Del(collection, key string) error

func (*Store) Get

func (s *Store) Get(collection, key string) (*store.Document, error)

func (*Store) Put

func (s *Store) Put(doc *store.Document) (*store.Document, error)

func (*Store) Scan

func (s *Store) Scan(collection, min, max string, reverse bool) (store.Cursor, error)

Jump to

Keyboard shortcuts

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