Service is a http.Handler with Startup and Shutdown lifecycle
| 14 | |
| 15 | // Service is a http.Handler with Startup and Shutdown lifecycle |
| 16 | type Service interface { |
| 17 | http.Handler |
| 18 | |
| 19 | // Startup controls app startup |
| 20 | Startup(ctx context.Context) error |
| 21 | |
| 22 | // Shutdown controls app shutdown |
| 23 | Shutdown(ctx context.Context) error |
| 24 | } |
| 25 | |
| 26 | // Metrics represents metrics Startup and Shutdown lifecycle and Handle middleware |
| 27 | type Metrics interface { |
no outgoing calls
no test coverage detected