query

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: MIT Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidPath   = errors.New("invalid path")
	ErrValueNotFound = errors.New("value not found")
)

Functions

func Query

func Query(store *storage.Storage, path string, rq []byte, validatorDetails *config.ValidatorDetails) ([]byte, error)

Types

type ByNebulaRq

type ByNebulaRq struct {
	ChainType     account.ChainType
	NebulaAddress string
}

type ByValidatorRq

type ByValidatorRq struct {
	PubKey string
}

type CommitHashRq

type CommitHashRq struct {
	ChainType     account.ChainType
	NebulaAddress string
	Height        int64
	PulseId       int64
	OraclePubKey  string
}

type Path

type Path string
const (
	OracleByValidatorPath      Path = "oraclesByValidator"
	OracleByNebulaPath         Path = "oraclesByNebula"
	BftOracleByNebulaPath      Path = "bftOraclesByNebula"
	RoundHeightPath            Path = "roundHeight"
	CommitHashPath             Path = "commitHash"
	RevealPath                 Path = "reveal"
	RevealsPath                Path = "reveals"
	ResultPath                 Path = "result"
	ResultsPath                Path = "results"
	NebulaePath                Path = "nebulae"
	NebulaInfoPath             Path = "nebula_info"
	LastRoundApprovedPath      Path = "lastRoundApproved"
	ConsulsPath                Path = "consuls"
	ConsulsCandidatePath       Path = "consulsCandidate"
	SignNewConsulsByConsulPath Path = "signNewConsulsByConsul"
	SignNewOraclesByConsulPath Path = "signNewOraclesByConsul"
	NebulaOraclesIndexPath     Path = "nebulaOraclesIndex"
	AllValidatorsPath          Path = "allValidators"
	ValidatorDetailsPath       Path = "validatorDetails"
)

type ResultRq

type ResultRq struct {
	ChainType     account.ChainType
	NebulaAddress string
	Height        int64
	OraclePubKey  string
}

type ResultsRq

type ResultsRq struct {
	ChainType     account.ChainType
	Height        uint64
	NebulaAddress string
}

type RevealRq

type RevealRq struct {
	ChainType     account.ChainType
	NebulaAddress string
	OraclePubKey  string
	Height        int64
	PulseId       int64
	CommitHash    string
}

type RoundHeightRq

type RoundHeightRq struct {
	ChainType    account.ChainType
	LedgerHeight uint64
}

type SignByConsulRq

type SignByConsulRq struct {
	ConsulPubKey string
	ChainType    account.ChainType
	NebulaId     string
	RoundId      int64
}

Jump to

Keyboard shortcuts

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