Documentation
¶
Index ¶
- Constants
- type Get
- type GetDefault
- func (o *GetDefault) SetPayload(payload *models.Error)
- func (o *GetDefault) SetStatusCode(code int)
- func (o *GetDefault) WithPayload(payload *models.Error) *GetDefault
- func (o *GetDefault) WithStatusCode(code int) *GetDefault
- func (o *GetDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetHandler
- type GetHandlerFunc
- type GetInfo
- type GetInfoDefault
- func (o *GetInfoDefault) SetPayload(payload *models.Error)
- func (o *GetInfoDefault) SetStatusCode(code int)
- func (o *GetInfoDefault) WithPayload(payload *models.Error) *GetInfoDefault
- func (o *GetInfoDefault) WithStatusCode(code int) *GetInfoDefault
- func (o *GetInfoDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetInfoHandler
- type GetInfoHandlerFunc
- type GetInfoOK
- type GetInfoParams
- type GetInfoURL
- func (o *GetInfoURL) Build() (*url.URL, error)
- func (o *GetInfoURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetInfoURL) Must(u *url.URL, err error) *url.URL
- func (o *GetInfoURL) SetBasePath(bp string)
- func (o *GetInfoURL) String() string
- func (o *GetInfoURL) StringFull(scheme, host string) string
- func (o *GetInfoURL) WithBasePath(bp string) *GetInfoURL
- type GetOK
- type GetParams
- type GetURL
- func (o *GetURL) Build() (*url.URL, error)
- func (o *GetURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetURL) Must(u *url.URL, err error) *url.URL
- func (o *GetURL) SetBasePath(bp string)
- func (o *GetURL) String() string
- func (o *GetURL) StringFull(scheme, host string) string
- func (o *GetURL) WithBasePath(bp string) *GetURL
Constants ¶
const GetInfoOKCode int = 200
GetInfoOKCode is the HTTP code returned for type GetInfoOK
const GetOKCode int = 200
GetOKCode is the HTTP code returned for type GetOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Get ¶
type Get struct { Context *middleware.Context Handler GetHandler }
Get swagger:route GET /info info get
get microservice info
Endpoint gets the application name and release info
func NewGet ¶
func NewGet(ctx *middleware.Context, handler GetHandler) *Get
NewGet creates a new http.Handler for the get operation
type GetDefault ¶
type GetDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetDefault error
swagger:response getDefault
func NewGetDefault ¶
func NewGetDefault(code int) *GetDefault
NewGetDefault creates GetDefault with default headers values
func (*GetDefault) SetPayload ¶
func (o *GetDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get default response
func (*GetDefault) SetStatusCode ¶
func (o *GetDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get default response
func (*GetDefault) WithPayload ¶
func (o *GetDefault) WithPayload(payload *models.Error) *GetDefault
WithPayload adds the payload to the get default response
func (*GetDefault) WithStatusCode ¶
func (o *GetDefault) WithStatusCode(code int) *GetDefault
WithStatusCode adds the status to the get default response
func (*GetDefault) WriteResponse ¶
func (o *GetDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetHandler ¶
type GetHandler interface {
Handle(GetParams) middleware.Responder
}
GetHandler interface for that can handle valid get params
type GetHandlerFunc ¶
type GetHandlerFunc func(GetParams) middleware.Responder
GetHandlerFunc turns a function with the right signature into a get handler
func (GetHandlerFunc) Handle ¶
func (fn GetHandlerFunc) Handle(params GetParams) middleware.Responder
Handle executing the request and returning a response
type GetInfo ¶
type GetInfo struct { Context *middleware.Context Handler GetInfoHandler }
GetInfo swagger:route GET /info info getInfo
get microservice info
Endpoint gets the current version of Builder microservice
func NewGetInfo ¶
func NewGetInfo(ctx *middleware.Context, handler GetInfoHandler) *GetInfo
NewGetInfo creates a new http.Handler for the get info operation
type GetInfoDefault ¶
type GetInfoDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetInfoDefault error
swagger:response getInfoDefault
func NewGetInfoDefault ¶
func NewGetInfoDefault(code int) *GetInfoDefault
NewGetInfoDefault creates GetInfoDefault with default headers values
func (*GetInfoDefault) SetPayload ¶
func (o *GetInfoDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get info default response
func (*GetInfoDefault) SetStatusCode ¶
func (o *GetInfoDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get info default response
func (*GetInfoDefault) WithPayload ¶
func (o *GetInfoDefault) WithPayload(payload *models.Error) *GetInfoDefault
WithPayload adds the payload to the get info default response
func (*GetInfoDefault) WithStatusCode ¶
func (o *GetInfoDefault) WithStatusCode(code int) *GetInfoDefault
WithStatusCode adds the status to the get info default response
func (*GetInfoDefault) WriteResponse ¶
func (o *GetInfoDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetInfoHandler ¶
type GetInfoHandler interface {
Handle(GetInfoParams) middleware.Responder
}
GetInfoHandler interface for that can handle valid get info params
type GetInfoHandlerFunc ¶
type GetInfoHandlerFunc func(GetInfoParams) middleware.Responder
GetInfoHandlerFunc turns a function with the right signature into a get info handler
func (GetInfoHandlerFunc) Handle ¶
func (fn GetInfoHandlerFunc) Handle(params GetInfoParams) middleware.Responder
Handle executing the request and returning a response
type GetInfoOK ¶
GetInfoOK displays microservice's name and version
swagger:response getInfoOK
func NewGetInfoOK ¶
func NewGetInfoOK() *GetInfoOK
NewGetInfoOK creates GetInfoOK with default headers values
func (*GetInfoOK) SetPayload ¶
SetPayload sets the payload to the get info o k response
func (*GetInfoOK) WithPayload ¶
WithPayload adds the payload to the get info o k response
func (*GetInfoOK) WriteResponse ¶
func (o *GetInfoOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetInfoParams ¶
GetInfoParams contains all the bound params for the get info operation typically these are obtained from a http.Request
swagger:parameters getInfo
func NewGetInfoParams ¶
func NewGetInfoParams() GetInfoParams
NewGetInfoParams creates a new GetInfoParams object no default values defined in spec.
func (*GetInfoParams) BindRequest ¶
func (o *GetInfoParams) 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 NewGetInfoParams() beforehand.
type GetInfoURL ¶
type GetInfoURL struct {
// contains filtered or unexported fields
}
GetInfoURL generates an URL for the get info operation
func (*GetInfoURL) Build ¶
func (o *GetInfoURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetInfoURL) BuildFull ¶
func (o *GetInfoURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetInfoURL) SetBasePath ¶
func (o *GetInfoURL) 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 (*GetInfoURL) String ¶
func (o *GetInfoURL) String() string
String returns the string representation of the path with query string
func (*GetInfoURL) StringFull ¶
func (o *GetInfoURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetInfoURL) WithBasePath ¶
func (o *GetInfoURL) WithBasePath(bp string) *GetInfoURL
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
type GetOK ¶
GetOK displays application name and release info
swagger:response getOK
func (*GetOK) SetPayload ¶
SetPayload sets the payload to the get o k response
func (*GetOK) WithPayload ¶
WithPayload adds the payload to the get o k response
func (*GetOK) WriteResponse ¶
func (o *GetOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetParams ¶
GetParams contains all the bound params for the get operation typically these are obtained from a http.Request
swagger:parameters get
func NewGetParams ¶
func NewGetParams() GetParams
NewGetParams creates a new GetParams object no default values defined in spec.
func (*GetParams) BindRequest ¶
func (o *GetParams) 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 NewGetParams() beforehand.
type GetURL ¶
type GetURL struct {
// contains filtered or unexported fields
}
GetURL generates an URL for the get operation
func (*GetURL) SetBasePath ¶
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 (*GetURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*GetURL) WithBasePath ¶
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