package
0.0.0-20230310224206-d465f1b57d09
Repository: https://github.com/tirith-tech/dlc-oracle.git
Documentation: pkg.go.dev
# Functions
GetAllDatasources returns all available datasources.
GetDatasource returns one datasource by ID.
HasDatasource return boolean response for a given datasource ID.
# Structs
CryptoCompare structure with historical prices map (used as cache for historical calls).
MinAPICryptoCompareBTCResponse for current price from Crypto Compare.
MinAPICryptoCompareHistoricalBTCResponse nested struct for historical prices from Crypto Compare.
# Interfaces
Datasource interface.