response

package
v0.0.0-...-df7cfe4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2025 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrCodeDefault errorCode = iota + 1000
	ErrCodeEmptyData
	ErrAlreadyExistUserId
	ErrCodeAccountNotYet
	ErrFaucetLimit
	ErrInvalidAddress
	ErrTxnPendingState
	ErrTxnNonceTooLow
	ErrTxnInvalidSig
	ErrTxnInsufficientToken
)

Variables

This section is empty.

Functions

func Body

func Body(data ...interface{}) *body

default data: success

func Err

func Err(err error) *body

func ErrByCode

func ErrByCode(code errorCode) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL