Documentation ¶
Index ¶
- Constants
- type DeleteUserByID
- type DeleteUserByIDHandler
- type DeleteUserByIDHandlerFunc
- type DeleteUserByIDNoContent
- type DeleteUserByIDNotFound
- type DeleteUserByIDParams
- type DeleteUserByIDURL
- func (o *DeleteUserByIDURL) Build() (*url.URL, error)
- func (o *DeleteUserByIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteUserByIDURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteUserByIDURL) SetBasePath(bp string)
- func (o *DeleteUserByIDURL) String() string
- func (o *DeleteUserByIDURL) StringFull(scheme, host string) string
- func (o *DeleteUserByIDURL) WithBasePath(bp string) *DeleteUserByIDURL
- type GetUserByID
- type GetUserByIDHandler
- type GetUserByIDHandlerFunc
- type GetUserByIDNotFound
- type GetUserByIDOK
- type GetUserByIDParams
- type GetUserByIDURL
- func (o *GetUserByIDURL) Build() (*url.URL, error)
- func (o *GetUserByIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetUserByIDURL) Must(u *url.URL, err error) *url.URL
- func (o *GetUserByIDURL) SetBasePath(bp string)
- func (o *GetUserByIDURL) String() string
- func (o *GetUserByIDURL) StringFull(scheme, host string) string
- func (o *GetUserByIDURL) WithBasePath(bp string) *GetUserByIDURL
- type GetUsers
- type GetUsersBadRequest
- type GetUsersHandler
- type GetUsersHandlerFunc
- type GetUsersOK
- type GetUsersParams
- type GetUsersURL
- func (o *GetUsersURL) Build() (*url.URL, error)
- func (o *GetUsersURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetUsersURL) Must(u *url.URL, err error) *url.URL
- func (o *GetUsersURL) SetBasePath(bp string)
- func (o *GetUsersURL) String() string
- func (o *GetUsersURL) StringFull(scheme, host string) string
- func (o *GetUsersURL) WithBasePath(bp string) *GetUsersURL
- type PostUser
- type PostUserBadRequest
- type PostUserCreated
- type PostUserHandler
- type PostUserHandlerFunc
- type PostUserParams
- type PostUserURL
- func (o *PostUserURL) Build() (*url.URL, error)
- func (o *PostUserURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PostUserURL) Must(u *url.URL, err error) *url.URL
- func (o *PostUserURL) SetBasePath(bp string)
- func (o *PostUserURL) String() string
- func (o *PostUserURL) StringFull(scheme, host string) string
- func (o *PostUserURL) WithBasePath(bp string) *PostUserURL
Constants ¶
const DeleteUserByIDNoContentCode int = 204
DeleteUserByIDNoContentCode is the HTTP code returned for type DeleteUserByIDNoContent
const DeleteUserByIDNotFoundCode int = 404
DeleteUserByIDNotFoundCode is the HTTP code returned for type DeleteUserByIDNotFound
const GetUserByIDNotFoundCode int = 404
GetUserByIDNotFoundCode is the HTTP code returned for type GetUserByIDNotFound
const GetUserByIDOKCode int = 200
GetUserByIDOKCode is the HTTP code returned for type GetUserByIDOK
const GetUsersBadRequestCode int = 400
GetUsersBadRequestCode is the HTTP code returned for type GetUsersBadRequest
const GetUsersOKCode int = 200
GetUsersOKCode is the HTTP code returned for type GetUsersOK
const PostUserBadRequestCode int = 400
PostUserBadRequestCode is the HTTP code returned for type PostUserBadRequest
const PostUserCreatedCode int = 201
PostUserCreatedCode is the HTTP code returned for type PostUserCreated
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteUserByID ¶
type DeleteUserByID struct { Context *middleware.Context Handler DeleteUserByIDHandler }
DeleteUserByID swagger:route DELETE /users/{userID} users deleteUserById
Delete the user by ID ¶
Delete the user object.
func NewDeleteUserByID ¶
func NewDeleteUserByID(ctx *middleware.Context, handler DeleteUserByIDHandler) *DeleteUserByID
NewDeleteUserByID creates a new http.Handler for the delete user by ID operation
func (*DeleteUserByID) ServeHTTP ¶
func (o *DeleteUserByID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteUserByIDHandler ¶
type DeleteUserByIDHandler interface {
Handle(DeleteUserByIDParams) middleware.Responder
}
DeleteUserByIDHandler interface for that can handle valid delete user by ID params
type DeleteUserByIDHandlerFunc ¶
type DeleteUserByIDHandlerFunc func(DeleteUserByIDParams) middleware.Responder
DeleteUserByIDHandlerFunc turns a function with the right signature into a delete user by ID handler
func (DeleteUserByIDHandlerFunc) Handle ¶
func (fn DeleteUserByIDHandlerFunc) Handle(params DeleteUserByIDParams) middleware.Responder
Handle executing the request and returning a response
type DeleteUserByIDNoContent ¶
type DeleteUserByIDNoContent struct { }
DeleteUserByIDNoContent successful operation
swagger:response deleteUserByIdNoContent
func NewDeleteUserByIDNoContent ¶
func NewDeleteUserByIDNoContent() *DeleteUserByIDNoContent
NewDeleteUserByIDNoContent creates DeleteUserByIDNoContent with default headers values
func (*DeleteUserByIDNoContent) WriteResponse ¶
func (o *DeleteUserByIDNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteUserByIDNotFound ¶
type DeleteUserByIDNotFound struct { }
DeleteUserByIDNotFound Project not found
swagger:response deleteUserByIdNotFound
func NewDeleteUserByIDNotFound ¶
func NewDeleteUserByIDNotFound() *DeleteUserByIDNotFound
NewDeleteUserByIDNotFound creates DeleteUserByIDNotFound with default headers values
func (*DeleteUserByIDNotFound) WriteResponse ¶
func (o *DeleteUserByIDNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteUserByIDParams ¶
type DeleteUserByIDParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*ID of user to delete Required: true In: path */ UserID string }
DeleteUserByIDParams contains all the bound params for the delete user by ID operation typically these are obtained from a http.Request
swagger:parameters deleteUserByID
func NewDeleteUserByIDParams ¶
func NewDeleteUserByIDParams() DeleteUserByIDParams
NewDeleteUserByIDParams creates a new DeleteUserByIDParams object with the default values initialized.
func (*DeleteUserByIDParams) BindRequest ¶
func (o *DeleteUserByIDParams) 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 DeleteUserByIDURL ¶
type DeleteUserByIDURL struct { UserID string // contains filtered or unexported fields }
DeleteUserByIDURL generates an URL for the delete user by ID operation
func (*DeleteUserByIDURL) Build ¶
func (o *DeleteUserByIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteUserByIDURL) BuildFull ¶
func (o *DeleteUserByIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteUserByIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteUserByIDURL) SetBasePath ¶
func (o *DeleteUserByIDURL) 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 (*DeleteUserByIDURL) String ¶
func (o *DeleteUserByIDURL) String() string
String returns the string representation of the path with query string
func (*DeleteUserByIDURL) StringFull ¶
func (o *DeleteUserByIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteUserByIDURL) WithBasePath ¶
func (o *DeleteUserByIDURL) WithBasePath(bp string) *DeleteUserByIDURL
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 GetUserByID ¶
type GetUserByID struct { Context *middleware.Context Handler GetUserByIDHandler }
GetUserByID swagger:route GET /users/{userID} users getUserById
gets the user from ID
getting user object
func NewGetUserByID ¶
func NewGetUserByID(ctx *middleware.Context, handler GetUserByIDHandler) *GetUserByID
NewGetUserByID creates a new http.Handler for the get user by ID operation
func (*GetUserByID) ServeHTTP ¶
func (o *GetUserByID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetUserByIDHandler ¶
type GetUserByIDHandler interface {
Handle(GetUserByIDParams) middleware.Responder
}
GetUserByIDHandler interface for that can handle valid get user by ID params
type GetUserByIDHandlerFunc ¶
type GetUserByIDHandlerFunc func(GetUserByIDParams) middleware.Responder
GetUserByIDHandlerFunc turns a function with the right signature into a get user by ID handler
func (GetUserByIDHandlerFunc) Handle ¶
func (fn GetUserByIDHandlerFunc) Handle(params GetUserByIDParams) middleware.Responder
Handle executing the request and returning a response
type GetUserByIDNotFound ¶
type GetUserByIDNotFound struct { }
GetUserByIDNotFound User not found
swagger:response getUserByIdNotFound
func NewGetUserByIDNotFound ¶
func NewGetUserByIDNotFound() *GetUserByIDNotFound
NewGetUserByIDNotFound creates GetUserByIDNotFound with default headers values
func (*GetUserByIDNotFound) WriteResponse ¶
func (o *GetUserByIDNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUserByIDOK ¶
GetUserByIDOK successful operation
swagger:response getUserByIdOK
func NewGetUserByIDOK ¶
func NewGetUserByIDOK() *GetUserByIDOK
NewGetUserByIDOK creates GetUserByIDOK with default headers values
func (*GetUserByIDOK) SetPayload ¶
func (o *GetUserByIDOK) SetPayload(payload *models.User)
SetPayload sets the payload to the get user by Id o k response
func (*GetUserByIDOK) WithPayload ¶
func (o *GetUserByIDOK) WithPayload(payload *models.User) *GetUserByIDOK
WithPayload adds the payload to the get user by Id o k response
func (*GetUserByIDOK) WriteResponse ¶
func (o *GetUserByIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUserByIDParams ¶
type GetUserByIDParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*ID of user to return Required: true In: path */ UserID string }
GetUserByIDParams contains all the bound params for the get user by ID operation typically these are obtained from a http.Request
swagger:parameters getUserByID
func NewGetUserByIDParams ¶
func NewGetUserByIDParams() GetUserByIDParams
NewGetUserByIDParams creates a new GetUserByIDParams object with the default values initialized.
func (*GetUserByIDParams) BindRequest ¶
func (o *GetUserByIDParams) 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 GetUserByIDURL ¶
type GetUserByIDURL struct { UserID string // contains filtered or unexported fields }
GetUserByIDURL generates an URL for the get user by ID operation
func (*GetUserByIDURL) Build ¶
func (o *GetUserByIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetUserByIDURL) BuildFull ¶
func (o *GetUserByIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetUserByIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetUserByIDURL) SetBasePath ¶
func (o *GetUserByIDURL) 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 (*GetUserByIDURL) String ¶
func (o *GetUserByIDURL) String() string
String returns the string representation of the path with query string
func (*GetUserByIDURL) StringFull ¶
func (o *GetUserByIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetUserByIDURL) WithBasePath ¶
func (o *GetUserByIDURL) WithBasePath(bp string) *GetUserByIDURL
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 GetUsers ¶
type GetUsers struct { Context *middleware.Context Handler GetUsersHandler }
GetUsers swagger:route GET /users users getUsers
Returns all the users.
func NewGetUsers ¶
func NewGetUsers(ctx *middleware.Context, handler GetUsersHandler) *GetUsers
NewGetUsers creates a new http.Handler for the get users operation
type GetUsersBadRequest ¶
type GetUsersBadRequest struct { }
GetUsersBadRequest Bad Request
swagger:response getUsersBadRequest
func NewGetUsersBadRequest ¶
func NewGetUsersBadRequest() *GetUsersBadRequest
NewGetUsersBadRequest creates GetUsersBadRequest with default headers values
func (*GetUsersBadRequest) WriteResponse ¶
func (o *GetUsersBadRequest) 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 ¶
func (fn GetUsersHandlerFunc) Handle(params GetUsersParams) middleware.Responder
Handle executing the request and returning a response
type GetUsersOK ¶
GetUsersOK The list of current 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.Users)
SetPayload sets the payload to the get users o k response
func (*GetUsersOK) WithPayload ¶
func (o *GetUsersOK) WithPayload(payload models.Users) *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 ¶
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 ¶
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 PostUser ¶
type PostUser struct { Context *middleware.Context Handler PostUserHandler }
PostUser swagger:route POST /users users postUser
Adds a new user configuration ¶
Post a new user config
func NewPostUser ¶
func NewPostUser(ctx *middleware.Context, handler PostUserHandler) *PostUser
NewPostUser creates a new http.Handler for the post user operation
type PostUserBadRequest ¶
type PostUserBadRequest struct { }
PostUserBadRequest Bad Request
swagger:response postUserBadRequest
func NewPostUserBadRequest ¶
func NewPostUserBadRequest() *PostUserBadRequest
NewPostUserBadRequest creates PostUserBadRequest with default headers values
func (*PostUserBadRequest) WriteResponse ¶
func (o *PostUserBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostUserCreated ¶
PostUserCreated Created
swagger:response postUserCreated
func NewPostUserCreated ¶
func NewPostUserCreated() *PostUserCreated
NewPostUserCreated creates PostUserCreated with default headers values
func (*PostUserCreated) SetPayload ¶
func (o *PostUserCreated) SetPayload(payload *models.User)
SetPayload sets the payload to the post user created response
func (*PostUserCreated) WithPayload ¶
func (o *PostUserCreated) WithPayload(payload *models.User) *PostUserCreated
WithPayload adds the payload to the post user created response
func (*PostUserCreated) WriteResponse ¶
func (o *PostUserCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostUserHandler ¶
type PostUserHandler interface {
Handle(PostUserParams) middleware.Responder
}
PostUserHandler interface for that can handle valid post user params
type PostUserHandlerFunc ¶
type PostUserHandlerFunc func(PostUserParams) middleware.Responder
PostUserHandlerFunc turns a function with the right signature into a post user handler
func (PostUserHandlerFunc) Handle ¶
func (fn PostUserHandlerFunc) Handle(params PostUserParams) middleware.Responder
Handle executing the request and returning a response
type PostUserParams ¶
type PostUserParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*User definition Required: true In: body */ Body *models.User }
PostUserParams contains all the bound params for the post user operation typically these are obtained from a http.Request
swagger:parameters postUser
func NewPostUserParams ¶
func NewPostUserParams() PostUserParams
NewPostUserParams creates a new PostUserParams object with the default values initialized.
func (*PostUserParams) BindRequest ¶
func (o *PostUserParams) 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 PostUserURL ¶
type PostUserURL struct {
// contains filtered or unexported fields
}
PostUserURL generates an URL for the post user operation
func (*PostUserURL) Build ¶
func (o *PostUserURL) Build() (*url.URL, error)
Build a url path and query string
func (*PostUserURL) BuildFull ¶
func (o *PostUserURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PostUserURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PostUserURL) SetBasePath ¶
func (o *PostUserURL) 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 (*PostUserURL) String ¶
func (o *PostUserURL) String() string
String returns the string representation of the path with query string
func (*PostUserURL) StringFull ¶
func (o *PostUserURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PostUserURL) WithBasePath ¶
func (o *PostUserURL) WithBasePath(bp string) *PostUserURL
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
Source Files ¶
- delete_user_by_id.go
- delete_user_by_id_parameters.go
- delete_user_by_id_responses.go
- delete_user_by_id_urlbuilder.go
- get_user_by_id.go
- get_user_by_id_parameters.go
- get_user_by_id_responses.go
- get_user_by_id_urlbuilder.go
- get_users.go
- get_users_parameters.go
- get_users_responses.go
- get_users_urlbuilder.go
- post_user.go
- post_user_parameters.go
- post_user_responses.go
- post_user_urlbuilder.go