jsonstore

package
v0.0.0-...-f1ebe90 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: BSD-3-Clause Imports: 11 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 {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewStore

func NewStore(dataDir config.DataDir, conf *config.Config) *Store

func (*Store) Get

func (s *Store) Get(id string) (interface{}, string, error)

func (*Store) NewTxn

func (s *Store) NewTxn() *Txn

func (*Store) Put

func (s *Store) Put(id string, v interface{}) error

type Txn

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

func (*Txn) Commit

func (t *Txn) Commit() error

func (*Txn) Get

func (t *Txn) Get(id string) (interface{}, error)

func (*Txn) IfMatchHash

func (t *Txn) IfMatchHash(id, hash string)

func (*Txn) IfUnmodifiedSince

func (t *Txn) IfUnmodifiedSince(id string, v time.Time)

func (*Txn) Put

func (t *Txn) Put(id string, v interface{})

Jump to

Keyboard shortcuts

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