Moving RMR message reciver into go routine
[ric-plt/a1.git] / a1-go / pkg / restapi / operations / a1_mediator / a1_controller_get_healthcheck_responses.go
1 /*
2 ==================================================================================
3   Copyright (c) 2021 Samsung
4
5    Licensed under the Apache License, Version 2.0 (the "License");
6    you may not use this file except in compliance with the License.
7    You may obtain a copy of the License at
8
9        http://www.apache.org/licenses/LICENSE-2.0
10
11    Unless required by applicable law or agreed to in writing, software
12    distributed under the License is distributed on an "AS IS" BASIS,
13    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14    See the License for the specific language governing permissions and
15    limitations under the License.
16
17    This source code is part of the near-RT RIC (RAN Intelligent Controller)
18    platform project (RICP).
19 ==================================================================================
20 */
21 // Code generated by go-swagger; DO NOT EDIT.
22
23 package a1_mediator
24
25 // This file was generated by the swagger tool.
26 // Editing this file might prove futile when you re-run the swagger generate command
27
28 import (
29         "net/http"
30
31         "github.com/go-openapi/runtime"
32 )
33
34 // A1ControllerGetHealthcheckOKCode is the HTTP code returned for type A1ControllerGetHealthcheckOK
35 const A1ControllerGetHealthcheckOKCode int = 200
36
37 /*A1ControllerGetHealthcheckOK A1 is healthy. Anything other than a 200 should be considered a1 as failing
38
39
40 swagger:response a1ControllerGetHealthcheckOK
41 */
42 type A1ControllerGetHealthcheckOK struct {
43 }
44
45 // NewA1ControllerGetHealthcheckOK creates A1ControllerGetHealthcheckOK with default headers values
46 func NewA1ControllerGetHealthcheckOK() *A1ControllerGetHealthcheckOK {
47
48         return &A1ControllerGetHealthcheckOK{}
49 }
50
51 // WriteResponse to the client
52 func (o *A1ControllerGetHealthcheckOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
53
54         rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
55
56         rw.WriteHeader(200)
57 }
58
59 // A1ControllerGetHealthcheckInternalServerErrorCode is the HTTP code returned for type A1ControllerGetHealthcheckInternalServerError
60 const A1ControllerGetHealthcheckInternalServerErrorCode int = 500
61
62 /*A1ControllerGetHealthcheckInternalServerError Internal error to signal A1 is not healthy. Client should attempt to retry later.
63
64 swagger:response a1ControllerGetHealthcheckInternalServerError
65 */
66 type A1ControllerGetHealthcheckInternalServerError struct {
67 }
68
69 // NewA1ControllerGetHealthcheckInternalServerError creates A1ControllerGetHealthcheckInternalServerError with default headers values
70 func NewA1ControllerGetHealthcheckInternalServerError() *A1ControllerGetHealthcheckInternalServerError {
71
72         return &A1ControllerGetHealthcheckInternalServerError{}
73 }
74
75 // WriteResponse to the client
76 func (o *A1ControllerGetHealthcheckInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
77
78         rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
79
80         rw.WriteHeader(500)
81 }