mirror of
https://github.com/openziti/zrok.git
synced 2025-06-11 20:36:38 +02:00
108 lines
2.8 KiB
Go
108 lines
2.8 KiB
Go
// Code generated by go-swagger; DO NOT EDIT.
|
|
|
|
package metadata
|
|
|
|
// This file was generated by the swagger tool.
|
|
// Editing this file might prove futile when you re-run the swagger generate command
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/go-openapi/runtime"
|
|
)
|
|
|
|
// GetSparklinesOKCode is the HTTP code returned for type GetSparklinesOK
|
|
const GetSparklinesOKCode int = 200
|
|
|
|
/*
|
|
GetSparklinesOK sparklines data
|
|
|
|
swagger:response getSparklinesOK
|
|
*/
|
|
type GetSparklinesOK struct {
|
|
|
|
/*
|
|
In: Body
|
|
*/
|
|
Payload *GetSparklinesOKBody `json:"body,omitempty"`
|
|
}
|
|
|
|
// NewGetSparklinesOK creates GetSparklinesOK with default headers values
|
|
func NewGetSparklinesOK() *GetSparklinesOK {
|
|
|
|
return &GetSparklinesOK{}
|
|
}
|
|
|
|
// WithPayload adds the payload to the get sparklines o k response
|
|
func (o *GetSparklinesOK) WithPayload(payload *GetSparklinesOKBody) *GetSparklinesOK {
|
|
o.Payload = payload
|
|
return o
|
|
}
|
|
|
|
// SetPayload sets the payload to the get sparklines o k response
|
|
func (o *GetSparklinesOK) SetPayload(payload *GetSparklinesOKBody) {
|
|
o.Payload = payload
|
|
}
|
|
|
|
// WriteResponse to the client
|
|
func (o *GetSparklinesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
|
|
|
|
rw.WriteHeader(200)
|
|
if o.Payload != nil {
|
|
payload := o.Payload
|
|
if err := producer.Produce(rw, payload); err != nil {
|
|
panic(err) // let the recovery middleware deal with this
|
|
}
|
|
}
|
|
}
|
|
|
|
// GetSparklinesUnauthorizedCode is the HTTP code returned for type GetSparklinesUnauthorized
|
|
const GetSparklinesUnauthorizedCode int = 401
|
|
|
|
/*
|
|
GetSparklinesUnauthorized unauthorized
|
|
|
|
swagger:response getSparklinesUnauthorized
|
|
*/
|
|
type GetSparklinesUnauthorized struct {
|
|
}
|
|
|
|
// NewGetSparklinesUnauthorized creates GetSparklinesUnauthorized with default headers values
|
|
func NewGetSparklinesUnauthorized() *GetSparklinesUnauthorized {
|
|
|
|
return &GetSparklinesUnauthorized{}
|
|
}
|
|
|
|
// WriteResponse to the client
|
|
func (o *GetSparklinesUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
|
|
|
|
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
|
|
|
|
rw.WriteHeader(401)
|
|
}
|
|
|
|
// GetSparklinesInternalServerErrorCode is the HTTP code returned for type GetSparklinesInternalServerError
|
|
const GetSparklinesInternalServerErrorCode int = 500
|
|
|
|
/*
|
|
GetSparklinesInternalServerError internal server error
|
|
|
|
swagger:response getSparklinesInternalServerError
|
|
*/
|
|
type GetSparklinesInternalServerError struct {
|
|
}
|
|
|
|
// NewGetSparklinesInternalServerError creates GetSparklinesInternalServerError with default headers values
|
|
func NewGetSparklinesInternalServerError() *GetSparklinesInternalServerError {
|
|
|
|
return &GetSparklinesInternalServerError{}
|
|
}
|
|
|
|
// WriteResponse to the client
|
|
func (o *GetSparklinesInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
|
|
|
|
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
|
|
|
|
rw.WriteHeader(500)
|
|
}
|