fake

package
v1.27.0-alpha.7 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeAgent

type FakeAgent struct {
	Type  metrics.ValueType
	Value float64
	Error error
	Delay time.Duration
}

func NewDeltaPAgent

func NewDeltaPAgent(value float64, err error, delay time.Duration) *FakeAgent

func NewInletTempAgent

func NewInletTempAgent(value float64, err error, delay time.Duration) *FakeAgent

func (*FakeAgent) Fetch

func (a *FakeAgent) Fetch(ctx context.Context) (float64, error)

func (*FakeAgent) ValueType

func (a *FakeAgent) ValueType() metrics.ValueType

Jump to

Keyboard shortcuts

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