package
1.1.64
Repository: https://github.com/btm6084/utilities.git
Documentation: pkg.go.dev

# Functions

CacheStatusFromContext retrieves the cache status from the given context.
CacheStatusFromHeaders returns true if the X-Cache-Hit header was set with the value "true".
No description provided by the author
CreateLogger creates an access logger.
CreateScalyrWriter will create an io.Writer which will tee all log writes between the supplied io.Writer and a buffer.
CustomAccessLog creates a custom access logger.
GetOutboundIP returns the outbound ip address.
RequestWithCacheStatus attaches a cache status to the request.
TransactionFromContext retrieves the txnID from the given context.
TransactionHandler creates a unique ID for every request.
TxnFields builds a log.Fields object when all you need is a transactionID.
No description provided by the author

# Variables

ScalyrClient is the http.Client used to communicate with scalyr.

# Structs

No description provided by the author
No description provided by the author
NoopWriter satisfies the io.Writer interface, but does nothing.
No description provided by the author
ScalyrWriter will buffer all log writes for logging to scalyr, then tee all calls to the supplied io.Writer.

# Interfaces

No description provided by the author