cache

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2019 License: GPL-3.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

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

func New

func New(s store.Store, c api.Client) *Cache

func (*Cache) JournalEntries

func (c *Cache) JournalEntries(uid string) (api.Entries, error)

func (*Cache) Journals

func (c *Cache) Journals() (api.Journals, error)

func (*Cache) Sync

func (c *Cache) Sync() error

Sync syncs all the available journals

func (*Cache) SyncJournal

func (c *Cache) SyncJournal(uid string) error

SyncJournal write to the last entries (using the ?last arg) to the store

Jump to

Keyboard shortcuts

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