Documentation ¶
Index ¶
- Constants
- type ListTrainerAppointments
- type ListTrainerAppointmentsBadRequest
- func (o *ListTrainerAppointmentsBadRequest) SetPayload(payload *models.Error)
- func (o *ListTrainerAppointmentsBadRequest) WithPayload(payload *models.Error) *ListTrainerAppointmentsBadRequest
- func (o *ListTrainerAppointmentsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListTrainerAppointmentsHandler
- type ListTrainerAppointmentsHandlerFunc
- type ListTrainerAppointmentsOK
- type ListTrainerAppointmentsParams
- type ListTrainerAppointmentsURL
- func (o *ListTrainerAppointmentsURL) Build() (*url.URL, error)
- func (o *ListTrainerAppointmentsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListTrainerAppointmentsURL) Must(u *url.URL, err error) *url.URL
- func (o *ListTrainerAppointmentsURL) SetBasePath(bp string)
- func (o *ListTrainerAppointmentsURL) String() string
- func (o *ListTrainerAppointmentsURL) StringFull(scheme, host string) string
- func (o *ListTrainerAppointmentsURL) WithBasePath(bp string) *ListTrainerAppointmentsURL
- type ListTrainerAppointmentsUnauthorized
Constants ¶
const ListTrainerAppointmentsBadRequestCode int = 400
ListTrainerAppointmentsBadRequestCode is the HTTP code returned for type ListTrainerAppointmentsBadRequest
const ListTrainerAppointmentsOKCode int = 200
ListTrainerAppointmentsOKCode is the HTTP code returned for type ListTrainerAppointmentsOK
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 ¶
func (o *ListTrainerAppointments) ServeHTTP(rw http.ResponseWriter, r *http.Request)
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 ¶
func (o *ListTrainerAppointmentsBadRequest) WithPayload(payload *models.Error) *ListTrainerAppointmentsBadRequest
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 ¶
func (fn ListTrainerAppointmentsHandlerFunc) Handle(params ListTrainerAppointmentsParams) middleware.Responder
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 ¶
func (o *ListTrainerAppointmentsOK) WithPayload(payload models.TrainerAppointments) *ListTrainerAppointmentsOK
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 ¶
func (o *ListTrainerAppointmentsParams) 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 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 ¶
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 ¶
func (o *ListTrainerAppointmentsURL) WithBasePath(bp string) *ListTrainerAppointmentsURL
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 ¶
func (o *ListTrainerAppointmentsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client