utils

package
v1.3.1-0...-2eb6d4b Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseAddKeyRequestQueryString

func ParseAddKeyRequestQueryString(r *http.Request) (isFlatten bool, err errors.EdgeX)

ParseAddKeyRequestQueryString parses flatten from the query parameters.

func ParseDeleteKeyRequestQueryString

func ParseDeleteKeyRequestQueryString(r *http.Request) (prefixMatch bool, err errors.EdgeX)

ParseDeleteKeyRequestQueryString parses prefixMatch from the query parameters.

func ParseGetKeyRequestQueryString

func ParseGetKeyRequestQueryString(r *http.Request) (keysOnly bool, isRaw bool, err errors.EdgeX)

ParseGetKeyRequestQueryString parses keyOnly and plaintext from the query parameters.

func ParseQueryStringToBool

func ParseQueryStringToBool(r *http.Request, queryStringKey string) (bool, errors.EdgeX)

ParseQueryStringToBool parses the specified query string key to a bool. If specified query string key is found more than once in the http request, only the first specified query string will be parsed and converted to a bool. If no specified query string key could be found in the http request, specified default value will be returned. EdgeX error will be returned if any parsing error occurs.

func ValidateKeys

func ValidateKeys(key string) errors.EdgeX

ValidateKeys validates if the key contains invalid characters

Types

This section is empty.

Jump to

Keyboard shortcuts

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