monitoring

package
v0.5.30 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: MPL-2.0 Imports: 4 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

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

func NewCounter

func NewCounter(name string) *Counter

func (*Counter) Add

func (c *Counter) Add(delta int64)

Add adds given delta to a counter value

func (*Counter) Get

func (c *Counter) Get() int64

Get returns counter value

func (*Counter) Set

func (c *Counter) Set(value int64)

Set sets given value as counter value

func (*Counter) String

func (c *Counter) String() string

type InstanceTracker added in v0.5.30

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

func NewInstanceTracker added in v0.5.30

func NewInstanceTracker(name string) *InstanceTracker

func (*InstanceTracker) Flush added in v0.5.30

func (u *InstanceTracker) Flush() int

func (*InstanceTracker) OnFinish added in v0.5.30

func (u *InstanceTracker) OnFinish(id int)

func (*InstanceTracker) OnStart added in v0.5.30

func (u *InstanceTracker) OnStart(id int)

func (*InstanceTracker) String added in v0.5.30

func (u *InstanceTracker) String() string

Jump to

Keyboard shortcuts

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