Documentation ¶
Index ¶
Constants ¶
View Source
const ( SendTransaction = "sendTransaction" GetTransaction = "getTransaction" GetBlockByHash = "getBlockByHash" GetBlockByNumber = "getBlockByNumber" ListResources = "listResources" Call = "call" )
Variables ¶
View Source
var ( Success = NewError(http.StatusOK, 0, "success") ServerError = NewError(http.StatusInternalServerError, 200500, "system error!") NotFound = NewError(http.StatusNotFound, 200404, http.StatusText(http.StatusNotFound)) )
Functions ¶
func ErrHandler ¶
func ErrHandler() gin.HandlerFunc
Types ¶
type API ¶
type API interface { SendTransaction() GetTransaction() GetBlockByHash() GetBlockByNumber() ListResources() Call() }
type Error ¶
func OtherError ¶
Click to show internal directories.
Click to hide internal directories.