customers

package
v0.0.0-...-1fb28bd Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const CreateCreatedCode int = 201

CreateCreatedCode is the HTTP code returned for type CreateCreated

View Source
const GetIDNotFoundCode int = 404

GetIDNotFoundCode is the HTTP code returned for type GetIDNotFound

View Source
const GetIDOKCode int = 200

GetIDOKCode is the HTTP code returned for type GetIDOK

View Source
const GetIDUnauthorizedCode int = 401

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

func (*Create) ServeHTTP

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

type CreateCreated

type CreateCreated struct {

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

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

There are no default values defined in the 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) Build

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

Build a url path and query string

func (*CreateURL) BuildFull

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

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

func (*CreateURL) Must

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

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

func (*CreateURL) SetBasePath

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

func (o *CreateURL) String() string

String returns the string representation of the path with query string

func (*CreateURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreateURL) WithBasePath

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

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

func (*GetID) ServeHTTP

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

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

type GetIDNotFound struct {

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

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

type GetIDOK struct {

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

GetIDOK OK

swagger:response getIdOK

func NewGetIDOK

func NewGetIDOK() *GetIDOK

NewGetIDOK creates GetIDOK with default headers values

func (*GetIDOK) SetPayload

func (o *GetIDOK) SetPayload(payload *models.Customer)

SetPayload sets the payload to the get Id o k response

func (*GetIDOK) WithPayload

func (o *GetIDOK) WithPayload(payload *models.Customer) *GetIDOK

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

There are no default values defined in the 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) Build

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

Build a url path and query string

func (*GetIDURL) BuildFull

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

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

func (*GetIDURL) Must

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

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

func (*GetIDURL) SetBasePath

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

func (o *GetIDURL) String() string

String returns the string representation of the path with query string

func (*GetIDURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetIDURL) WithBasePath

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

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

type GetIDUnauthorized struct {

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL