store

package
v0.0.0-...-a8d573e Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: MIT Imports: 1 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 GetStore

func GetStore() *Store

func NewStore

func NewStore() *Store

func (*Store) Delete

func (s *Store) Delete(id string)

func (*Store) GetAll

func (s *Store) GetAll() []models.Item

func (*Store) GetById

func (s *Store) GetById(id string) (item models.Item, exists bool)

func (*Store) Put

func (s *Store) Put(id string, item models.Item)

Jump to

Keyboard shortcuts

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