Documentation ¶
Index ¶
- Constants
- Variables
- func InitializeNbre()
- func NbreDipRewardFunc(code C.int, holder unsafe.Pointer, dip_reward *C.char)
- func NbreIrListFunc(code C.int, holder unsafe.Pointer, ir_name_list *C.char)
- func NbreIrVersionsFunc(code C.int, holder unsafe.Pointer, ir_versions *C.char)
- func NbreNrHandleFunc(code C.int, holder unsafe.Pointer, nr_handle *C.char)
- func NbreNrResultByHeightFunc(code C.int, holder unsafe.Pointer, nr_result *C.char)
- func NbreNrResultByhandleFunc(code C.int, holder unsafe.Pointer, nr_result *C.char)
- func NbreNrSumFunc(code C.int, holder unsafe.Pointer, nr_sum *C.char)
- func NbreVersionFunc(code C.int, holder unsafe.Pointer, major C.uint32_t, minor C.uint32_t, ...)
- func NewNbre(neb Neblet) core.Nbre
- type Nbre
- type Neblet
- type Version
Constants ¶
View Source
const (
// ExecutionTimeoutSeconds max nbre execution timeout.
ExecutionTimeoutSeconds = 15
)
Variables ¶
View Source
var ( ErrConfigNotFound = errors.New("nbre config not found") ErrNbreStartFailed = errors.New("nbre start failed") ErrCommandNotFound = errors.New("nbre command not found") ErrExecutionTimeout = errors.New("nbre execute timeout") ErrHandlerNotFound = errors.New("nbre handler not found") ErrNebCallbackTimeout = errors.New("nbre neb callback timeout") ErrNbreCallbackFailed = errors.New("nbre callback failed") ErrNbreCallbackTimeout = errors.New("nbre callback timeout") ErrNbreCallbackException = errors.New("nbre callback exception") ErrNbreCallbackNotReady = errors.New("nbre callback not ready") ErrNbreCallbackCodeErr = errors.New("nbre callback code not found") )
Error types
View Source
var ( CommandVersion = "version" CommandIRList = "irList" CommandIRVersions = "irVersions" CommandNRHandler = "nrHandler" CommandNRListByHandle = "nrListByHandle" CommandNRListByHeight = "nrListByHeight" CommandNRSum = "nrSum" CommandDIPList = "dipList" )
Command types
Functions ¶
func NbreDipRewardFunc ¶
NbreDipRewardFunc returns nbre dip list
func NbreIrListFunc ¶
NbreIrListFunc returns nbre ir list
func NbreIrVersionsFunc ¶
NbreIrVersionsFunc returns nbre ir versions
func NbreNrHandleFunc ¶
NbreNrHandleFunc returns nbre nr handle
func NbreNrResultByHeightFunc ¶
NbreNrResultByHeightFunc returns nbre nr list
func NbreNrResultByhandleFunc ¶
NbreNrResultByhandleFunc returns nbre nr list
func NbreNrSumFunc ¶
NbreNrSumFunc returns nbre nr summary data
Types ¶
type Nbre ¶
type Nbre struct {
// contains filtered or unexported fields
}
Nbre type of Nbre
type Neblet ¶
type Neblet interface { Config() *nebletpb.Config BlockChain() *core.BlockChain }
Click to show internal directories.
Click to hide internal directories.