# Packages
No description provided by the author
# Functions
BackgroundProcess Launch a background process go routine which takes any arbitrary function and run it in the background.
ClearCookies clear all the stateless cookies specified to clear on the user browser.
No description provided by the author
GenerateBasicAuth ...
No description provided by the author
GetCookie retrieve token stored in cookie for a user with the name used to store the cookie Use the decode method on the TokenGenerator to Decode and return the claims on that token: https://github.com/Harphies/microservices/blob/main/golang-projects/microservices-toolkits/pkg/security/authorization/jwt-token.go#L66.
GetEnv try to get an environment variable from process envs and if not found use a fallback value.
No description provided by the author
No description provided by the author
GetValueFromRequestContext retrieve the user from the request context.
HTTPRequest sends an HTTP request and returns the response body.
HTTPRequestWithTrace makes http request with http request tracing option for debugging.
LoadAllCountries get list of all countries and their name and put in-memory(cache).
MtlsRequest ...
NewHTTPClient reuse your client for performance reasons.
ReadQueryStringKeyOfStringValue reads a string value from a query string key with value of type string.
No description provided by the author
No description provided by the author
RunInTheBackground The background helper accepts an arbitrary function as a parameter.
SetCookie Set Authorization Token in http cookie after user signed in for stateless cookies.
No description provided by the author
TrackTime prints the execution duration of a function Usage defer TrackTime()().
No description provided by the author
WriteJsonResponse is a utility function to help write Go structs to JSON response.