package
1.0.0
Repository: https://github.com/experienceone/apikit.git
Documentation: pkg.go.dev

# Functions

ClearFieldByName clears all fields and nested fields in an object that have a specified name.
ClearFieldByType clears all fields and nested fields in an object that have a specified type.
GetRequestID returns a request ID for the given context; otherwise an empty string will be returned if the context is nil or the request ID can not be found.
Log creates a middleware to log HTTP requests and responses.
LogHandler creates a middleware handler for logging HTTP requests and responses.
NewLogger returns a new Logger based on APIKit middleware.LogFunc by recognizing the given time format.
No description provided by the author
No description provided by the author
NewMaskingLogger returns a new Logger based on APIKit middleware.LogFunc that will mask the body content of HTTP requests and responses for a given array of field names and types.
RequestID creates a middleware which creates a request ID and store the ID in the request context.

# Constants

No description provided by the author
RequestIdKey is the key to store an unique request ID in a request context.

# Structs

No description provided by the author
No description provided by the author
LogResponseWriter represents a http.ResponseWriter with additional functionality to store response related data for a later use.

# Type aliases

LogFunc represents the func header for logging HTTP requests and responses on a middleware.