Categorygithub.com/inquizarus/gorest
modulepackage
0.2.2
Repository: https://github.com/inquizarus/gorest.git
Documentation: pkg.go.dev

# README

CircleCI

GOREST

Just a simple rest server with injectable handlers and middlewares

# Packages

No description provided by the author

# Functions

ChainMiddleware creates a function that will apply all passed middlewares.
Serve the rest service.
WithJSONContent is a Middleware that sets the content type to json for the response.
WithStrictTransportSecurity injects strict TLS related headers.

# Structs

BaseHandler to use for extending.
ServeConfig contains everything needed to serve the rest API.
ServeTLSConfig for serving HTTPS requests.

# Interfaces

Handler interface for controllers.

# Type aliases

Middleware for HTTP requests.
VerbHandler is responseible for a specific type of request.