package
0.0.0-20210916100932-d192fcfaa9da
Repository: https://github.com/liubaninc/m0.git
Documentation: pkg.go.dev

# Functions

Error generates a response with StatusError and uses err as message.
Errors generates a response with StatusError and the given message.
IsStatusError is used to determine if the given status is error.
JSON is used to assist in generating a response in which the body is in JSON format.
OK generates a response with StatusOK and the given body.
PrefixRange returns key range that satisfy the given prefix.

# Constants

StatusError is used when contract fails.
StatusErrorThreshold is the status dividing line for the normal operation of the contract.
StatusOK is used when contract successfully ends.

# Structs

Response is the result of the contract run.

# Interfaces

Context is the context in which the contract runs.
Contract is the interface of contract.
Driver 接口用于抽象执行合约的框架.
Iterator iterates over key/value pairs in key order.