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.