package
0.0.0-20220331220452-7d63ed464df1
Repository: https://github.com/zapproject/pythia.git
Documentation: pkg.go.dev

# Functions

CreateTestClient returns *http.Client with Transport replaced to avoid making real calls.
No description provided by the author
GetLoggingConfig retrieves a shared logging config.
HTTPWithRetries will keep trying the given request until non-error result or timeout.
NewKey creates a new context string key using a package and name designator.
NewLogger creates a log instance for the given component with the given log level enabled.
ParseLoggingConfig parses the given JSON log level config file for use in log configuration.
ParsePayload will extract the value from a query payload.
ParseQueryString extracts the url and any args for extract values from query result payload.
StringToLevel converts a string named log level into a level ot use for setting log levels.

# Constants

DebugLogLevel will only log debugs.
ErrorLogLevel will only log error messages.
GET is a GET request type.
InfoLogLevel will only log infos.
POST
POST is a POST request type.
WarningLogLevel will only log warnings.

# Structs

Entry
Entry holds specific component log level.
HTTPFetchRequest holds info for a request.
LogConfig holds individual log level settings.
Logger is the log implementation that wraps underlying logging mechanism.
QueryStruct holds query result fields as a map.

# Type aliases

ContextKey string key for context value lookups.
LogLevel represents possible log levels.
RoundTripFunc The mock interface to implement.