gatekeeper 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))