transmission

package
v2.11.2 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCollector

func NewCollector(serverURL string, logger *slog.Logger) (*collectorBreaker.CBCollector, error)

NewCollector creates a new Collector

Types

type Collector

type Collector struct {
	TransmissionClient
	// contains filtered or unexported fields
}

Collector presents Transmission statistics as Prometheus metrics

func (*Collector) CollectE added in v2.10.0

func (c *Collector) CollectE(ch chan<- prometheus.Metric) error

CollectE implements the prometheus.Collector interface

func (*Collector) Describe

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

Describe implements the prometheus.Collector interface

type TransmissionClient added in v2.11.2

type TransmissionClient interface {
	SessionArgumentsGetAll(ctx context.Context) (sessionArgs transmissionrpc.SessionArguments, err error)
	SessionStats(ctx context.Context) (stats transmissionrpc.SessionStats, err error)
}

TransmissionClient interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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