store

package
v0.0.0-...-5375a1e Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: MIT Imports: 10 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
}

func New

func New(path string) (*Store, error)

func (*Store) ClearCurrent

func (s *Store) ClearCurrent() error

func (*Store) Delete

func (s *Store) Delete(key string) error

func (*Store) GetCurrent

func (s *Store) GetCurrent() (pomo.Pomo, error)

func (*Store) List

func (s *Store) List(fromTo ...time.Time) ([]pomo.Pomo, error)

func (*Store) ListKeys

func (s *Store) ListKeys(fromTo ...time.Time) ([]string, error)

func (*Store) Read

func (s *Store) Read(key string) (pomo.Pomo, error)

func (*Store) Save

func (s *Store) Save(key string, p pomo.Pomo) (err error)

func (*Store) SaveCurrent

func (s *Store) SaveCurrent(p pomo.Pomo) error

func (*Store) SavePomo

func (s *Store) SavePomo(p pomo.Pomo) error

Jump to

Keyboard shortcuts

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