users

package
v0.0.0-...-4ddc152 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const GetUsersOKCode int = 200

GetUsersOKCode is the HTTP code returned for type GetUsersOK

View Source
const SearchOKCode int = 200

SearchOKCode is the HTTP code returned for type SearchOK

Variables

This section is empty.

Functions

This section is empty.

Types

type GetUsers

type GetUsers struct {
	Context *middleware.Context
	Handler GetUsersHandler
}

GetUsers swagger:route GET /users users getUsers

GetUsers get users API

func NewGetUsers

func NewGetUsers(ctx *middleware.Context, handler GetUsersHandler) *GetUsers

NewGetUsers creates a new http.Handler for the get users operation

func (*GetUsers) ServeHTTP

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

type GetUsersDefault

type GetUsersDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetUsersDefault generic error response

swagger:response getUsersDefault

func NewGetUsersDefault

func NewGetUsersDefault(code int) *GetUsersDefault

NewGetUsersDefault creates GetUsersDefault with default headers values

func (*GetUsersDefault) SetPayload

func (o *GetUsersDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the get users default response

func (*GetUsersDefault) SetStatusCode

func (o *GetUsersDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get users default response

func (*GetUsersDefault) WithPayload

func (o *GetUsersDefault) WithPayload(payload *models.Error) *GetUsersDefault

WithPayload adds the payload to the get users default response

func (*GetUsersDefault) WithStatusCode

func (o *GetUsersDefault) WithStatusCode(code int) *GetUsersDefault

WithStatusCode adds the status to the get users default response

func (*GetUsersDefault) WriteResponse

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

WriteResponse to the client

type GetUsersHandler

type GetUsersHandler interface {
	Handle(GetUsersParams) middleware.Responder
}

GetUsersHandler interface for that can handle valid get users params

type GetUsersHandlerFunc

type GetUsersHandlerFunc func(GetUsersParams) middleware.Responder

GetUsersHandlerFunc turns a function with the right signature into a get users handler

func (GetUsersHandlerFunc) Handle

Handle executing the request and returning a response

type GetUsersOK

type GetUsersOK struct {

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

GetUsersOK List of all users

swagger:response getUsersOK

func NewGetUsersOK

func NewGetUsersOK() *GetUsersOK

NewGetUsersOK creates GetUsersOK with default headers values

func (*GetUsersOK) SetPayload

func (o *GetUsersOK) SetPayload(payload models.GetUsersOKBody)

SetPayload sets the payload to the get users o k response

func (*GetUsersOK) WithPayload

func (o *GetUsersOK) WithPayload(payload models.GetUsersOKBody) *GetUsersOK

WithPayload adds the payload to the get users o k response

func (*GetUsersOK) WriteResponse

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

WriteResponse to the client

type GetUsersParams

type GetUsersParams struct {

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

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

swagger:parameters GetUsers

func NewGetUsersParams

func NewGetUsersParams() GetUsersParams

NewGetUsersParams creates a new GetUsersParams object with the default values initialized.

func (*GetUsersParams) BindRequest

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

type GetUsersURL

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

GetUsersURL generates an URL for the get users operation

func (*GetUsersURL) Build

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

Build a url path and query string

func (*GetUsersURL) BuildFull

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

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

func (*GetUsersURL) Must

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

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

func (*GetUsersURL) SetBasePath

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

func (o *GetUsersURL) String() string

String returns the string representation of the path with query string

func (*GetUsersURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetUsersURL) WithBasePath

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

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 Search struct {
	Context *middleware.Context
	Handler SearchHandler
}

Search swagger:route GET /search users search

Search search API

func NewSearch

func NewSearch(ctx *middleware.Context, handler SearchHandler) *Search

NewSearch creates a new http.Handler for the search operation

func (*Search) ServeHTTP

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

type SearchDefault

type SearchDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

SearchDefault generic error response

swagger:response searchDefault

func NewSearchDefault

func NewSearchDefault(code int) *SearchDefault

NewSearchDefault creates SearchDefault with default headers values

func (*SearchDefault) SetPayload

func (o *SearchDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the search default response

func (*SearchDefault) SetStatusCode

func (o *SearchDefault) SetStatusCode(code int)

SetStatusCode sets the status to the search default response

func (*SearchDefault) WithPayload

func (o *SearchDefault) WithPayload(payload *models.Error) *SearchDefault

WithPayload adds the payload to the search default response

func (*SearchDefault) WithStatusCode

func (o *SearchDefault) WithStatusCode(code int) *SearchDefault

WithStatusCode adds the status to the search default response

func (*SearchDefault) WriteResponse

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

WriteResponse to the client

type SearchHandler

type SearchHandler interface {
	Handle(SearchParams) middleware.Responder
}

SearchHandler interface for that can handle valid search params

type SearchHandlerFunc

type SearchHandlerFunc func(SearchParams) middleware.Responder

SearchHandlerFunc turns a function with the right signature into a search handler

func (SearchHandlerFunc) Handle

Handle executing the request and returning a response

type SearchOK

type SearchOK struct {

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

SearchOK List of searched user(s)

swagger:response searchOK

func NewSearchOK

func NewSearchOK() *SearchOK

NewSearchOK creates SearchOK with default headers values

func (*SearchOK) SetPayload

func (o *SearchOK) SetPayload(payload models.SearchOKBody)

SetPayload sets the payload to the search o k response

func (*SearchOK) WithPayload

func (o *SearchOK) WithPayload(payload models.SearchOKBody) *SearchOK

WithPayload adds the payload to the search o k response

func (*SearchOK) WriteResponse

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

WriteResponse to the client

type SearchParams

type SearchParams struct {

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

	/*string
	  In: query
	*/
	Search *string
}

SearchParams contains all the bound params for the search operation typically these are obtained from a http.Request

swagger:parameters search

func NewSearchParams

func NewSearchParams() SearchParams

NewSearchParams creates a new SearchParams object with the default values initialized.

func (*SearchParams) BindRequest

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

type SearchURL

type SearchURL struct {
	Search *string
	// contains filtered or unexported fields
}

SearchURL generates an URL for the search operation

func (*SearchURL) Build

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

Build a url path and query string

func (*SearchURL) BuildFull

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

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

func (*SearchURL) Must

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

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

func (*SearchURL) SetBasePath

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

func (o *SearchURL) String() string

String returns the string representation of the path with query string

func (*SearchURL) StringFull

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

StringFull returns the string representation of a complete url

func (*SearchURL) WithBasePath

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

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