collector

package
v0.0.0-...-9af9d13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Coin

type Coin struct {
	Rank               float64
	Name               string
	Symbol             string
	Market_Cap         float64
	Price              float64
	Circulating_Supply float64
	Volume_24h         float64
	Change_1h          float64
	Change_24h         float64
	Change_7d          float64
}

Struct for scaping coinmarket data

type CoinStats

type CoinStats struct {
	// contains filtered or unexported fields
}

func NewCoinStats

func NewCoinStats(logger log.Logger, client *http.Client, url string) *CoinStats

NewCoinStats returns a new Collector exposing Coin stats.

func (*CoinStats) Collect

func (c *CoinStats) Collect(ch chan<- prometheus.Metric)

Collect collects CoinStats metrics.

func (*CoinStats) Describe

func (c *CoinStats) Describe(ch chan<- *prometheus.Desc)

Describe set Prometheus metrics descriptions.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL