# Packages
No description provided by the author
# Functions
CORSMiddleware is a working middlware for using CORS with gin.
GetRandomName generates a random name from the list of adjectives and surnames in this package formatted as "adjective_surname".
Paginate the current request given the page number and results per page; returns the modified SQL query and adds x-total-results-count header to the response.
Render an object and status using the given gin context.
RenderError writes an error message and status using the given gin context.
RequireParams renders an error if any of the given parameters are not present in the given gin context.
ResolvePublicIP resolves the public IP of the caller.
RunAPIUsageDaemon initializes and starts a new API usage daemon using the given delegate; returns an error if there is already an API usage daemon running as it is currently treated as a singleton.
SHA256 is a convenience method to return the sha256 hash of the given input.
StringOrNil returns a pointer to the string, or nil if the given string is empty.
TrackAPICall tracks the api call for the given subject and gin context.
# Variables
Log is the configured logger.
# Interfaces
UsageDelegate interface for API call tracking interface.