filestore

package
v3.1.12+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 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 FileStore

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

func New

func New(loc string) *FileStore

func (*FileStore) Get

func (s *FileStore) Get(k string, obj interface{}) error

func (*FileStore) Set

func (s *FileStore) Set(k string, data interface{}) error

type Store

type Store interface {
	Set(k string, obj interface{}) error
	Get(k string, obj interface{}) error
}

Store saves and marshals larger objects to the filesystem Not safe for concurrent use with the same key

Jump to

Keyboard shortcuts

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