storage

package
v0.0.0-...-1609ee8 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LocalStorageSignature = "ls"
)

Signature for creating storage

Variables

This section is empty.

Functions

This section is empty.

Types

type IStorage

type IStorage interface {
	Set(string, interface{}) error
	Get(string) (interface{}, error)
	Delete(string) error
	Save() error
}

IStorage define the common storage interface

func NewLocalStorage

func NewLocalStorage(filename string) (IStorage, error)

NewLocalStorage create a local storage

Jump to

Keyboard shortcuts

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