util

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckCredentials

func CheckCredentials(
	authDB config.HTTPBACredentials, validCredentials []config.HTTPBACredentialID, username, password string,
) bool

CheckCredentials validates whether a given username/password pair matches an entry in the authDB whose id is present in the validCredentials list

func GetSensorURLPath

func GetSensorURLPath(sensorType, location, name string) string

GetSensorURLPath generates the URL path for the given sensor details. location and name may be optional depending on sensorType, see the schema definition for details. The path is always all-lowercase.

Types

This section is empty.

Jump to

Keyboard shortcuts

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