Documentation
¶
Index ¶
- Variables
- func GetBlockEntries() (blocks []types.BlockEntry, err error)
- func GetHistorical(timeframe int, by string) (hmds []types.HistoricalMempoolData, err error)
- func GetMempool() (timestamp time.Time, feerateMapJSON string, megabyteMarkersJSON string, ...)
- func GetMempoolEntries() (mes []types.MempoolEntry, err error)
- func GetMempoolEntriesCache() (mesJSON string, err error)
- func GetRecentBlocks() (blocks []types.RecentBlock, err error)
- func GetRecentFeerateAPIEntries() (entries []types.FeeRateAPIEntry, err error)
- func GetTransactionStats() (tss []types.TransactionStat, err error)
- func SetMempoolEntriesCache(mesJSON string) (err error)
- func SetupDatabase() error
- type MempoolState
Constants ¶
This section is empty.
Variables ¶
View Source
var Pool *redis.Pool
Functions ¶
func GetBlockEntries ¶
func GetBlockEntries() (blocks []types.BlockEntry, err error)
GetBlockEntries returns the 20 most recent blocks with short TXIDs.
func GetHistorical ¶
func GetHistorical(timeframe int, by string) (hmds []types.HistoricalMempoolData, err error)
func GetMempool ¶
func GetMempool() (timestamp time.Time, feerateMapJSON string, megabyteMarkersJSON string, mempoolSize int, err error)
GetMempool gets the current mempool from the database
func GetMempoolEntries ¶
func GetMempoolEntries() (mes []types.MempoolEntry, err error)
GetMempoolEntries gets the last x mempool Entries from the database
func GetMempoolEntriesCache ¶
GetMempoolEntriesCache GET the cached response of a recent GetMempoolEntries() call
func GetRecentBlocks ¶
func GetRecentBlocks() (blocks []types.RecentBlock, err error)
GetRecentBlocks returns the 10 most recent blocks.
func GetRecentFeerateAPIEntries ¶
func GetRecentFeerateAPIEntries() (entries []types.FeeRateAPIEntry, err error)
GetRecentFeerateAPIEntries returns the recent feeRate API entries from Redis
func GetTransactionStats ¶
func GetTransactionStats() (tss []types.TransactionStat, err error)
GetTransactionStats gets the Transaction Stats data from the database
func SetMempoolEntriesCache ¶
SetMempoolEntriesCache SETs the response of a recent GetMempoolEntries() as a cache
func SetupDatabase ¶
func SetupDatabase() error
Types ¶
type MempoolState ¶
Click to show internal directories.
Click to hide internal directories.