fenecon

package
v0.0.0-...-270707c Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeneconProber

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

func New

func New(ctx context.Context, registry *prometheus.Registry, logger *zap.SugaredLogger) *FeneconProber

func (*FeneconProber) Run

func (fp *FeneconProber) Run(target FeneconProberTarget)

func (*FeneconProber) SetHttpAuth

func (fp *FeneconProber) SetHttpAuth(username, password string)

func (*FeneconProber) SetParallelRequests

func (fp *FeneconProber) SetParallelRequests(val int)

func (*FeneconProber) SetRetry

func (fp *FeneconProber) SetRetry(retry int, waitTime, maxWaitTime time.Duration)

func (*FeneconProber) SetTimeout

func (fp *FeneconProber) SetTimeout(timeout time.Duration)

func (*FeneconProber) SetUserAgent

func (fp *FeneconProber) SetUserAgent(val string)

type FeneconProberTarget

type FeneconProberTarget struct {
	Target  string
	Meter   int
	Ess     int
	Charger int
}

type ResultCommon

type ResultCommon struct {
	Address    string   `json:"address"`
	Type       string   `json:"type"`
	AccessMode string   `json:"accessMode"`
	Text       string   `json:"text"`
	Unit       string   `json:"unit"`
	Value      *float64 `json:"value"`
}

Jump to

Keyboard shortcuts

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