Versions in this module Expand all Collapse all v8 v8.0.2 Jun 27, 2022 v8.0.1 Jun 27, 2022 Changes in this version + func DisableLog() + func JSONFormatBlockData(data *BlockData) (*bytes.Buffer, error) + func NewChainMonitor(ctx context.Context, collector *Collector, savers []BlockDataSaver, ...) *chainMonitor + func UseLogger(logger slog.Logger) + type BlockData struct + BlockchainInfo *chainjson.GetBlockChainInfoResult + Connections int32 + CurrentStakeDiff chainjson.GetStakeDifficultyResult + EstStakeDiff chainjson.EstimateStakeDiffResult + ExtraInfo apitypes.BlockExplorerExtraInfo + FeeInfo chainjson.FeeInfoBlock + Header chainjson.GetBlockHeaderVerboseResult + IdxBlockInWindow int + PoolInfo *apitypes.TicketPoolInfo + PriceWindowNum int + WinningTickets []string + func (b *BlockData) ToBlockExplorerSummary() apitypes.BlockExplorerBasic + func (b *BlockData) ToBlockSummary() apitypes.BlockDataBasic + func (b *BlockData) ToStakeInfoExtended() apitypes.StakeInfoExtended + func (b *BlockData) ToStakeInfoExtendedEstimates() apitypes.StakeInfoExtendedEstimates + type BlockDataSaver interface + Store func(*BlockData, *wire.MsgBlock) error + type BlockDataToJSONFiles struct + func NewBlockDataToJSONFiles(folder string, fileBase string, m ...*sync.Mutex) *BlockDataToJSONFiles + func (s *BlockDataToJSONFiles) Store(data *BlockData, _ *wire.MsgBlock) error + type BlockDataToJSONStdOut struct + func NewBlockDataToJSONStdOut(m ...*sync.Mutex) *BlockDataToJSONStdOut + func (s *BlockDataToJSONStdOut) Store(data *BlockData, _ *wire.MsgBlock) error + type BlockDataToSummaryStdOut struct + func NewBlockDataToSummaryStdOut(sdiffWinSize int64, m ...*sync.Mutex) *BlockDataToSummaryStdOut + func (s *BlockDataToSummaryStdOut) Store(data *BlockData, _ *wire.MsgBlock) error + type BlockTrigger struct + Async bool + Saver func(string, uint32) error + func (s BlockTrigger) Store(bd *BlockData, _ *wire.MsgBlock) error + type Collector struct + func NewCollector(dcrdChainSvr *rpcclient.Client, params *chaincfg.Params, ...) *Collector + func (t *Collector) Collect() (*BlockData, *wire.MsgBlock, error) + func (t *Collector) CollectAPITypes(hash *chainhash.Hash) (*apitypes.BlockDataBasic, *apitypes.StakeInfoExtended) + func (t *Collector) CollectBlockInfo(hash *chainhash.Hash) (*apitypes.BlockDataBasic, *chainjson.FeeInfoBlock, ...) + func (t *Collector) CollectHash(hash *chainhash.Hash) (*BlockData, *wire.MsgBlock, error) Other modules containing this package github.com/Decred-Next/dcrndata github.com/Decred-Next/dcrndata/blockdata/v8