homepage

package
v0.0.0-...-0954cc7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
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

func (*Homepage) ServeHTTP

func (o *Homepage) ServeHTTP(rw http.ResponseWriter, r *http.Request)

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

Handle executing the request and returning a response

type HomepageOK

type HomepageOK struct {

	/*
	  In: Body
	*/
	Payload *models.Ack `json:"body,omitempty"`
}

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

type HomepageParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

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) Must

func (o *HomepageURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL