trainers

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: 10 Imported by: 0

Documentation

Index

Constants

View Source
const ListTrainerAppointmentsBadRequestCode int = 400

ListTrainerAppointmentsBadRequestCode is the HTTP code returned for type ListTrainerAppointmentsBadRequest

View Source
const ListTrainerAppointmentsOKCode int = 200

ListTrainerAppointmentsOKCode is the HTTP code returned for type ListTrainerAppointmentsOK

View Source
const ListTrainerAppointmentsUnauthorizedCode int = 401

ListTrainerAppointmentsUnauthorizedCode is the HTTP code returned for type ListTrainerAppointmentsUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type ListTrainerAppointments

type ListTrainerAppointments struct {
	Context *middleware.Context
	Handler ListTrainerAppointmentsHandler
}

ListTrainerAppointments swagger:route GET /trainers/appointments trainers listTrainerAppointments

List trainer's appointments

func NewListTrainerAppointments

func NewListTrainerAppointments(ctx *middleware.Context, handler ListTrainerAppointmentsHandler) *ListTrainerAppointments

NewListTrainerAppointments creates a new http.Handler for the list trainer appointments operation

func (*ListTrainerAppointments) ServeHTTP

type ListTrainerAppointmentsBadRequest

type ListTrainerAppointmentsBadRequest struct {

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

ListTrainerAppointmentsBadRequest Bad Request

swagger:response listTrainerAppointmentsBadRequest

func NewListTrainerAppointmentsBadRequest

func NewListTrainerAppointmentsBadRequest() *ListTrainerAppointmentsBadRequest

NewListTrainerAppointmentsBadRequest creates ListTrainerAppointmentsBadRequest with default headers values

func (*ListTrainerAppointmentsBadRequest) SetPayload

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

SetPayload sets the payload to the list trainer appointments bad request response

func (*ListTrainerAppointmentsBadRequest) WithPayload

WithPayload adds the payload to the list trainer appointments bad request response

func (*ListTrainerAppointmentsBadRequest) WriteResponse

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

WriteResponse to the client

type ListTrainerAppointmentsHandler

type ListTrainerAppointmentsHandler interface {
	Handle(ListTrainerAppointmentsParams) middleware.Responder
}

ListTrainerAppointmentsHandler interface for that can handle valid list trainer appointments params

type ListTrainerAppointmentsHandlerFunc

type ListTrainerAppointmentsHandlerFunc func(ListTrainerAppointmentsParams) middleware.Responder

ListTrainerAppointmentsHandlerFunc turns a function with the right signature into a list trainer appointments handler

func (ListTrainerAppointmentsHandlerFunc) Handle

Handle executing the request and returning a response

type ListTrainerAppointmentsOK

type ListTrainerAppointmentsOK struct {

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

ListTrainerAppointmentsOK List of appointments

swagger:response listTrainerAppointmentsOK

func NewListTrainerAppointmentsOK

func NewListTrainerAppointmentsOK() *ListTrainerAppointmentsOK

NewListTrainerAppointmentsOK creates ListTrainerAppointmentsOK with default headers values

func (*ListTrainerAppointmentsOK) SetPayload

func (o *ListTrainerAppointmentsOK) SetPayload(payload models.TrainerAppointments)

SetPayload sets the payload to the list trainer appointments o k response

func (*ListTrainerAppointmentsOK) WithPayload

WithPayload adds the payload to the list trainer appointments o k response

func (*ListTrainerAppointmentsOK) WriteResponse

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

WriteResponse to the client

type ListTrainerAppointmentsParams

type ListTrainerAppointmentsParams struct {

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

	/*
	  Required: true
	  In: query
	*/
	EndsAt strfmt.DateTime
	/*
	  Required: true
	  In: query
	*/
	StartsAt strfmt.DateTime
	/*Provided by API GW after auth
	  Required: true
	  In: header
	*/
	Trainerid strfmt.UUID
}

ListTrainerAppointmentsParams contains all the bound params for the list trainer appointments operation typically these are obtained from a http.Request

swagger:parameters listTrainerAppointments

func NewListTrainerAppointmentsParams

func NewListTrainerAppointmentsParams() ListTrainerAppointmentsParams

NewListTrainerAppointmentsParams creates a new ListTrainerAppointmentsParams object no default values defined in spec.

func (*ListTrainerAppointmentsParams) 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 NewListTrainerAppointmentsParams() beforehand.

type ListTrainerAppointmentsURL

type ListTrainerAppointmentsURL struct {
	EndsAt   strfmt.DateTime
	StartsAt strfmt.DateTime
	// contains filtered or unexported fields
}

ListTrainerAppointmentsURL generates an URL for the list trainer appointments operation

func (*ListTrainerAppointmentsURL) Build

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

Build a url path and query string

func (*ListTrainerAppointmentsURL) BuildFull

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

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

func (*ListTrainerAppointmentsURL) Must

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

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

func (*ListTrainerAppointmentsURL) SetBasePath

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

func (o *ListTrainerAppointmentsURL) String() string

String returns the string representation of the path with query string

func (*ListTrainerAppointmentsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ListTrainerAppointmentsURL) 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 ListTrainerAppointmentsUnauthorized

type ListTrainerAppointmentsUnauthorized struct {
}

ListTrainerAppointmentsUnauthorized Unauthorized

swagger:response listTrainerAppointmentsUnauthorized

func NewListTrainerAppointmentsUnauthorized

func NewListTrainerAppointmentsUnauthorized() *ListTrainerAppointmentsUnauthorized

NewListTrainerAppointmentsUnauthorized creates ListTrainerAppointmentsUnauthorized with default headers values

func (*ListTrainerAppointmentsUnauthorized) WriteResponse

WriteResponse to the client

Jump to

Keyboard shortcuts

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