2018-08-20 11:22:46 +00:00
|
|
|
package storage
|
|
|
|
|
|
|
|
// Context represents the storage context
|
2018-08-21 07:11:25 +00:00
|
|
|
type Context struct{}
|
2018-08-20 11:22:46 +00:00
|
|
|
|
|
|
|
// GetContext returns the storage context
|
2018-08-21 07:11:25 +00:00
|
|
|
func GetContext() Context { return Context{} }
|
2018-08-20 11:22:46 +00:00
|
|
|
|
|
|
|
// Put value at given key
|
2018-08-21 07:11:25 +00:00
|
|
|
func Put(ctx Context, key interface{}, value interface{}) {}
|
2018-08-20 11:22:46 +00:00
|
|
|
|
|
|
|
// Get value matching given key
|
2018-08-21 07:11:25 +00:00
|
|
|
func Get(ctx Context, key interface{}) interface{} { return 0 }
|
2018-08-20 11:22:46 +00:00
|
|
|
|
|
|
|
// Delete key value pair from storage
|
2018-08-21 07:11:25 +00:00
|
|
|
func Delete(ctx Context, key interface{}) {}
|
2018-08-20 11:22:46 +00:00
|
|
|
|
|
|
|
// Find values stored on keys partially matching given key
|
2018-08-21 07:11:25 +00:00
|
|
|
func Find(ctx Context, key interface{}) interface{} { return 0 }
|