(w http.ResponseWriter, r *http.Request)
| 1125 | } |
| 1126 | |
| 1127 | func handleStop(w http.ResponseWriter, r *http.Request) error { |
| 1128 | if r.Method != http.MethodPost { |
| 1129 | return APIError{ |
| 1130 | HTTPStatus: http.StatusMethodNotAllowed, |
| 1131 | Err: fmt.Errorf("method not allowed"), |
| 1132 | } |
| 1133 | } |
| 1134 | |
| 1135 | exitProcess(context.Background(), Log().Named("admin.api")) |
| 1136 | return nil |
| 1137 | } |
| 1138 | |
| 1139 | func parseCanonicalArrayIndex(idx string) (int, error) { |
| 1140 | if idx == "" { |
nothing calls this directly
no test coverage detected