Documentation ¶
Index ¶
- Constants
- type Homepage
- type HomepageDefault
- func (o *HomepageDefault) SetPayload(payload *models.Error)
- func (o *HomepageDefault) SetStatusCode(code int)
- func (o *HomepageDefault) WithPayload(payload *models.Error) *HomepageDefault
- func (o *HomepageDefault) WithStatusCode(code int) *HomepageDefault
- func (o *HomepageDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type HomepageHandler
- type HomepageHandlerFunc
- type HomepageOK
- type HomepageParams
- type HomepageURL
- func (o *HomepageURL) Build() (*url.URL, error)
- func (o *HomepageURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *HomepageURL) Must(u *url.URL, err error) *url.URL
- func (o *HomepageURL) SetBasePath(bp string)
- func (o *HomepageURL) String() string
- func (o *HomepageURL) StringFull(scheme, host string) string
- func (o *HomepageURL) WithBasePath(bp string) *HomepageURL
Constants ¶
const HomepageOKCode int = 200
HomepageOKCode is the HTTP code returned for type HomepageOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Homepage ¶
type Homepage struct { Context *middleware.Context Handler HomepageHandler }
Homepage swagger:route GET / Homepage homepage
Homepage
func NewHomepage ¶
func NewHomepage(ctx *middleware.Context, handler HomepageHandler) *Homepage
NewHomepage creates a new http.Handler for the homepage operation
type HomepageDefault ¶
type HomepageDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
HomepageDefault user validation error
swagger:response homepageDefault
func NewHomepageDefault ¶
func NewHomepageDefault(code int) *HomepageDefault
NewHomepageDefault creates HomepageDefault with default headers values
func (*HomepageDefault) SetPayload ¶
func (o *HomepageDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the homepage default response
func (*HomepageDefault) SetStatusCode ¶
func (o *HomepageDefault) SetStatusCode(code int)
SetStatusCode sets the status to the homepage default response
func (*HomepageDefault) WithPayload ¶
func (o *HomepageDefault) WithPayload(payload *models.Error) *HomepageDefault
WithPayload adds the payload to the homepage default response
func (*HomepageDefault) WithStatusCode ¶
func (o *HomepageDefault) WithStatusCode(code int) *HomepageDefault
WithStatusCode adds the status to the homepage default response
func (*HomepageDefault) WriteResponse ¶
func (o *HomepageDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type HomepageHandler ¶
type HomepageHandler interface {
Handle(HomepageParams) middleware.Responder
}
HomepageHandler interface for that can handle valid homepage params
type HomepageHandlerFunc ¶
type HomepageHandlerFunc func(HomepageParams) middleware.Responder
HomepageHandlerFunc turns a function with the right signature into a homepage handler
func (HomepageHandlerFunc) Handle ¶
func (fn HomepageHandlerFunc) Handle(params HomepageParams) middleware.Responder
Handle executing the request and returning a response
type HomepageOK ¶
HomepageOK homepage response
swagger:response homepageOK
func NewHomepageOK ¶
func NewHomepageOK() *HomepageOK
NewHomepageOK creates HomepageOK with default headers values
func (*HomepageOK) SetPayload ¶
func (o *HomepageOK) SetPayload(payload *models.Ack)
SetPayload sets the payload to the homepage o k response
func (*HomepageOK) WithPayload ¶
func (o *HomepageOK) WithPayload(payload *models.Ack) *HomepageOK
WithPayload adds the payload to the homepage o k response
func (*HomepageOK) WriteResponse ¶
func (o *HomepageOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type HomepageParams ¶
HomepageParams contains all the bound params for the homepage operation typically these are obtained from a http.Request
swagger:parameters homepage
func NewHomepageParams ¶
func NewHomepageParams() HomepageParams
NewHomepageParams creates a new HomepageParams object
There are no default values defined in the spec.
func (*HomepageParams) BindRequest ¶
func (o *HomepageParams) 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 NewHomepageParams() beforehand.
type HomepageURL ¶
type HomepageURL struct {
// contains filtered or unexported fields
}
HomepageURL generates an URL for the homepage operation
func (*HomepageURL) Build ¶
func (o *HomepageURL) Build() (*url.URL, error)
Build a url path and query string
func (*HomepageURL) BuildFull ¶
func (o *HomepageURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*HomepageURL) SetBasePath ¶
func (o *HomepageURL) 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 (*HomepageURL) String ¶
func (o *HomepageURL) String() string
String returns the string representation of the path with query string
func (*HomepageURL) StringFull ¶
func (o *HomepageURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*HomepageURL) WithBasePath ¶
func (o *HomepageURL) WithBasePath(bp string) *HomepageURL
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