endpoint

package
v1.0.172 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sensor

type Sensor struct {
	sensors.UnimplementedSensor

	// Token is Bearer strategy token used to send metrics for endpoint sensor
	Token string `json:"token"`
}

func (*Sensor) Close

func (s *Sensor) Close(ctx context.Context) error

func (*Sensor) Increment

func (s *Sensor) Increment(delta float64)

func (*Sensor) Init

func (s *Sensor) Init(ctx context.Context) error

func (*Sensor) Ping

func (s *Sensor) Ping(ctx context.Context) error

func (*Sensor) Set

func (s *Sensor) Set(newVal float64)

func (*Sensor) Update

func (s *Sensor) Update(_ context.Context) error

Jump to

Keyboard shortcuts

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