modes

package
v0.0.0-...-8e17a21 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: GPL-2.0 Imports: 22 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDiffKey = errors.New("Different keys")

Functions

func BuildEcosystemLookupGetter

func BuildEcosystemLookupGetter() types.EcosystemLookupGetter

func BuildEcosystemNameGetter

func BuildEcosystemNameGetter() types.EcosystemNameGetter

func GetClientTxPreprocessor

func GetClientTxPreprocessor() types.ClientTxPreprocessor

func GetDaemonListFactory

func GetDaemonListFactory() types.DaemonListFactory

func GetDaemonLoader

func GetDaemonLoader() types.DaemonLoader

func GetEcosystemIDValidator

func GetEcosystemIDValidator() types.EcosystemIDValidator

func GetSmartContractRunner

func GetSmartContractRunner() types.SmartContractRunner

GetSmartContractRunner returns mode boundede implementation of SmartContractRunner

func RegisterRoutes

func RegisterRoutes() http.Handler

Types

type BCDaemonLoader

type BCDaemonLoader struct {
	DaemonListFactory types.DaemonListFactory
	// contains filtered or unexported fields
}

BCDaemonLoader allow load blockchain daemons

func (BCDaemonLoader) Load

func (l BCDaemonLoader) Load(ctx context.Context) error

Load loads blockchain daemons

type BCEcosysIDValidator

type BCEcosysIDValidator struct {
	// contains filtered or unexported fields
}

func (BCEcosysIDValidator) Validate

func (v BCEcosysIDValidator) Validate(formEcosysID, clientEcosysID int64, le *log.Entry) (int64, error)

type BCEcosysLookupGetter

type BCEcosysLookupGetter struct{}

func (BCEcosysLookupGetter) GetEcosystemLookup

func (g BCEcosysLookupGetter) GetEcosystemLookup() ([]int64, []string, error)

type BCEcosystemNameGetter

type BCEcosystemNameGetter struct{}

func (BCEcosystemNameGetter) GetEcosystemName

func (ng BCEcosystemNameGetter) GetEcosystemName(id int64) (string, error)

type BlockchainDaemonsListsFactory

type BlockchainDaemonsListsFactory struct{}

func (BlockchainDaemonsListsFactory) GetDaemonsList

func (f BlockchainDaemonsListsFactory) GetDaemonsList() []string

type BlockchainSCRunner

type BlockchainSCRunner struct{}

BlockchainSCRunner implementls SmartContractRunner for blockchain mode

func (BlockchainSCRunner) RunContract

func (runner BlockchainSCRunner) RunContract(data, hash []byte, keyID int64, le *log.Entry) error

RunContract runs smart contract on blockchain mode

type OBSDaemonLoader

type OBSDaemonLoader struct {
	DaemonListFactory types.DaemonListFactory
	// contains filtered or unexported fields
}

OBSDaemonLoader allows load obs daemons

func (OBSDaemonLoader) Load

func (l OBSDaemonLoader) Load(ctx context.Context) error

Load loads obs daemons

type OBSDaemonsListFactory

type OBSDaemonsListFactory struct{}

func (OBSDaemonsListFactory) GetDaemonsList

func (f OBSDaemonsListFactory) GetDaemonsList() []string

type OBSEcosysIDValidator

type OBSEcosysIDValidator struct{}

func (OBSEcosysIDValidator) Validate

func (OBSEcosysIDValidator) Validate(id, clientID int64, le *log.Entry) (int64, error)

type OBSEcosystemLookupGetter

type OBSEcosystemLookupGetter struct{}

func (OBSEcosystemLookupGetter) GetEcosystemLookup

func (g OBSEcosystemLookupGetter) GetEcosystemLookup() ([]int64, []string, error)

type OBSEcosystemNameGetter

type OBSEcosystemNameGetter struct{}

func (OBSEcosystemNameGetter) GetEcosystemName

func (ng OBSEcosystemNameGetter) GetEcosystemName(id int64) (string, error)

type OBSSCRunner

type OBSSCRunner struct{}

OBSSCRunner implementls SmartContractRunner for obs mode

func (OBSSCRunner) RunContract

func (runner OBSSCRunner) RunContract(data, hash []byte, keyID int64, le *log.Entry) error

RunContract runs smart contract on obs mode

type ObsTxPreprocessor

type ObsTxPreprocessor struct{}

func (ObsTxPreprocessor) ProcessClientTranstaction

func (p ObsTxPreprocessor) ProcessClientTranstaction(txData []byte, key int64, le *log.Entry) (string, error)

Jump to

Keyboard shortcuts

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