api

package
Version: v1.65.2 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: BSD-3-Clause Imports: 8 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAPIEnvError

func IsAPIEnvError(err error) bool

IsAPIEnvError 是否是api执行环境的错误

func IsFatalError

func IsFatalError(err error) bool

IsFatalError 是否是必须停止执行的系统错误

func IsGrpcError

func IsGrpcError(err error) bool

IsGrpcError 判断系统api 错误,还是 rpc 本身的错误

func IsQueueError

func IsQueueError(err error) bool

IsQueueError 是否是队列错误

Types

type ExecutorAPI

type ExecutorAPI interface {
	GetBlockByHashes(param *types.ReqHashes) (*types.BlockDetails, error)
	GetRandNum(param *types.ReqRandHash) ([]byte, error)
	QueryTx(param *types.ReqHash) (*types.TransactionDetail, error)
	IsErr() bool
}

ExecutorAPI 提供给执行器使用的接口 因为合约是主链和平行链通用的,所以,主链和平行链都可以调用这套接口

func New

New 新建接口

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL