package
0.0.0-20201006080941-34a2968f5281
Repository: https://github.com/fenrislol/grafana.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

DecodeBasicAuthHeader decodes user and password from a basic auth header.
Decrypt decrypts a payload with a given secret.
EncodePassword encodes a password using PBKDF2.
Encrypt encrypts a payload with a given secret.
GenerateShortUID generates a short unique identifier.
GetAgeString returns a string representing certain time from years to minutes.
GetBasicAuthHeader returns a base64 encoded string from user and password.
GetRandomString generate random string by specify chars.
IsEmail checks if a string is a valid email address.
IsValidShortUID checks if short unique identifier contains valid characters.
JoinURLFragments joins two ApiURL fragments into only one ApiURL string.
MaxInt returns the larger of x or y.
Md5Sum calculates the md5sum of a stream.
Md5SumString calculates the md5sum of a string.
MinInt returns the smaller of x or y.
NewURLQueryReader parses a raw query and returns it as a URLQueryReader type.
ParseIPAddress parses an IP address and removes port and/or IPV6 format.
RandomHex returns a random string from a n seed.
SplitEmails splits addresses with a few different ways.
SplitHostPort splits ip address/hostname string by host and port.
SplitHostPortDefault splits ip address/hostname string by host and port.
SplitString splits a string by commas or empty spaces.
StringsFallback2 returns the first of two not empty strings.
StringsFallback3 returns the first of three not empty strings.
ToCamelCase changes kebab case, snake case or mixed strings to camel case.
Walk walks a path, optionally following symbolic links, and for each path, it calls the walkFn passed.

# Variables

ErrWalkSkipDir is the Error returned when we want to skip descending into a directory.

# Structs

No description provided by the author
URLQueryReader is a ApiURL query type.

# Type aliases

DynMap defines a dynamic map interface.
WalkFunc is a callback function called for each path as a directory is walked If resolvedPath != "", then we are following symbolic links.