users

package
v0.0.0-...-6bdd1f0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const CreateAppointmentBadRequestCode int = 400

CreateAppointmentBadRequestCode is the HTTP code returned for type CreateAppointmentBadRequest

View Source
const CreateAppointmentConflictCode int = 409

CreateAppointmentConflictCode is the HTTP code returned for type CreateAppointmentConflict

View Source
const CreateAppointmentCreatedCode int = 201

CreateAppointmentCreatedCode is the HTTP code returned for type CreateAppointmentCreated

View Source
const CreateAppointmentTooManyRequestsCode int = 429

CreateAppointmentTooManyRequestsCode is the HTTP code returned for type CreateAppointmentTooManyRequests

View Source
const CreateAppointmentUnauthorizedCode int = 401

CreateAppointmentUnauthorizedCode is the HTTP code returned for type CreateAppointmentUnauthorized

View Source
const ListAvailableTimesForTrainerBadRequestCode int = 400

ListAvailableTimesForTrainerBadRequestCode is the HTTP code returned for type ListAvailableTimesForTrainerBadRequest

View Source
const ListAvailableTimesForTrainerNotFoundCode int = 404

ListAvailableTimesForTrainerNotFoundCode is the HTTP code returned for type ListAvailableTimesForTrainerNotFound

View Source
const ListAvailableTimesForTrainerOKCode int = 200

ListAvailableTimesForTrainerOKCode is the HTTP code returned for type ListAvailableTimesForTrainerOK

View Source
const ListAvailableTimesForTrainerUnauthorizedCode int = 401

ListAvailableTimesForTrainerUnauthorizedCode is the HTTP code returned for type ListAvailableTimesForTrainerUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateAppointment

type CreateAppointment struct {
	Context *middleware.Context
	Handler CreateAppointmentHandler
}

CreateAppointment swagger:route POST /users/appointments users createAppointment

Create new appointment

func NewCreateAppointment

func NewCreateAppointment(ctx *middleware.Context, handler CreateAppointmentHandler) *CreateAppointment

NewCreateAppointment creates a new http.Handler for the create appointment operation

func (*CreateAppointment) ServeHTTP

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

type CreateAppointmentBadRequest

type CreateAppointmentBadRequest struct {

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

CreateAppointmentBadRequest Bad request

swagger:response createAppointmentBadRequest

func NewCreateAppointmentBadRequest

func NewCreateAppointmentBadRequest() *CreateAppointmentBadRequest

NewCreateAppointmentBadRequest creates CreateAppointmentBadRequest with default headers values

func (*CreateAppointmentBadRequest) SetPayload

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

SetPayload sets the payload to the create appointment bad request response

func (*CreateAppointmentBadRequest) WithPayload

WithPayload adds the payload to the create appointment bad request response

func (*CreateAppointmentBadRequest) WriteResponse

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

WriteResponse to the client

type CreateAppointmentConflict

type CreateAppointmentConflict struct {

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

CreateAppointmentConflict Conflict

swagger:response createAppointmentConflict

func NewCreateAppointmentConflict

func NewCreateAppointmentConflict() *CreateAppointmentConflict

NewCreateAppointmentConflict creates CreateAppointmentConflict with default headers values

func (*CreateAppointmentConflict) SetPayload

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

SetPayload sets the payload to the create appointment conflict response

func (*CreateAppointmentConflict) WithPayload

WithPayload adds the payload to the create appointment conflict response

func (*CreateAppointmentConflict) WriteResponse

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

WriteResponse to the client

type CreateAppointmentCreated

type CreateAppointmentCreated struct {

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

CreateAppointmentCreated Created

swagger:response createAppointmentCreated

func NewCreateAppointmentCreated

func NewCreateAppointmentCreated() *CreateAppointmentCreated

NewCreateAppointmentCreated creates CreateAppointmentCreated with default headers values

func (*CreateAppointmentCreated) SetPayload

func (o *CreateAppointmentCreated) SetPayload(payload *models.UserAppointment)

SetPayload sets the payload to the create appointment created response

func (*CreateAppointmentCreated) WithPayload

WithPayload adds the payload to the create appointment created response

func (*CreateAppointmentCreated) WriteResponse

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

WriteResponse to the client

type CreateAppointmentHandler

type CreateAppointmentHandler interface {
	Handle(CreateAppointmentParams) middleware.Responder
}

CreateAppointmentHandler interface for that can handle valid create appointment params

type CreateAppointmentHandlerFunc

type CreateAppointmentHandlerFunc func(CreateAppointmentParams) middleware.Responder

CreateAppointmentHandlerFunc turns a function with the right signature into a create appointment handler

func (CreateAppointmentHandlerFunc) Handle

Handle executing the request and returning a response

type CreateAppointmentParams

type CreateAppointmentParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Appointment *models.UserAppointment
	/*Provided by API GW after auth
	  Required: true
	  In: header
	*/
	Userid strfmt.UUID
}

CreateAppointmentParams contains all the bound params for the create appointment operation typically these are obtained from a http.Request

swagger:parameters createAppointment

func NewCreateAppointmentParams

func NewCreateAppointmentParams() CreateAppointmentParams

NewCreateAppointmentParams creates a new CreateAppointmentParams object no default values defined in spec.

func (*CreateAppointmentParams) BindRequest

func (o *CreateAppointmentParams) 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 NewCreateAppointmentParams() beforehand.

type CreateAppointmentTooManyRequests

type CreateAppointmentTooManyRequests struct {

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

CreateAppointmentTooManyRequests Too many requests

swagger:response createAppointmentTooManyRequests

func NewCreateAppointmentTooManyRequests

func NewCreateAppointmentTooManyRequests() *CreateAppointmentTooManyRequests

NewCreateAppointmentTooManyRequests creates CreateAppointmentTooManyRequests with default headers values

func (*CreateAppointmentTooManyRequests) SetPayload

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

SetPayload sets the payload to the create appointment too many requests response

func (*CreateAppointmentTooManyRequests) WithPayload

WithPayload adds the payload to the create appointment too many requests response

func (*CreateAppointmentTooManyRequests) WriteResponse

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

WriteResponse to the client

type CreateAppointmentURL

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

CreateAppointmentURL generates an URL for the create appointment operation

func (*CreateAppointmentURL) Build

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

Build a url path and query string

func (*CreateAppointmentURL) BuildFull

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

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

func (*CreateAppointmentURL) Must

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

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

func (*CreateAppointmentURL) SetBasePath

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

func (o *CreateAppointmentURL) String() string

String returns the string representation of the path with query string

func (*CreateAppointmentURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreateAppointmentURL) WithBasePath

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

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 CreateAppointmentUnauthorized

type CreateAppointmentUnauthorized struct {
}

CreateAppointmentUnauthorized Unauthorized

swagger:response createAppointmentUnauthorized

func NewCreateAppointmentUnauthorized

func NewCreateAppointmentUnauthorized() *CreateAppointmentUnauthorized

NewCreateAppointmentUnauthorized creates CreateAppointmentUnauthorized with default headers values

func (*CreateAppointmentUnauthorized) WriteResponse

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

WriteResponse to the client

type ListAvailableTimesForTrainer

type ListAvailableTimesForTrainer struct {
	Context *middleware.Context
	Handler ListAvailableTimesForTrainerHandler
}

ListAvailableTimesForTrainer swagger:route GET /users/trainers/{trainer-id}/availableTimes users listAvailableTimesForTrainer

List available time slots for a trainer

func NewListAvailableTimesForTrainer

func NewListAvailableTimesForTrainer(ctx *middleware.Context, handler ListAvailableTimesForTrainerHandler) *ListAvailableTimesForTrainer

NewListAvailableTimesForTrainer creates a new http.Handler for the list available times for trainer operation

func (*ListAvailableTimesForTrainer) ServeHTTP

type ListAvailableTimesForTrainerBadRequest

type ListAvailableTimesForTrainerBadRequest struct {

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

ListAvailableTimesForTrainerBadRequest Bad request

swagger:response listAvailableTimesForTrainerBadRequest

func NewListAvailableTimesForTrainerBadRequest

func NewListAvailableTimesForTrainerBadRequest() *ListAvailableTimesForTrainerBadRequest

NewListAvailableTimesForTrainerBadRequest creates ListAvailableTimesForTrainerBadRequest with default headers values

func (*ListAvailableTimesForTrainerBadRequest) SetPayload

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

SetPayload sets the payload to the list available times for trainer bad request response

func (*ListAvailableTimesForTrainerBadRequest) WithPayload

WithPayload adds the payload to the list available times for trainer bad request response

func (*ListAvailableTimesForTrainerBadRequest) WriteResponse

WriteResponse to the client

type ListAvailableTimesForTrainerHandler

type ListAvailableTimesForTrainerHandler interface {
	Handle(ListAvailableTimesForTrainerParams) middleware.Responder
}

ListAvailableTimesForTrainerHandler interface for that can handle valid list available times for trainer params

type ListAvailableTimesForTrainerHandlerFunc

type ListAvailableTimesForTrainerHandlerFunc func(ListAvailableTimesForTrainerParams) middleware.Responder

ListAvailableTimesForTrainerHandlerFunc turns a function with the right signature into a list available times for trainer handler

func (ListAvailableTimesForTrainerHandlerFunc) Handle

Handle executing the request and returning a response

type ListAvailableTimesForTrainerNotFound

type ListAvailableTimesForTrainerNotFound struct {
}

ListAvailableTimesForTrainerNotFound Trainer not found

swagger:response listAvailableTimesForTrainerNotFound

func NewListAvailableTimesForTrainerNotFound

func NewListAvailableTimesForTrainerNotFound() *ListAvailableTimesForTrainerNotFound

NewListAvailableTimesForTrainerNotFound creates ListAvailableTimesForTrainerNotFound with default headers values

func (*ListAvailableTimesForTrainerNotFound) WriteResponse

WriteResponse to the client

type ListAvailableTimesForTrainerOK

type ListAvailableTimesForTrainerOK struct {

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

ListAvailableTimesForTrainerOK List of available time slots

swagger:response listAvailableTimesForTrainerOK

func NewListAvailableTimesForTrainerOK

func NewListAvailableTimesForTrainerOK() *ListAvailableTimesForTrainerOK

NewListAvailableTimesForTrainerOK creates ListAvailableTimesForTrainerOK with default headers values

func (*ListAvailableTimesForTrainerOK) SetPayload

func (o *ListAvailableTimesForTrainerOK) SetPayload(payload models.AvailableSlots)

SetPayload sets the payload to the list available times for trainer o k response

func (*ListAvailableTimesForTrainerOK) WithPayload

WithPayload adds the payload to the list available times for trainer o k response

func (*ListAvailableTimesForTrainerOK) WriteResponse

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

WriteResponse to the client

type ListAvailableTimesForTrainerParams

type ListAvailableTimesForTrainerParams struct {

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

	/*
	  Required: true
	  In: query
	*/
	EndsAt strfmt.DateTime
	/*
	  Required: true
	  In: query
	*/
	StartsAt strfmt.DateTime
	/*
	  Required: true
	  In: path
	*/
	TrainerID strfmt.UUID
}

ListAvailableTimesForTrainerParams contains all the bound params for the list available times for trainer operation typically these are obtained from a http.Request

swagger:parameters listAvailableTimesForTrainer

func NewListAvailableTimesForTrainerParams

func NewListAvailableTimesForTrainerParams() ListAvailableTimesForTrainerParams

NewListAvailableTimesForTrainerParams creates a new ListAvailableTimesForTrainerParams object no default values defined in spec.

func (*ListAvailableTimesForTrainerParams) BindRequest

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 NewListAvailableTimesForTrainerParams() beforehand.

type ListAvailableTimesForTrainerURL

type ListAvailableTimesForTrainerURL struct {
	TrainerID strfmt.UUID

	EndsAt   strfmt.DateTime
	StartsAt strfmt.DateTime
	// contains filtered or unexported fields
}

ListAvailableTimesForTrainerURL generates an URL for the list available times for trainer operation

func (*ListAvailableTimesForTrainerURL) Build

Build a url path and query string

func (*ListAvailableTimesForTrainerURL) BuildFull

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

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

func (*ListAvailableTimesForTrainerURL) Must

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

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

func (*ListAvailableTimesForTrainerURL) SetBasePath

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

String returns the string representation of the path with query string

func (*ListAvailableTimesForTrainerURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ListAvailableTimesForTrainerURL) 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 ListAvailableTimesForTrainerUnauthorized

type ListAvailableTimesForTrainerUnauthorized struct {
}

ListAvailableTimesForTrainerUnauthorized Unauthorized

swagger:response listAvailableTimesForTrainerUnauthorized

func NewListAvailableTimesForTrainerUnauthorized

func NewListAvailableTimesForTrainerUnauthorized() *ListAvailableTimesForTrainerUnauthorized

NewListAvailableTimesForTrainerUnauthorized creates ListAvailableTimesForTrainerUnauthorized with default headers values

func (*ListAvailableTimesForTrainerUnauthorized) WriteResponse

WriteResponse to the client

Jump to

Keyboard shortcuts

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