Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ribice/msv
Minimal HTTP server in Go with various middleware
https://github.com/ribice/msv
gorilla-mux http-server middleware mux
Last synced: about 1 month ago
JSON representation
Minimal HTTP server in Go with various middleware
- Host: GitHub
- URL: https://github.com/ribice/msv
- Owner: ribice
- License: mit
- Created: 2019-03-04T09:53:43.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-01T20:56:28.000Z (over 4 years ago)
- Last Synced: 2024-08-01T13:30:55.221Z (3 months ago)
- Topics: gorilla-mux, http-server, middleware, mux
- Language: Go
- Homepage:
- Size: 18.6 KB
- Stars: 11
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
# MSV - Minimal HTTP Server in Go
[![Build Status](https://travis-ci.org/ribice/msv.svg?branch=master)](https://travis-ci.org/ribice/msv)
[![codecov](https://codecov.io/gh/ribice/msv/branch/master/graph/badge.svg)](https://codecov.io/gh/ribice/msv)
[![Go Report Card](https://goreportcard.com/badge/github.com/ribice/msv)](https://goreportcard.com/report/github.com/ribice/msv)
[![Maintainability](https://api.codeclimate.com/v1/badges/c3cb09dbc0bc43186464/maintainability)](https://codeclimate.com/github/ribice/msv/maintainability)MSV is a minimal server implementation in Go. It wraps Gorilla multiplexer, lifecycle control, graceful shutdown and common middleware into a single reusable package.
## Introduction
Whenever I start working on a new project, the packages implemented in msv are the ones I always tend to write from scratch. The idea for msv is to prevent that, and keep the common server implementation reusable for multiple projects.
## What's included
MSV includes the following packages:
- MSV (Server): Basic server implementation that wraps `gorilla/mux` with net/http server. Includes graceful shutdown and Start methods on server.
- Render: Marshalls and validates HTTP requests. Writes HTTP responses and status codes to clients.
- Middleware: Includes various http middlewares:
- bauth: HTTP Basic Authentication
- httplog: HTTP Request/Response logging
- recovery: HTTP panics recoverer## License
MSV is licensed under the MIT license. Check the [LICENSE](LICENSE.md) file for details.
## Author
[Emir Ribic](https://ribice.ba)