package
0.0.0-20241005085759-119907479019
Repository: https://github.com/tech-sam/go-k8s.git
Documentation: pkg.go.dev
# Functions
GetTime returns the time from the context.
GetTraceID returns the trace id from the context.
GetValues returns the values from the context.
IsShutdown checks to see if the shutdown error is contained in the specified error value.
NewApp creates an App value that handle a set of routes for the application.
NewShutdownError returns an error that causes the framework to signal a graceful shutdown.
Respond converts a Go value to JSON and sends it to the client.
SetStatusCode sets the status code back into the context.
# Type aliases
A Handler is a type that handles a http request within our own little mini framework.
Middleware is a function designed to run some code before and/or after another Handler.