util

package
v1.0.0-beta Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTypesToSample

func GetTypesToSample() []types.Measurand

GetTypesToSample get the measurands to sample from the OCPP configuration.

func HandleRequestErr

func HandleRequestErr(err error, text string)

func IsNilInterfaceOrPointer

func IsNilInterfaceOrPointer(sth interface{}) bool

IsNilInterfaceOrPointer check if the variable is nil or if the pointer's value is nil.

func SendRequest

func SendRequest(chargePoint ocpp16.ChargePoint, request ocpp.Request, callback func(confirmation ocpp.Response, protoError error)) error

SendRequest is a middleware function that implements a retry mechanism for sending requests. If the max attempts is reached, return an error

Types

This section is empty.

Jump to

Keyboard shortcuts

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