Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector interface {
multiping.PingClient
AddPeer(ip, ifname, pubkey string, connID, grID int)
Describe(ch chan<- *prometheus.Desc)
Collect(ch chan<- prometheus.Metric)
}
type DummyCollector ¶
type DummyCollector struct {
}
func (*DummyCollector) Collect ¶
func (dc *DummyCollector) Collect(ch chan<- prometheus.Metric)
func (*DummyCollector) Describe ¶
func (dc *DummyCollector) Describe(ch chan<- *prometheus.Desc)
type PeersMetrics ¶
type PeersMetrics struct {
// contains filtered or unexported fields
}
func New ¶
func New(port uint16, collector prometheus.Collector) (*PeersMetrics, error)
func (*PeersMetrics) Name ¶
func (obj *PeersMetrics) Name() string
Click to show internal directories.
Click to hide internal directories.