neoneo-go/pkg/vm/api/storage/storage.go
Evgeniy Kulikov 67cbcac643 Fix typos (#133)
* Fix typos

* revert chains/unit_testnet

* revert chains

* fix review comments (thx @AlexVanin)
2019-02-13 18:01:10 +00:00

19 lines
605 B
Go

package storage
// Context represents the storage context.
type Context interface{}
// GetContext returns the storage context.
func GetContext() interface{} { return nil }
// Put stores a value in to the storage.
func Put(ctx interface{}, key interface{}, value interface{}) {}
// Get returns the value from the storage.
func Get(ctx interface{}, key interface{}) interface{} { return 0 }
// Delete removes a stored key value pair.
func Delete(ctx interface{}, key interface{}) {}
// Find entries somewhat matching the given key.
func Find(ctx interface{}, key interface{}) interface{} { return 0 }