| 16 | ) |
| 17 | |
| 18 | type limitsMiddleware struct { |
| 19 | tripperware.Limits |
| 20 | next tripperware.Handler |
| 21 | |
| 22 | lookbackDelta time.Duration |
| 23 | } |
| 24 | |
| 25 | // NewLimitsMiddleware creates a new Middleware that enforces query limits. |
| 26 | func NewLimitsMiddleware(l tripperware.Limits, lookbackDelta time.Duration) tripperware.Middleware { |
nothing calls this directly
no outgoing calls
no test coverage detected