mirror of
https://github.com/adnanh/webhook.git
synced 2025-06-05 20:22:28 +00:00
Use gorilla/mux for middleware and extend
- Use gorilla/mux for middleware. - Add Dumper, RequestID, and Logger middlewares. - Add makeURL helper
This commit is contained in:
parent
93ce24d3f3
commit
be815d0a41
323 changed files with 90756 additions and 16711 deletions
12
vendor/github.com/go-chi/chi/middleware/middleware.go
generated
vendored
Normal file
12
vendor/github.com/go-chi/chi/middleware/middleware.go
generated
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
package middleware
|
||||
|
||||
// contextKey is a value for use with context.WithValue. It's used as
|
||||
// a pointer so it fits in an interface{} without allocation. This technique
|
||||
// for defining context keys was copied from Go 1.7's new use of context in net/http.
|
||||
type contextKey struct {
|
||||
name string
|
||||
}
|
||||
|
||||
func (k *contextKey) String() string {
|
||||
return "chi/middleware context value " + k.name
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue