Documentation ¶
Overview ¶
Package pinqueue implements an ipfs-cluster informer which issues the current size of the pinning queue.
Index ¶
Constants ¶
View Source
const ( DefaultMetricTTL = 30 * time.Second DefaultWeightBucketSize = 100000 // 100k pins )
These are the default values for a Config.
Variables ¶
View Source
var MetricName = "pinqueue"
MetricName specifies the name of our metric
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config allows to initialize an Informer.
func (*Config) ApplyEnvVars ¶
ApplyEnvVars fills in any Config fields found as environment variables.
func (*Config) ToDisplayJSON ¶
ToDisplayJSON returns JSON config as a string.
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) GetMetrics ¶
GetMetrics contacts the Pintracker component and requests the number of queued items for pinning.
Click to show internal directories.
Click to hide internal directories.