store

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	FilePath string `json:"-"`

	Entries []interface{} `json:"entries"`
	// contains filtered or unexported fields
}

func New

func New(path string, sync bool) *Database

func (*Database) DeleteFromIndex

func (db *Database) DeleteFromIndex(index int) error

func (Database) GetByIndex

func (db Database) GetByIndex(index int) (interface{}, error)

func (Database) List

func (db Database) List() Entries

func (*Database) Load

func (db *Database) Load() error

func (*Database) Push

func (db *Database) Push(entry interface{}) error

func (*Database) Save

func (db *Database) Save()

type Entries

type Entries []interface{}

Jump to

Keyboard shortcuts

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