github.com/weaviate/weaviate@v1.24.6/adapters/handlers/rest/operations/weaviate_wellknown_readiness_responses.go (about)

     1  //                           _       _
     2  // __      _____  __ ___   ___  __ _| |_ ___
     3  // \ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \
     4  //  \ V  V /  __/ (_| |\ V /| | (_| | ||  __/
     5  //   \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___|
     6  //
     7  //  Copyright © 2016 - 2024 Weaviate B.V. All rights reserved.
     8  //
     9  //  CONTACT: hello@weaviate.io
    10  //
    11  
    12  // Code generated by go-swagger; DO NOT EDIT.
    13  
    14  package operations
    15  
    16  // This file was generated by the swagger tool.
    17  // Editing this file might prove futile when you re-run the swagger generate command
    18  
    19  import (
    20  	"net/http"
    21  
    22  	"github.com/go-openapi/runtime"
    23  )
    24  
    25  // WeaviateWellknownReadinessOKCode is the HTTP code returned for type WeaviateWellknownReadinessOK
    26  const WeaviateWellknownReadinessOKCode int = 200
    27  
    28  /*
    29  WeaviateWellknownReadinessOK The application has completed its start-up routine and is ready to accept traffic.
    30  
    31  swagger:response weaviateWellknownReadinessOK
    32  */
    33  type WeaviateWellknownReadinessOK struct {
    34  }
    35  
    36  // NewWeaviateWellknownReadinessOK creates WeaviateWellknownReadinessOK with default headers values
    37  func NewWeaviateWellknownReadinessOK() *WeaviateWellknownReadinessOK {
    38  
    39  	return &WeaviateWellknownReadinessOK{}
    40  }
    41  
    42  // WriteResponse to the client
    43  func (o *WeaviateWellknownReadinessOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
    44  
    45  	rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
    46  
    47  	rw.WriteHeader(200)
    48  }
    49  
    50  // WeaviateWellknownReadinessServiceUnavailableCode is the HTTP code returned for type WeaviateWellknownReadinessServiceUnavailable
    51  const WeaviateWellknownReadinessServiceUnavailableCode int = 503
    52  
    53  /*
    54  WeaviateWellknownReadinessServiceUnavailable The application is currently not able to serve traffic. If other horizontal replicas of weaviate are available and they are capable of receiving traffic, all traffic should be redirected there instead.
    55  
    56  swagger:response weaviateWellknownReadinessServiceUnavailable
    57  */
    58  type WeaviateWellknownReadinessServiceUnavailable struct {
    59  }
    60  
    61  // NewWeaviateWellknownReadinessServiceUnavailable creates WeaviateWellknownReadinessServiceUnavailable with default headers values
    62  func NewWeaviateWellknownReadinessServiceUnavailable() *WeaviateWellknownReadinessServiceUnavailable {
    63  
    64  	return &WeaviateWellknownReadinessServiceUnavailable{}
    65  }
    66  
    67  // WriteResponse to the client
    68  func (o *WeaviateWellknownReadinessServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
    69  
    70  	rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
    71  
    72  	rw.WriteHeader(503)
    73  }