Documentation ¶
Overview ¶
Package disk implements an ipfs-cluster informer which determines the current RepoSize of the ipfs daemon datastore and returns it as an api.Metric.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MetricName = "disk"
MetricName specifies the name of our metric
View Source
var MetricTTL = 30
MetricTTL specifies how long our reported metric is valid in seconds.
Functions ¶
This section is empty.
Types ¶
type Informer ¶
type Informer struct {
// contains filtered or unexported fields
}
Informer is a simple object to implement the ipfscluster.Informer and Component interfaces.
func (*Informer) GetMetric ¶
GetMetric uses the IPFSConnector the current repository size and returns it in a metric.
Click to show internal directories.
Click to hide internal directories.