Documentation ¶
Index ¶
- Constants
- Variables
- func AddHandlers(r *router.Group, prefix string, middleware ...router.MiddlewareFunc)
- func DelStateByPrefixes(stub shim.ChaincodeStubInterface, prefixes []string) (map[string]int, error)
- func InvokeStateClean(c router.Context) (interface{}, error)
- func InvokeStateDelete(c router.Context) (interface{}, error)
- func InvokeStatePut(c router.Context) (interface{}, error)
- func QueryKeysList(c router.Context) (interface{}, error)
- func QueryStateGet(c router.Context) (interface{}, error)
Constants ¶
View Source
const ( InvokeStateCleanFunc = `StateClean` QueryStateKeysFunc = `StateKeys` QueryStateGetFunc = `StateGet` InvokeStatePutFunc = `StatePut` InvokeStateDeleteFunc = `StateDelete` )
Variables ¶
Functions ¶
func AddHandlers ¶
func AddHandlers(r *router.Group, prefix string, middleware ...router.MiddlewareFunc)
AddHandler adds debug handlers to router, allows to add more middleware for example for access control
func DelStateByPrefixes ¶
func DelStateByPrefixes(stub shim.ChaincodeStubInterface, prefixes []string) (map[string]int, error)
DelStateByPrefixes deletes from state entries with matching key prefix
func InvokeStateClean ¶
InvokeStateClean delete entries from state, prefix []string contains key prefixes or whole key
func InvokeStateDelete ¶
QueryStateGet router handler delete state entry by key ([]string)
func InvokeStatePut ¶
InvokeValueByKeyPut router handler puts value in chaincode state with composite key, created with key parts ([]string)
func QueryKeysList ¶
QueryKeysList router handler returns string slice with keys by prefix (object type)
func QueryStateGet ¶
QueryStateGet router handler returns state entry by key ([]string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.