store

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2017 License: MIT Imports: 3 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 {
	DB *bolt.DB
}

Store persists the most recent version of Resources by ID

func (*Store) Get

func (s *Store) Get(id faststatus.ID) (faststatus.Resource, error)

Get returns the most recent state of the Resource with the given valid ID or a zero-value Resource if it does not exist in the Store.

func (*Store) Save

func (s *Store) Save(r faststatus.Resource) error

Save persists a Resource to the Store iff it is the most recent

Jump to

Keyboard shortcuts

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