()
| 166 | } |
| 167 | |
| 168 | func (mod *HttpsServer) Stop() error { |
| 169 | return mod.SetRunning(false, func() { |
| 170 | ctx, cancel := context.WithTimeout(context.Background(), 60*time.Second) |
| 171 | defer cancel() |
| 172 | mod.server.Shutdown(ctx) |
| 173 | }) |
| 174 | } |
no test coverage detected