storage

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WidgetStorage

type WidgetStorage interface {
	Get(key string) (*models.Widget, errors.TracerError)
	List() []*models.Widget
	Delete(key string)
	Create(req *models.WidgetRequest) *models.Widget
	Update(widget *models.Widget) errors.TracerError
}

WidgetStorage defines the interface for storing widgets

func NewWidgetStorage

func NewWidgetStorage() WidgetStorage

NewWidgetStorage returns an instace of widgetStorage

Jump to

Keyboard shortcuts

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