gapi

module
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 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:
google
Package google provides and registers error builders to interpret google errors into gapi errors.
Package google provides and registers error builders to interpret google errors into gapi errors.
examples
1-hello-world Module
2-encoders Module
3-params Module
4-doc-openapi Module
log
Package log provides a simple and extensible logger.
Package log provides a simple and extensible logger.
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.
Package stacktrace provides you a StackTrace type that contains both the list of the runtime.Frame of the stacktrace, and the printed format fo debug.Stack(), so you can choose which format you want to use.
Package stacktrace provides you a StackTrace type that contains both the list of the runtime.Frame of the stacktrace, and the printed format fo debug.Stack(), so you can choose which format you want to use.

Jump to

Keyboard shortcuts

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