metrics

package
v0.0.0-...-d8427d5 Latest Latest
Warning

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

Go to latest
Published: May 3, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const Interval = time.Minute

Variables

This section is empty.

Functions

This section is empty.

Types

type Thread

type Thread struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Thread is a thread that gathers metrics and periodically prints them in the log.

func NewThread

func NewThread(logger log15.Logger) *Thread

NewThread creates a new metrics thread instance.

func (*Thread) Start

func (t *Thread) Start() error

Start attempts to start the metrics thread.

func (*Thread) Stop

func (t *Thread) Stop() error

Stop attempts to stop the metrics thread.

Jump to

Keyboard shortcuts

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