data

package
v0.0.0-...-79ec17b Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(id string)

Delete an item from the data cache by id

func ExportIfAltered

func ExportIfAltered() []models.Item

ExportIfAltered returns an altered cache, or nil if unaltered

func GetAll

func GetAll() []models.Item

GetAll items from the data cache.

func GetOne

func GetOne(id string) *models.Item

GetOne item by id from the data cache.

func Put

func Put(item models.Item) *models.Item

Put a new item into the data cache or updates an existing one.

Types

This section is empty.

Jump to

Keyboard shortcuts

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