Documentation
¶
Overview ¶
Package commands contains the functionality for the set of commands currently supported by the CLI tooling.
Index ¶
- Variables
- func AddCurrentRoundCmd(traceID string, log *zap.SugaredLogger, cfg algod.Config, ...) error
- func AddRoundCmd(traceID string, log *zap.SugaredLogger, cfg algod.Config, ...) error
- func CompareBlockBetweenAlgodAndIndexer(traceID string, log *zap.SugaredLogger, algodCfg algod.Config, ...) error
- func GetAndInsertBlockCmd(log *zap.SugaredLogger, cfg algod.Config, couchCfg couchdb.Config, ...) error
- func GetBlocksCountFromDBCmd(log *zap.SugaredLogger, couchCfg couchdb.Config, dbName string) error
- func GetCurrentRoundCmd(log *zap.SugaredLogger, cfg algod.Config) error
- func GetLastSyncedRoundCmd(traceID string, log *zap.SugaredLogger, couchCfg couchdb.Config, dbName string) error
- func GetRoundCmd(log *zap.SugaredLogger, cfg algod.Config, blockNum uint64) error
- func GetRoundInDBCmd(traceID string, log *zap.SugaredLogger, couchCfg couchdb.Config, ...) error
- func GetRoundNumInDBCmd(traceID string, log *zap.SugaredLogger, couchCfg couchdb.Config, dbName string, ...) error
- func GetRoundsPaginationCmd(traceID string, log *zap.SugaredLogger, couchCfg couchdb.Config, dbName string, ...) error
- func GetTransactionInfoFromDBCmd(log *zap.SugaredLogger, couchCfg couchdb.Config, dbName string) error
- func GetTransactionsByAcctFromDBCmd(log *zap.SugaredLogger, couchCfg couchdb.Config, dbName, acctID string) error
- func GetTransactionsByAcctFromDBWithPaginationCmd(log *zap.SugaredLogger, couchCfg couchdb.Config, dbName, acctID string, ...) error
- func GetTransactionsFromDBWithPaginationCmd(log *zap.SugaredLogger, couchCfg couchdb.Config, dbName string, ...) error
- func GetTransactionsPaginationCmd(traceID string, log *zap.SugaredLogger, couchCfg couchdb.Config, ...) error
- func Migrate(cfg couchdb.Config, dbName string) error
- func PrettyPrintBlockFromAlgodCmd(traceID string, log *zap.SugaredLogger, cfg algod.Config, blockNum uint64) error
- func PrettyPrintBlockFromIndexerCmd(traceID string, log *zap.SugaredLogger, cfg indexer.Config, blockNum uint64) error
Constants ¶
This section is empty.
Variables ¶
var ErrHelp = errors.New("provided help")
ErrHelp provides context that help was given.
Functions ¶
func AddCurrentRoundCmd ¶
func AddCurrentRoundCmd(traceID string, log *zap.SugaredLogger, cfg algod.Config, couchCfg couchdb.Config, dbName string) error
AddCurrentRoundCmd retrieves information about the block for the latest round and prints it out.
func AddRoundCmd ¶
func AddRoundCmd(traceID string, log *zap.SugaredLogger, cfg algod.Config, couchCfg couchdb.Config, dbName string, blockNum uint64) error
AddRoundCmd retrieves a block based on block number and inserts it into CouchDB.
func CompareBlockBetweenAlgodAndIndexer ¶
func CompareBlockBetweenAlgodAndIndexer(traceID string, log *zap.SugaredLogger, algodCfg algod.Config, indexerCfg indexer.Config, blockNum uint64) error
CompareBlockBetweenAlgodAndIndexer retrieves information about the block for the specified round and prints it out in JSON format.
func GetAndInsertBlockCmd ¶
func GetBlocksCountFromDBCmd ¶
func GetCurrentRoundCmd ¶
func GetCurrentRoundCmd(log *zap.SugaredLogger, cfg algod.Config) error
GetCurrentRoundCmd retrieves information about the block for the latest round and prints it out.
func GetLastSyncedRoundCmd ¶
func GetLastSyncedRoundCmd(traceID string, log *zap.SugaredLogger, couchCfg couchdb.Config, dbName string) error
GetLastSyncedRoundCmd retrieves information about the block for the latest round and prints it out.
func GetRoundCmd ¶
GetRoundCmd retrieves information about the block for the specified round and prints it out.
func GetRoundInDBCmd ¶
func GetRoundInDBCmd(traceID string, log *zap.SugaredLogger, couchCfg couchdb.Config, dbName, blockHash string) error
GetRoundInDBCmd retrieves information about the block for the latest round and prints it out.
func GetRoundNumInDBCmd ¶
func GetRoundNumInDBCmd(traceID string, log *zap.SugaredLogger, couchCfg couchdb.Config, dbName string, blockNum uint64) error
GetRoundNumInDBCmd retrieves information about the block for the latest round and prints it out.
func GetRoundsPaginationCmd ¶
func GetTransactionInfoFromDBCmd ¶
func GetTransactionInfoFromDBCmd(log *zap.SugaredLogger, couchCfg couchdb.Config, dbName string) error
GetTransactionInfoFromDBCmd gets general transaction info from database, inc. earliest and latest transaction IDs and number of transactions
func GetTransactionsByAcctFromDBCmd ¶
func GetTransactionsByAcctFromDBCmd(log *zap.SugaredLogger, couchCfg couchdb.Config, dbName, acctID string) error
GetTransactionsByAcctFromDBCmd gets all transactions by an account from database.
func PrettyPrintBlockFromAlgodCmd ¶
func PrettyPrintBlockFromAlgodCmd(traceID string, log *zap.SugaredLogger, cfg algod.Config, blockNum uint64) error
PrettyPrintBlockFromAlgodCmd retrieves information about the block for the specified round and prints it out in JSON format.
func PrettyPrintBlockFromIndexerCmd ¶
func PrettyPrintBlockFromIndexerCmd(traceID string, log *zap.SugaredLogger, cfg indexer.Config, blockNum uint64) error
PrettyPrintBlockFromIndexerCmd retrieves information about the block for the specified round and prints it out in JSON format.
Types ¶
This section is empty.
Source Files
¶
- addcurrentround.go
- addround.go
- compareblk.go
- currentround.go
- doc.go
- get_blocks_count_from_db.go
- get_txn_info_from_db.go
- get_txns_by_acct_from_db.go
- get_txns_by_acct_pagination_from_db.go
- get_txns_pagination_from_db.go
- getandinsertblock.go
- getlastsyncedround.go
- getroundByNumindb.go
- getroundindb.go
- getroundspagination.go
- gettxnspagination.go
- migrate.go
- pprintblkalgod.go
- pprintblkindexer.go
- round.go