file

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package local is a file system backed store

Index

Constants

This section is empty.

Variables

View Source
var (
	// DefaultDatabase is the namespace that the bbolt store
	// will use if no namespace is provided.
	DefaultDatabase = "micro"
	// DefaultTable when none is specified
	DefaultTable = "micro"
	// DefaultDir is the default directory for bbolt files
	DefaultDir = filepath.Join(os.TempDir(), "micro", "store")
)

Functions

func NewBlobStore

func NewBlobStore(opts ...store.Option) (store.BlobStore, error)

NewBlobStore returns a blob file store

func NewStore

func NewStore(opts ...store.Option) store.Store

NewStore returns a file store

func WithDir

func WithDir(dir string) store.Option

WithDir sets the directory to store the files in

Types

This section is empty.

Jump to

Keyboard shortcuts

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