storage

package
v0.70.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(ctx Context, key interface{})

Delete key value pair from storage.

func Find

func Find(ctx Context, key interface{}) iterator.Iterator

Find returns an iterator.Iterator over the keys that matched the given key.

func Get

func Get(ctx Context, key interface{}) interface{}

Get value matching given key.

func Put

func Put(ctx Context, key interface{}, value interface{})

Put value at given key.

Types

type Context

type Context struct{}

Context represents the storage context.

func GetContext

func GetContext() Context

GetContext returns the storage context.

Jump to

Keyboard shortcuts

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