info

package
v0.0.0-...-ecab65a Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const GetInfoOKCode int = 200

GetInfoOKCode is the HTTP code returned for type GetInfoOK

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

func (*Get) ServeHTTP

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

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

func (*GetInfo) ServeHTTP

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

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

Handle executing the request and returning a response

type GetInfoOK

type GetInfoOK struct {

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

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

func (o *GetInfoOK) SetPayload(payload *models.Info)

SetPayload sets the payload to the get info o k response

func (*GetInfoOK) WithPayload

func (o *GetInfoOK) WithPayload(payload *models.Info) *GetInfoOK

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

type GetInfoParams struct {

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

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

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

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

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

type GetOK struct {

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

GetOK displays application name and release info

swagger:response getOK

func NewGetOK

func NewGetOK() *GetOK

NewGetOK creates GetOK with default headers values

func (*GetOK) SetPayload

func (o *GetOK) SetPayload(payload *models.Info)

SetPayload sets the payload to the get o k response

func (*GetOK) WithPayload

func (o *GetOK) WithPayload(payload *models.Info) *GetOK

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

type GetParams struct {

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

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

func (o *GetURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetURL) BuildFull

func (o *GetURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetURL) Must

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

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

func (*GetURL) SetBasePath

func (o *GetURL) 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 (*GetURL) String

func (o *GetURL) String() string

String returns the string representation of the path with query string

func (*GetURL) StringFull

func (o *GetURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetURL) WithBasePath

func (o *GetURL) WithBasePath(bp string) *GetURL

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