Documentation ¶
Overview ¶
---------------------------------------------------------------------------------------------
- Copyright (c) IBAX. All rights reserved.
- See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
- Copyright (c) IBAX. All rights reserved.
- See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
- Copyright (c) IBAX. All rights reserved.
- See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
- Copyright (c) IBAX. All rights reserved.
- See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------
Index ¶
- Variables
- func GetClientTxPreprocessor() types.ClientTxPreprocessor
- func GetDaemonLoader() types.DaemonFactory
- func GetEcosystemGetter() types.EcosystemGetter
- func GetSmartContractRunner() types.SmartContractRunner
- func RegisterJsonRPCRoutes(next http.Handler) http.Handler
- func RegisterRoutes() http.Handler
- type BCDaemonFactory
- type BCEcosystemGetter
- type BlockchainSCRunner
- type CLBDaemonFactory
- type CLBEcosystemGetter
- type CLBSCRunner
- type ClbTxPreprocessor
- type JsonRpcRoutes
- type SNDaemonFactory
Constants ¶
This section is empty.
Variables ¶
var ErrDiffKey = errors.New("Different keys")
Functions ¶
func GetClientTxPreprocessor ¶
func GetClientTxPreprocessor() types.ClientTxPreprocessor
func GetDaemonLoader ¶
func GetDaemonLoader() types.DaemonFactory
func GetEcosystemGetter ¶
func GetEcosystemGetter() types.EcosystemGetter
func GetSmartContractRunner ¶
func GetSmartContractRunner() types.SmartContractRunner
GetSmartContractRunner returns mode boundede implementation of SmartContractRunner
func RegisterRoutes ¶
Types ¶
type BCDaemonFactory ¶
type BCDaemonFactory struct {
// contains filtered or unexported fields
}
BCDaemonFactory allow load blockchain daemons
func (BCDaemonFactory) GetDaemonsList ¶
func (BCDaemonFactory) GetDaemonsList() []string
type BCEcosystemGetter ¶
type BCEcosystemGetter struct {
// contains filtered or unexported fields
}
func (BCEcosystemGetter) GetEcosystemLookup ¶
func (g BCEcosystemGetter) GetEcosystemLookup() ([]int64, []string, error)
func (BCEcosystemGetter) GetEcosystemName ¶
func (ng BCEcosystemGetter) GetEcosystemName(id int64) (string, error)
func (BCEcosystemGetter) ValidateId ¶
type BlockchainSCRunner ¶
type BlockchainSCRunner struct{}
BlockchainSCRunner implementls SmartContractRunner for blockchain mode
func (BlockchainSCRunner) RunContract ¶
func (runner BlockchainSCRunner) RunContract(data, hash []byte, keyID, tnow int64, le *log.Entry) error
RunContract runs smart contract on blockchain mode
type CLBDaemonFactory ¶
type CLBDaemonFactory struct {
// contains filtered or unexported fields
}
CLBDaemonFactory allows load clb daemons
func (CLBDaemonFactory) GetDaemonsList ¶
func (CLBDaemonFactory) GetDaemonsList() []string
type CLBEcosystemGetter ¶
type CLBEcosystemGetter struct{}
func (CLBEcosystemGetter) GetEcosystemLookup ¶
func (g CLBEcosystemGetter) GetEcosystemLookup() ([]int64, []string, error)
func (CLBEcosystemGetter) GetEcosystemName ¶
func (ng CLBEcosystemGetter) GetEcosystemName(id int64) (string, error)
func (CLBEcosystemGetter) ValidateId ¶
type CLBSCRunner ¶
type CLBSCRunner struct{}
CLBSCRunner implementls SmartContractRunner for clb mode
func (CLBSCRunner) RunContract ¶
RunContract runs smart contract on clb mode
type ClbTxPreprocessor ¶
type ClbTxPreprocessor struct{}
func (ClbTxPreprocessor) ProcessClientTxBatches ¶
type JsonRpcRoutes ¶
type JsonRpcRoutes struct {
// contains filtered or unexported fields
}
func (*JsonRpcRoutes) ServeHTTP ¶
func (s *JsonRpcRoutes) ServeHTTP(w http.ResponseWriter, r *http.Request)
type SNDaemonFactory ¶
type SNDaemonFactory struct {
// contains filtered or unexported fields
}
SNDaemonFactory allows load subnode daemons
func (SNDaemonFactory) GetDaemonsList ¶
func (SNDaemonFactory) GetDaemonsList() []string