MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / New

Function New

monitoring/stats/stats.go:15–19  ·  view source on GitHub ↗

New creates a new Stats instance

(workersNumber int)

Source from the content-addressed store, hash-verified

13
14// New creates a new Stats instance
15func New(workersNumber int) *Stats {
16 return &Stats{
17 WorkersNumber: workersNumber,
18 }
19}
20
21// RequestsInProgress returns the current number of requests in progress
22func (s *Stats) RequestsInProgress() float64 {

Callers 1

NewFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected