powergate: github.com/textileio/powergate/index/ask/internal/store Index | Files

package store

import "github.com/textileio/powergate/index/ask/internal/store"

Index

Package Files

store.go

type Store Uses

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

Store persists ask index into a datastore.

func New Uses

func New(ds datastore.Datastore) *Store

New returns a new store for ask index.

func (*Store) Get Uses

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 Uses

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

Save persist the index into the datastore.

Package store imports 4 packages (graph) and is imported by 3 packages. Updated 2020-06-13. Refresh now. Tools for package owners.