Documentation ¶
Index ¶
- Constants
- type Create
- type CreateCreated
- type CreateDefault
- func (o *CreateDefault) SetPayload(payload *models.Error)
- func (o *CreateDefault) SetStatusCode(code int)
- func (o *CreateDefault) WithPayload(payload *models.Error) *CreateDefault
- func (o *CreateDefault) WithStatusCode(code int) *CreateDefault
- func (o *CreateDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateHandler
- type CreateHandlerFunc
- type CreateParams
- type CreateURL
- func (o *CreateURL) Build() (*url.URL, error)
- func (o *CreateURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateURL) SetBasePath(bp string)
- func (o *CreateURL) String() string
- func (o *CreateURL) StringFull(scheme, host string) string
- func (o *CreateURL) WithBasePath(bp string) *CreateURL
- type GetID
- type GetIDDefault
- func (o *GetIDDefault) SetPayload(payload *models.Error)
- func (o *GetIDDefault) SetStatusCode(code int)
- func (o *GetIDDefault) WithPayload(payload *models.Error) *GetIDDefault
- func (o *GetIDDefault) WithStatusCode(code int) *GetIDDefault
- func (o *GetIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetIDHandler
- type GetIDHandlerFunc
- type GetIDNotFound
- type GetIDOK
- type GetIDParams
- type GetIDURL
- func (o *GetIDURL) Build() (*url.URL, error)
- func (o *GetIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetIDURL) Must(u *url.URL, err error) *url.URL
- func (o *GetIDURL) SetBasePath(bp string)
- func (o *GetIDURL) String() string
- func (o *GetIDURL) StringFull(scheme, host string) string
- func (o *GetIDURL) WithBasePath(bp string) *GetIDURL
- type GetIDUnauthorized
Constants ¶
const CreateCreatedCode int = 201
CreateCreatedCode is the HTTP code returned for type CreateCreated
const GetIDNotFoundCode int = 404
GetIDNotFoundCode is the HTTP code returned for type GetIDNotFound
const GetIDOKCode int = 200
GetIDOKCode is the HTTP code returned for type GetIDOK
GetIDUnauthorizedCode is the HTTP code returned for type GetIDUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Create ¶
type Create struct { Context *middleware.Context Handler CreateHandler }
Create swagger:route POST /customers customers create
Create a new customer to track
func NewCreate ¶
func NewCreate(ctx *middleware.Context, handler CreateHandler) *Create
NewCreate creates a new http.Handler for the create operation
type CreateCreated ¶
CreateCreated created
swagger:response createCreated
func NewCreateCreated ¶
func NewCreateCreated() *CreateCreated
NewCreateCreated creates CreateCreated with default headers values
func (*CreateCreated) SetPayload ¶
func (o *CreateCreated) SetPayload(payload *models.Customer)
SetPayload sets the payload to the create created response
func (*CreateCreated) WithPayload ¶
func (o *CreateCreated) WithPayload(payload *models.Customer) *CreateCreated
WithPayload adds the payload to the create created response
func (*CreateCreated) WriteResponse ¶
func (o *CreateCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateDefault ¶
type CreateDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
CreateDefault error
swagger:response createDefault
func NewCreateDefault ¶
func NewCreateDefault(code int) *CreateDefault
NewCreateDefault creates CreateDefault with default headers values
func (*CreateDefault) SetPayload ¶
func (o *CreateDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the create default response
func (*CreateDefault) SetStatusCode ¶
func (o *CreateDefault) SetStatusCode(code int)
SetStatusCode sets the status to the create default response
func (*CreateDefault) WithPayload ¶
func (o *CreateDefault) WithPayload(payload *models.Error) *CreateDefault
WithPayload adds the payload to the create default response
func (*CreateDefault) WithStatusCode ¶
func (o *CreateDefault) WithStatusCode(code int) *CreateDefault
WithStatusCode adds the status to the create default response
func (*CreateDefault) WriteResponse ¶
func (o *CreateDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateHandler ¶
type CreateHandler interface {
Handle(CreateParams, *models.Principal) middleware.Responder
}
CreateHandler interface for that can handle valid create params
type CreateHandlerFunc ¶
type CreateHandlerFunc func(CreateParams, *models.Principal) middleware.Responder
CreateHandlerFunc turns a function with the right signature into a create handler
func (CreateHandlerFunc) Handle ¶
func (fn CreateHandlerFunc) Handle(params CreateParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type CreateParams ¶
type CreateParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: body */ Info *models.Customer }
CreateParams contains all the bound params for the create operation typically these are obtained from a http.Request
swagger:parameters create
func NewCreateParams ¶
func NewCreateParams() CreateParams
NewCreateParams creates a new CreateParams object no default values defined in spec.
func (*CreateParams) BindRequest ¶
func (o *CreateParams) 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 NewCreateParams() beforehand.
type CreateURL ¶
type CreateURL struct {
// contains filtered or unexported fields
}
CreateURL generates an URL for the create operation
func (*CreateURL) SetBasePath ¶
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 (*CreateURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*CreateURL) WithBasePath ¶
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 GetID ¶
type GetID struct { Context *middleware.Context Handler GetIDHandler }
GetID swagger:route GET /customers customers getId
Get a customerId given an SSN
func NewGetID ¶
func NewGetID(ctx *middleware.Context, handler GetIDHandler) *GetID
NewGetID creates a new http.Handler for the get Id operation
type GetIDDefault ¶
type GetIDDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetIDDefault error
swagger:response getIdDefault
func NewGetIDDefault ¶
func NewGetIDDefault(code int) *GetIDDefault
NewGetIDDefault creates GetIDDefault with default headers values
func (*GetIDDefault) SetPayload ¶
func (o *GetIDDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get Id default response
func (*GetIDDefault) SetStatusCode ¶
func (o *GetIDDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get Id default response
func (*GetIDDefault) WithPayload ¶
func (o *GetIDDefault) WithPayload(payload *models.Error) *GetIDDefault
WithPayload adds the payload to the get Id default response
func (*GetIDDefault) WithStatusCode ¶
func (o *GetIDDefault) WithStatusCode(code int) *GetIDDefault
WithStatusCode adds the status to the get Id default response
func (*GetIDDefault) WriteResponse ¶
func (o *GetIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetIDHandler ¶
type GetIDHandler interface {
Handle(GetIDParams, *models.Principal) middleware.Responder
}
GetIDHandler interface for that can handle valid get Id params
type GetIDHandlerFunc ¶
type GetIDHandlerFunc func(GetIDParams, *models.Principal) middleware.Responder
GetIDHandlerFunc turns a function with the right signature into a get Id handler
func (GetIDHandlerFunc) Handle ¶
func (fn GetIDHandlerFunc) Handle(params GetIDParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type GetIDNotFound ¶
GetIDNotFound resource not found
swagger:response getIdNotFound
func NewGetIDNotFound ¶
func NewGetIDNotFound() *GetIDNotFound
NewGetIDNotFound creates GetIDNotFound with default headers values
func (*GetIDNotFound) SetPayload ¶
func (o *GetIDNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the get Id not found response
func (*GetIDNotFound) WithPayload ¶
func (o *GetIDNotFound) WithPayload(payload *models.Error) *GetIDNotFound
WithPayload adds the payload to the get Id not found response
func (*GetIDNotFound) WriteResponse ¶
func (o *GetIDNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetIDOK ¶
GetIDOK OK
swagger:response getIdOK
func (*GetIDOK) SetPayload ¶
SetPayload sets the payload to the get Id o k response
func (*GetIDOK) WithPayload ¶
WithPayload adds the payload to the get Id o k response
func (*GetIDOK) WriteResponse ¶
func (o *GetIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetIDParams ¶
type GetIDParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: body */ Info *models.SocialID }
GetIDParams contains all the bound params for the get Id operation typically these are obtained from a http.Request
swagger:parameters getId
func NewGetIDParams ¶
func NewGetIDParams() GetIDParams
NewGetIDParams creates a new GetIDParams object no default values defined in spec.
func (*GetIDParams) BindRequest ¶
func (o *GetIDParams) 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 NewGetIDParams() beforehand.
type GetIDURL ¶
type GetIDURL struct {
// contains filtered or unexported fields
}
GetIDURL generates an URL for the get Id operation
func (*GetIDURL) SetBasePath ¶
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 (*GetIDURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*GetIDURL) WithBasePath ¶
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 GetIDUnauthorized ¶
GetIDUnauthorized unauthorized
swagger:response getIdUnauthorized
func NewGetIDUnauthorized ¶
func NewGetIDUnauthorized() *GetIDUnauthorized
NewGetIDUnauthorized creates GetIDUnauthorized with default headers values
func (*GetIDUnauthorized) SetPayload ¶
func (o *GetIDUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the get Id unauthorized response
func (*GetIDUnauthorized) WithPayload ¶
func (o *GetIDUnauthorized) WithPayload(payload *models.Error) *GetIDUnauthorized
WithPayload adds the payload to the get Id unauthorized response
func (*GetIDUnauthorized) WriteResponse ¶
func (o *GetIDUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client