meter

package
v1.4.0-nextgen.202510.2 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Meter

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

func NewMeter

func NewMeter(cfg *config.Config, lg *zap.Logger) (*Meter, error)

func (*Meter) Close

func (m *Meter) Close() error

func (*Meter) IncTraffic

func (m *Meter) IncTraffic(clusterID string, respBytes, crossAZBytes int64, fromPublicEndpoint bool)

func (*Meter) Start

func (m *Meter) Start(ctx context.Context)

type MeterData

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

Jump to

Keyboard shortcuts

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