2018-04-10 09:45:31 +00:00
|
|
|
package storage
|
|
|
|
|
2018-05-06 06:03:26 +00:00
|
|
|
// Context represents the storage context.
|
|
|
|
type Context interface{}
|
|
|
|
|
|
|
|
// GetContext returns the storage context.
|
|
|
|
func GetContext() interface{} { return nil }
|
2018-04-10 09:45:31 +00:00
|
|
|
|
|
|
|
// Put stores a value in to the storage.
|
2018-05-06 06:03:26 +00:00
|
|
|
func Put(ctx interface{}, key interface{}, value interface{}) {}
|
2018-04-10 09:45:31 +00:00
|
|
|
|
|
|
|
// Get returns the value from the storage.
|
2018-05-06 06:03:26 +00:00
|
|
|
func Get(ctx interface{}, key interface{}) interface{} { return 0 }
|
2018-04-10 09:45:31 +00:00
|
|
|
|
|
|
|
// Delete removes a stored key value pair.
|
2018-05-06 06:03:26 +00:00
|
|
|
func Delete(ctx interface{}, key interface{}) {}
|
2018-08-19 18:47:10 +00:00
|
|
|
|
|
|
|
// Find entrys somewhat matching the given key.
|
|
|
|
func Find(ctx interface{}, key interface{}) interface{} { return 0 }
|