• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jeffotoni / quick / 254
51%

Build:
DEFAULT BRANCH: main
Ran 15 Mar 2025 01:05PM UTC
Jobs 1
Files 109
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

15 Mar 2025 01:03PM UTC coverage: 53.959% (-0.02%) from 53.981%
254

push

circleci

jeffotoni
we added an error in the function return, keep the default
LimitReached: func(c *quick.Ctx) error {....
return....

Example:
func main() {
	q := quick.New()

	q.Use(limiter.New(limiter.Config{
		Max:        100,
		Expiration: 1 * time.Second,
		KeyGenerator: func(c *quick.Ctx) string {
			return c.RemoteIP()
		},
		LimitReached: func(c *quick.Ctx) error {
			c.Set("Content-Type", "application/json")
			return
c.Status(quick.StatusTooManyRequests).String(`{"error":"Too many
requests"}`)
		},
	}))

	q.Get("/", func(c *quick.Ctx) error {
		return c.Status(200).JSON(map[string]string{"msg":
"Hello, Quick!"})
	})

	q.Listen(":8080")
}

2 of 6 new or added lines in 2 files covered. (33.33%)

2610 of 4837 relevant lines covered (53.96%)

2066.05 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
0.0
0.0% example/middleware/limiter/limiter-ex1/main.go
2
79.27
-1.98% middleware/limiter/limiter.go
Jobs
ID Job ID Ran Files Coverage
1 254.1 15 Mar 2025 01:05PM UTC 109
53.96
CircleCI Job
Source Files on build 254
  • Tree
  • List 109
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • CircleCI Build #254
  • aef338c2 on github
  • Prev Build on main (#253)
  • Next Build on main (#255)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc