An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

github.com/sharpvik/mux

Package mux seeks to provide customizable and convenient internal routing for Go's http.Server. When building a server-side app or a REST API, you may wish to implement complex routing mechanisms that allow you to effectively process incoming requests by checking their signatures against different routes with preset filters. There already exist a few packages that provide this functionality. However, there is a catch: those packages are written as though the only things your handler functions are going to be working with are http.ResponseWriter and http.Request sent by the user. In reality, you may wish to query a database and/or log some data through log.Logger. Of course, there are ways to allow a function to acces those interfaces via a global variable or something like that, but those ways are a pain to write tests for. In this package, you can find the Router sturct that is written in a way that resolves those problems by supporting the router-embedded context.

Ecosystem
proxy.golang.org
Latest Release
v0.2.0
almost 5 years ago
Versions
2
Dependent Packages
1
Dependent Repos
1
Links
Registry proxy.golang.org
Source Repository
Docs Documentation
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:golang/github.com/sharpvik/mux
spec
License MPL-2.0
Namespace github.com/sharpvik
First Release about 5 years ago
Last Synced 20 days ago
Repository
Stars 1 on GitHub
Forks 0 on GitHub
Rankings on proxy.golang.org
Dependent packages Top 5.8%
Dependent repos Top 4.7%