noop

package
v0.25.13 Latest Latest
Warning

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

Go to latest
Published: May 11, 2022 License: AGPL-3.0 Imports: 2 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{}

Meter is a noop meter

func NewMeter

func NewMeter() *Meter

NewMeter construct a new noop meter

func (*Meter) ComputationIntensities

func (m *Meter) ComputationIntensities() interfaceMeter.MeteredIntensities

ComputationIntensities returns an empty map

func (*Meter) MemoryIntensities

func (m *Meter) MemoryIntensities() interfaceMeter.MeteredIntensities

MemoryIntensities returns an empty map

func (*Meter) MergeMeter

func (m *Meter) MergeMeter(child interfaceMeter.Meter, enforceLimits bool) error

MergeMeter merges two noop meters

func (*Meter) MeterComputation

func (m *Meter) MeterComputation(_ common.ComputationKind, _ uint) error

MeterComputation is a noop

func (*Meter) MeterMemory

func (m *Meter) MeterMemory(_ common.ComputationKind, _ uint) error

MeterMemory is a noop

func (*Meter) NewChild

func (m *Meter) NewChild() interfaceMeter.Meter

NewChild returns a new noop meter

func (*Meter) TotalComputationLimit

func (m *Meter) TotalComputationLimit() uint

TotalComputationLimit always returns zero

func (*Meter) TotalComputationUsed

func (m *Meter) TotalComputationUsed() uint

TotalComputationUsed always returns zero

func (*Meter) TotalMemoryLimit

func (m *Meter) TotalMemoryLimit() uint

TotalMemoryLimit always returns zero

func (*Meter) TotalMemoryUsed

func (m *Meter) TotalMemoryUsed() uint

TotalMemoryUsed always returns zero

Jump to

Keyboard shortcuts

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