| 17 | type StopReason int |
| 18 | |
| 19 | type Metrics interface { |
| 20 | // StartWorker collects started workers |
| 21 | StartWorker(name string) |
| 22 | // ReadyWorker collects ready workers |
| 23 | ReadyWorker(name string) |
| 24 | // StopWorker collects stopped workers |
| 25 | StopWorker(name string, reason StopReason) |
| 26 | // TotalWorkers collects expected workers |
| 27 | TotalWorkers(name string, num int) |
| 28 | // TotalThreads collects total threads |
| 29 | TotalThreads(num int) |
| 30 | // StartRequest collects started requests |
| 31 | StartRequest() |
| 32 | // StopRequest collects stopped requests |
| 33 | StopRequest() |
| 34 | // StopWorkerRequest collects stopped worker requests |
| 35 | StopWorkerRequest(name string, duration time.Duration) |
| 36 | // StartWorkerRequest collects started worker requests |
| 37 | StartWorkerRequest(name string) |
| 38 | Shutdown() |
| 39 | QueuedWorkerRequest(name string) |
| 40 | DequeuedWorkerRequest(name string) |
| 41 | QueuedRequest() |
| 42 | DequeuedRequest() |
| 43 | } |
| 44 | |
| 45 | type nullMetrics struct{} |
| 46 |
no outgoing calls
no test coverage detected