Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Cache represent the process-global cache system, used for example to prevent repetitive HTTP requests from being sent to LibreNMS
Functions ¶
func BuildAPIClient ¶
BuildAPIClient build the HTTP client used for LibreNMS, it automatically inject the base URL and authentication token.
func BuildHTTPClient ¶
BuildHTTPClient build the default HTTP client used in the application and inject a debug logging
func RunRequestIfNotCached ¶
RunRequestIfNotCached will take a cache key and a request as parameter, it will only run it if the same request hasn't been executed already (checked using cache keys) and returns the cached response (or run it and cache the response before returning it)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.