Documentation ¶
Index ¶
- Constants
- type GetConfig
- type GetConfigDefault
- func (o *GetConfigDefault) SetPayload(payload *models.Error)
- func (o *GetConfigDefault) SetStatusCode(code int)
- func (o *GetConfigDefault) WithPayload(payload *models.Error) *GetConfigDefault
- func (o *GetConfigDefault) WithStatusCode(code int) *GetConfigDefault
- func (o *GetConfigDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetConfigHandler
- type GetConfigHandlerFunc
- type GetConfigOK
- type GetConfigParams
- type GetConfigURL
- func (o *GetConfigURL) Build() (*url.URL, error)
- func (o *GetConfigURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetConfigURL) Must(u *url.URL, err error) *url.URL
- func (o *GetConfigURL) SetBasePath(bp string)
- func (o *GetConfigURL) String() string
- func (o *GetConfigURL) StringFull(scheme, host string) string
- func (o *GetConfigURL) WithBasePath(bp string) *GetConfigURL
Constants ¶
const GetConfigOKCode int = 200
GetConfigOKCode is the HTTP code returned for type GetConfigOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetConfig ¶
type GetConfig struct { Context *middleware.Context Handler GetConfigHandler }
GetConfig swagger:route GET /api/config config getConfig
GetConfig get config API
func NewGetConfig ¶
func NewGetConfig(ctx *middleware.Context, handler GetConfigHandler) *GetConfig
NewGetConfig creates a new http.Handler for the get config operation
type GetConfigDefault ¶
type GetConfigDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetConfigDefault generic error response
swagger:response getConfigDefault
func NewGetConfigDefault ¶
func NewGetConfigDefault(code int) *GetConfigDefault
NewGetConfigDefault creates GetConfigDefault with default headers values
func (*GetConfigDefault) SetPayload ¶
func (o *GetConfigDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get config default response
func (*GetConfigDefault) SetStatusCode ¶
func (o *GetConfigDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get config default response
func (*GetConfigDefault) WithPayload ¶
func (o *GetConfigDefault) WithPayload(payload *models.Error) *GetConfigDefault
WithPayload adds the payload to the get config default response
func (*GetConfigDefault) WithStatusCode ¶
func (o *GetConfigDefault) WithStatusCode(code int) *GetConfigDefault
WithStatusCode adds the status to the get config default response
func (*GetConfigDefault) WriteResponse ¶
func (o *GetConfigDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetConfigHandler ¶
type GetConfigHandler interface {
Handle(GetConfigParams) middleware.Responder
}
GetConfigHandler interface for that can handle valid get config params
type GetConfigHandlerFunc ¶
type GetConfigHandlerFunc func(GetConfigParams) middleware.Responder
GetConfigHandlerFunc turns a function with the right signature into a get config handler
func (GetConfigHandlerFunc) Handle ¶
func (fn GetConfigHandlerFunc) Handle(params GetConfigParams) middleware.Responder
Handle executing the request and returning a response
type GetConfigOK ¶
GetConfigOK the configuration of entry
swagger:response getConfigOK
func NewGetConfigOK ¶
func NewGetConfigOK() *GetConfigOK
NewGetConfigOK creates GetConfigOK with default headers values
func (*GetConfigOK) SetPayload ¶
func (o *GetConfigOK) SetPayload(payload *models.Config)
SetPayload sets the payload to the get config o k response
func (*GetConfigOK) WithPayload ¶
func (o *GetConfigOK) WithPayload(payload *models.Config) *GetConfigOK
WithPayload adds the payload to the get config o k response
func (*GetConfigOK) WriteResponse ¶
func (o *GetConfigOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetConfigParams ¶
GetConfigParams contains all the bound params for the get config operation typically these are obtained from a http.Request
swagger:parameters getConfig
func NewGetConfigParams ¶
func NewGetConfigParams() GetConfigParams
NewGetConfigParams creates a new GetConfigParams object no default values defined in spec.
func (*GetConfigParams) BindRequest ¶
func (o *GetConfigParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetConfigParams() beforehand.
type GetConfigURL ¶
type GetConfigURL struct {
// contains filtered or unexported fields
}
GetConfigURL generates an URL for the get config operation
func (*GetConfigURL) Build ¶
func (o *GetConfigURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetConfigURL) BuildFull ¶
func (o *GetConfigURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetConfigURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetConfigURL) SetBasePath ¶
func (o *GetConfigURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetConfigURL) String ¶
func (o *GetConfigURL) String() string
String returns the string representation of the path with query string
func (*GetConfigURL) StringFull ¶
func (o *GetConfigURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetConfigURL) WithBasePath ¶
func (o *GetConfigURL) WithBasePath(bp string) *GetConfigURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string