gapi

module
v0.2.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2023 License: MIT

README

Golang-API

Go Report Card PkgGoDev

This repository contains a set of small packages we use at MWM to build restfull APIs.

  • errors
  • log
  • middleware
  • server
  • stacktrace

Examples

You can see examples implementations in the examples folder:

Directories

Path Synopsis
Package errors provides a generic error carrying useful information:
Package errors provides a generic error carrying useful information:
examples
1-hello-world Module
2-encoders Module
3-params Module
4-doc-openapi Module
Package log
Package log
Package middleware provides you multiple generic middlewares to use to enhance your http handlers.
Package middleware provides you multiple generic middlewares to use to enhance your http handlers.
Package openapi provides helper functions to use github.com/swaggest/openapi-go/openapi3 more easily.
Package openapi provides helper functions to use github.com/swaggest/openapi-go/openapi3 more easily.
Package server provides a simple router based https://github.com/gorilla/mux, with a SpecOpenAPIHandler type return the response (not serialized) and an error, as well as a Middleware type to allow middleware for this new SpecOpenAPIHandler type.
Package server provides a simple router based https://github.com/gorilla/mux, with a SpecOpenAPIHandler type return the response (not serialized) and an error, as well as a Middleware type to allow middleware for this new SpecOpenAPIHandler type.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL