mirror of
https://github.com/openziti/zrok.git
synced 2024-12-23 15:18:52 +01:00
60 lines
1.5 KiB
Go
60 lines
1.5 KiB
Go
|
// Code generated by go-swagger; DO NOT EDIT.
|
||
|
|
||
|
package metrics
|
||
|
|
||
|
// 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"
|
||
|
|
||
|
"github.com/openziti/zrok/rest_model_zrok"
|
||
|
)
|
||
|
|
||
|
// GetAccountMetricsOKCode is the HTTP code returned for type GetAccountMetricsOK
|
||
|
const GetAccountMetricsOKCode int = 200
|
||
|
|
||
|
/*
|
||
|
GetAccountMetricsOK account metrics
|
||
|
|
||
|
swagger:response getAccountMetricsOK
|
||
|
*/
|
||
|
type GetAccountMetricsOK struct {
|
||
|
|
||
|
/*
|
||
|
In: Body
|
||
|
*/
|
||
|
Payload *rest_model_zrok.Metrics `json:"body,omitempty"`
|
||
|
}
|
||
|
|
||
|
// NewGetAccountMetricsOK creates GetAccountMetricsOK with default headers values
|
||
|
func NewGetAccountMetricsOK() *GetAccountMetricsOK {
|
||
|
|
||
|
return &GetAccountMetricsOK{}
|
||
|
}
|
||
|
|
||
|
// WithPayload adds the payload to the get account metrics o k response
|
||
|
func (o *GetAccountMetricsOK) WithPayload(payload *rest_model_zrok.Metrics) *GetAccountMetricsOK {
|
||
|
o.Payload = payload
|
||
|
return o
|
||
|
}
|
||
|
|
||
|
// SetPayload sets the payload to the get account metrics o k response
|
||
|
func (o *GetAccountMetricsOK) SetPayload(payload *rest_model_zrok.Metrics) {
|
||
|
o.Payload = payload
|
||
|
}
|
||
|
|
||
|
// WriteResponse to the client
|
||
|
func (o *GetAccountMetricsOK) 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
|
||
|
}
|
||
|
}
|
||
|
}
|