package
0.0.2
Repository: https://github.com/glynternet/pkg.git
Documentation: pkg.go.dev

# Functions

LoggingHandler returns a simple Handler that wraps a http.handler and logs any incoming request.
NewRouter creates a new Router and initialises it will all of the global generateRoutes.
NewServeFn returns a function that can be used to start a server.
WithAuthoriser wraps a handler with the given RequestAuthoriser.

# Structs

Route holds all values for registering with the Router.

# Interfaces

RequestAuthoriser returns an error of the request is not authorised.

# Type aliases

AppJSONHandler handles a request and returns a status code, something that should be marshalled into the response body and any errors that occur in the process.