Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 417 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 417 Bytes

gatekeeper

GoDoc

Build

# go test ./...
$ go build ./...

Usage

db, _ := ...                             // from github.com/jmoiron/sqlx
backend := sql.FromxDB(db, "api_usages")
middleware := gatekeeper.FromKeeper(backend)
http.Handle("/hello", middleware.Wrap(someHandler))