jsonstore

package
v0.0.0-...-a665a66 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Path string
	Days int
}

type Store

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

func New

func New(config Config) *Store

func (*Store) Close

func (s *Store) Close()

func (*Store) Get

func (s *Store) Get(id string) (*model.Inbox, error)

func (*Store) Set

func (s *Store) Set(i *model.Inbox) (string, error)

Jump to

Keyboard shortcuts

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