package
0.0.0-20220415114507-23e4a566c725
Repository: https://github.com/majodev/go-beer-punk-proxy.git
Documentation: pkg.go.dev

# Packages

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

# Functions

No description provided by the author
No description provided by the author
BindAndValidate binds the request, parsing path+query+body and validating these structs.
BindAndValidateBody binds the request, parsing **only** its body (depending on the `Content-Type` request header) and performs validation as enforced by the Swagger schema associated with the provided type.
BindAndValidatePathAndQueryParams binds the request, parsing **only** its path **and** query params and performs validation as enforced by the Swagger schema associated with the provided type.
BindAndValidatePathParams binds the request, parsing **only** its path params and performs validation as enforced by the Swagger schema associated with the provided type.
BindAndValidateQueryParams binds the request, parsing **only** its query params and performs validation as enforced by the Swagger schema associated with the provided type.
No description provided by the author
ContainsAllString checks whether the given string slice contains all strings provided.
ContainsString checks whether the given string slice contains the string provided.
No description provided by the author
No description provided by the author
No description provided by the author
DisableLogger toggles the indication whether `util.LogFromContext` should return a disabled logger for a context if none has been set by our logging middleware before.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GenerateRandomBase64String returns a string with n random bytes securely generated using the system's default CSPRNG in base64 encoding.
GenerateRandomBytes returns n random bytes securely generated using the system's default CSPRNG.
GenerateRandomHexString returns a string with n random bytes securely generated using the system's default CSPRNG in hexadecimal encoding.
GenerateRandomString returns a string with n random bytes securely generated using the system's default CSPRNG.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetEnvAsLanguageTagArr reads ENV and returns the parsed values as []language.Tag split by separator.
GetEnvAsStringArr reads ENV and returns the values split by separator.
GetEnvAsStringArrTrimmed reads ENV and returns the whitespace trimmed values split by separator.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetMgmtSecret returns the management secret for the app server, mainly used by health check and readiness endpoints.
GetProjectRootDir returns the path as string to the project_root for a **running application**.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
LogFromContext returns a request-specific zerolog instance using the provided context.
LogFromEchoContext returns a request-specific zerolog instance using the echo.Context of the request.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RequestIDFromContext returns the ID of the (HTTP) request, returning an error if it is not present.
RunningInTest returns true if the current executing is within the go test framework.
ShouldDisableLogger checks whether the logger instance should be disabled for the provided context.
No description provided by the author
No description provided by the author
StartOfWeek returns the monday (assuming week starts at monday) of the week of the date.
TimeFromString returns an instance of time.Time from a given string asuming RFC3339 format.
TouchFile creates an empty file if the file doesn’t already exist.
Lowercases a string and trims whitespace from the beginning and end of the string.
No description provided by the author
UniqueString takes the string slice provided and returns a new slice with all duplicates removed.
ValidateAndReturn returns the provided data as a JSON response with the given HTTP status code after performing payload validation as enforced by the Swagger schema associated with the provided type.
WaitTimeout waits for the waitgroup for the specified max timeout.

# Constants

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

# Variables

No description provided by the author

# Type aliases

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