message

package
v0.0.0-...-953e845 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const GetOKCode int = 200

GetOKCode is the HTTP code returned for type GetOK

View Source
const GetTestOKCode int = 200

GetTestOKCode is the HTTP code returned for type GetTestOK

View Source
const GetVersionOKCode int = 200

GetVersionOKCode is the HTTP code returned for type GetVersionOK

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 / message get

Get get API

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 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 GetOK

type GetOK struct {

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

GetOK standard message response

swagger:response getOK

func NewGetOK

func NewGetOK() *GetOK

NewGetOK creates GetOK with default headers values

func (*GetOK) SetPayload

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

SetPayload sets the payload to the get o k response

func (*GetOK) WithPayload

func (o *GetOK) WithPayload(payload *models.Message) *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 GetTest

type GetTest struct {
	Context *middleware.Context
	Handler GetTestHandler
}

GetTest swagger:route GET /test message getTest

GetTest get test API

func NewGetTest

func NewGetTest(ctx *middleware.Context, handler GetTestHandler) *GetTest

NewGetTest creates a new http.Handler for the get test operation

func (*GetTest) ServeHTTP

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

type GetTestHandler

type GetTestHandler interface {
	Handle(GetTestParams) middleware.Responder
}

GetTestHandler interface for that can handle valid get test params

type GetTestHandlerFunc

type GetTestHandlerFunc func(GetTestParams) middleware.Responder

GetTestHandlerFunc turns a function with the right signature into a get test handler

func (GetTestHandlerFunc) Handle

Handle executing the request and returning a response

type GetTestOK

type GetTestOK struct {

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

GetTestOK standard message response

swagger:response getTestOK

func NewGetTestOK

func NewGetTestOK() *GetTestOK

NewGetTestOK creates GetTestOK with default headers values

func (*GetTestOK) SetPayload

func (o *GetTestOK) SetPayload(payload *models.Message)

SetPayload sets the payload to the get test o k response

func (*GetTestOK) WithPayload

func (o *GetTestOK) WithPayload(payload *models.Message) *GetTestOK

WithPayload adds the payload to the get test o k response

func (*GetTestOK) WriteResponse

func (o *GetTestOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetTestParams

type GetTestParams struct {

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

GetTestParams contains all the bound params for the get test operation typically these are obtained from a http.Request

swagger:parameters GetTest

func NewGetTestParams

func NewGetTestParams() GetTestParams

NewGetTestParams creates a new GetTestParams object no default values defined in spec.

func (*GetTestParams) BindRequest

func (o *GetTestParams) 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 NewGetTestParams() beforehand.

type GetTestURL

type GetTestURL struct {
	// contains filtered or unexported fields
}

GetTestURL generates an URL for the get test operation

func (*GetTestURL) Build

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

Build a url path and query string

func (*GetTestURL) BuildFull

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

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

func (*GetTestURL) Must

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

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

func (*GetTestURL) SetBasePath

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

func (o *GetTestURL) String() string

String returns the string representation of the path with query string

func (*GetTestURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetTestURL) WithBasePath

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

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

type GetVersion

type GetVersion struct {
	Context *middleware.Context
	Handler GetVersionHandler
}

GetVersion swagger:route GET /version message getVersion

GetVersion get version API

func NewGetVersion

func NewGetVersion(ctx *middleware.Context, handler GetVersionHandler) *GetVersion

NewGetVersion creates a new http.Handler for the get version operation

func (*GetVersion) ServeHTTP

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

type GetVersionHandler

type GetVersionHandler interface {
	Handle(GetVersionParams) middleware.Responder
}

GetVersionHandler interface for that can handle valid get version params

type GetVersionHandlerFunc

type GetVersionHandlerFunc func(GetVersionParams) middleware.Responder

GetVersionHandlerFunc turns a function with the right signature into a get version handler

func (GetVersionHandlerFunc) Handle

Handle executing the request and returning a response

type GetVersionOK

type GetVersionOK struct {

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

GetVersionOK standard message response

swagger:response getVersionOK

func NewGetVersionOK

func NewGetVersionOK() *GetVersionOK

NewGetVersionOK creates GetVersionOK with default headers values

func (*GetVersionOK) SetPayload

func (o *GetVersionOK) SetPayload(payload *models.Message)

SetPayload sets the payload to the get version o k response

func (*GetVersionOK) WithPayload

func (o *GetVersionOK) WithPayload(payload *models.Message) *GetVersionOK

WithPayload adds the payload to the get version o k response

func (*GetVersionOK) WriteResponse

func (o *GetVersionOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetVersionParams

type GetVersionParams struct {

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

GetVersionParams contains all the bound params for the get version operation typically these are obtained from a http.Request

swagger:parameters GetVersion

func NewGetVersionParams

func NewGetVersionParams() GetVersionParams

NewGetVersionParams creates a new GetVersionParams object no default values defined in spec.

func (*GetVersionParams) BindRequest

func (o *GetVersionParams) 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 NewGetVersionParams() beforehand.

type GetVersionURL

type GetVersionURL struct {
	// contains filtered or unexported fields
}

GetVersionURL generates an URL for the get version operation

func (*GetVersionURL) Build

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

Build a url path and query string

func (*GetVersionURL) BuildFull

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

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

func (*GetVersionURL) Must

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

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

func (*GetVersionURL) SetBasePath

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

func (o *GetVersionURL) String() string

String returns the string representation of the path with query string

func (*GetVersionURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetVersionURL) WithBasePath

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

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