Skip to content

Commit

Permalink
Add interface for limiting
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Oct 14, 2022
1 parent e717845 commit fcf59bb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions concurrency-limiter/concurrency_limiter.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ import (
"sync/atomic"
)

// Limiter is an interface that can be used to check if a limit has been met.
type Limiter interface {
Met() bool
}

type ConcurrencyLimiter struct {
backendHTTPHandler http.Handler
/*
Expand Down

0 comments on commit fcf59bb

Please sign in to comment.