metrics

package
v0.44.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultRegister

type DefaultRegister struct{}

func (DefaultRegister) AddEvent

func (DefaultRegister) AddEvent(time.Duration, string, bool)

func (DefaultRegister) SetEpoch

func (DefaultRegister) SetEpoch(uint64)

func (DefaultRegister) SetHealth

func (DefaultRegister) SetHealth(int32)

type Register

type Register interface {
	SetEpoch(epoch uint64)
	SetHealth(s int32)
	AddEvent(d time.Duration, typ string, success bool)
}

Jump to

Keyboard shortcuts

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