usage

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Report

type Report struct {
	ID        string `json:"id"`
	OS        string `json:"os"`
	Arch      string `json:"arch"`
	Version   string `json:"version"`
	Uptime    int64  `json:"uptime"`
	Requests  uint64 `json:"requests"`
	Upstreams uint64 `json:"upstreams"`
}

type Reporter

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

Reporter sends a periodic usage report.

func NewReporter

func NewReporter(usage *upstream.Usage, logger log.Logger) *Reporter

func (*Reporter) Start added in v0.6.0

func (r *Reporter) Start()

func (*Reporter) Stop added in v0.6.0

func (r *Reporter) Stop()

Jump to

Keyboard shortcuts

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