package
1.2.0
Repository: https://github.com/peter-mount/go-kernel.git
Documentation: pkg.go.dev

# Functions

ConsoleLogger returns a middleware function to log requests to the console.
Default ID generator, Generates a UUID.
FormatLogger returns a middleware function to log requests to a function.
GetRest returns the *Rest instance from a Context issued with the Do() function.
Handler creates a wrapper around a rest handler and one used by mux.
LogLogger returns a middleware function to log requests to a specific logger.
NewRest creates a new Rest query.
RequestID adds request tracing by adding the "X-Request-Id" header to the response.
TraceRequest adds a request tracking header, similar to X-Request-ID or X-Amz-Request-Id used by AmazonS3.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

A Rest query.
RestBuilder allows for a Rest endpoint to be built.
Server The internal config of a Server.
No description provided by the author
StatusCodeResponseWriter is an implementation of http.ResponseWriter which can be used to obtain the response status code.

# Type aliases

AddHeadersDecorator is a decorator which ensures that the given headers are always present in a response that has not returned an error.
No description provided by the author
An ID Generator.
A decorator decorating a RestHandler.
A handler of a rest call.