(r *http.Request, coldStartChannel chan common.ColdStartChannelStruct)
| 47 | } |
| 48 | |
| 49 | func contextTerminationHandler(r *http.Request, coldStartChannel chan common.ColdStartChannelStruct) { |
| 50 | select { |
| 51 | case <-r.Context().Done(): |
| 52 | if coldStartChannel != nil { |
| 53 | coldStartChannel <- common.ColdStartChannelStruct{ |
| 54 | Outcome: common.CanceledColdStart, |
| 55 | AddEndpointDuration: 0, |
| 56 | } |
| 57 | } |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | func HealthHandler(writer http.ResponseWriter, _ *http.Request) { |
| 62 | writer.WriteHeader(http.StatusOK) |
no outgoing calls
no test coverage detected