Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoinInfo ¶
type CoinInfo struct { ID string `json:"id,omitempty"` Symbol string `json:"symbol,omitempty"` Name string `json:"name,omitempty"` MetricDesc *prometheus.Desc }
type Config ¶
type Config struct { Coins []*CoinInfo `json:"coins,omitempty"` Currencies string `json:"currencies,omitempty"` }
func LoadConfig ¶
type PriceCollector ¶
type PriceCollector struct {
Config *Config
}
func NewPriceCollector ¶
func NewPriceCollector() *PriceCollector
func (*PriceCollector) Collect ¶
func (p *PriceCollector) Collect(ch chan<- prometheus.Metric)
func (*PriceCollector) Describe ¶
func (p *PriceCollector) Describe(ch chan<- *prometheus.Desc)
Click to show internal directories.
Click to hide internal directories.