store

package
v0.0.0-...-f92f1a8 Latest Latest
Warning

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

Go to latest
Published: May 23, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store represents the in memory JSON store

func New

func New(path string, st storage.Storer) *Store

func (*Store) Close

func (s *Store) Close() error

func (*Store) Collection

func (s *Store) Collection(name string) *collection.Collection

func (*Store) CreateCollection

func (s *Store) CreateCollection(name string) (*collection.Collection, error)

CreateCollection will create a new collection and return it. If the collection already exists, it will return an error

func (*Store) Open

func (s *Store) Open() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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