store

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2020 License: MIT Imports: 4 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 persists ask index into a datastore.

func New

func New(ds datastore.Datastore) *Store

New returns a new store for ask index.

func (*Store) Get

func (s *Store) Get() (ask.Index, error)

Get returns the last saved ask index. If no ask index was persisted, it returns an valid empty index.

func (*Store) Save

func (s *Store) Save(idx ask.Index) error

Save persist the index into the datastore.

Jump to

Keyboard shortcuts

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