Documentation
¶
Index ¶
- Constants
- type CreateAppointment
- type CreateAppointmentBadRequest
- type CreateAppointmentConflict
- type CreateAppointmentCreated
- type CreateAppointmentHandler
- type CreateAppointmentHandlerFunc
- type CreateAppointmentParams
- type CreateAppointmentTooManyRequests
- type CreateAppointmentURL
- func (o *CreateAppointmentURL) Build() (*url.URL, error)
- func (o *CreateAppointmentURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateAppointmentURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateAppointmentURL) SetBasePath(bp string)
- func (o *CreateAppointmentURL) String() string
- func (o *CreateAppointmentURL) StringFull(scheme, host string) string
- func (o *CreateAppointmentURL) WithBasePath(bp string) *CreateAppointmentURL
- type CreateAppointmentUnauthorized
- type ListAvailableTimesForTrainer
- type ListAvailableTimesForTrainerBadRequest
- func (o *ListAvailableTimesForTrainerBadRequest) SetPayload(payload *models.Error)
- func (o *ListAvailableTimesForTrainerBadRequest) WithPayload(payload *models.Error) *ListAvailableTimesForTrainerBadRequest
- func (o *ListAvailableTimesForTrainerBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListAvailableTimesForTrainerHandler
- type ListAvailableTimesForTrainerHandlerFunc
- type ListAvailableTimesForTrainerNotFound
- type ListAvailableTimesForTrainerOK
- func (o *ListAvailableTimesForTrainerOK) SetPayload(payload models.AvailableSlots)
- func (o *ListAvailableTimesForTrainerOK) WithPayload(payload models.AvailableSlots) *ListAvailableTimesForTrainerOK
- func (o *ListAvailableTimesForTrainerOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListAvailableTimesForTrainerParams
- type ListAvailableTimesForTrainerURL
- func (o *ListAvailableTimesForTrainerURL) Build() (*url.URL, error)
- func (o *ListAvailableTimesForTrainerURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListAvailableTimesForTrainerURL) Must(u *url.URL, err error) *url.URL
- func (o *ListAvailableTimesForTrainerURL) SetBasePath(bp string)
- func (o *ListAvailableTimesForTrainerURL) String() string
- func (o *ListAvailableTimesForTrainerURL) StringFull(scheme, host string) string
- func (o *ListAvailableTimesForTrainerURL) WithBasePath(bp string) *ListAvailableTimesForTrainerURL
- type ListAvailableTimesForTrainerUnauthorized
Constants ¶
const CreateAppointmentBadRequestCode int = 400
CreateAppointmentBadRequestCode is the HTTP code returned for type CreateAppointmentBadRequest
const CreateAppointmentConflictCode int = 409
CreateAppointmentConflictCode is the HTTP code returned for type CreateAppointmentConflict
const CreateAppointmentCreatedCode int = 201
CreateAppointmentCreatedCode is the HTTP code returned for type CreateAppointmentCreated
const CreateAppointmentTooManyRequestsCode int = 429
CreateAppointmentTooManyRequestsCode is the HTTP code returned for type CreateAppointmentTooManyRequests
CreateAppointmentUnauthorizedCode is the HTTP code returned for type CreateAppointmentUnauthorized
const ListAvailableTimesForTrainerBadRequestCode int = 400
ListAvailableTimesForTrainerBadRequestCode is the HTTP code returned for type ListAvailableTimesForTrainerBadRequest
const ListAvailableTimesForTrainerNotFoundCode int = 404
ListAvailableTimesForTrainerNotFoundCode is the HTTP code returned for type ListAvailableTimesForTrainerNotFound
const ListAvailableTimesForTrainerOKCode int = 200
ListAvailableTimesForTrainerOKCode is the HTTP code returned for type ListAvailableTimesForTrainerOK
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 ¶
func (o *CreateAppointmentBadRequest) WithPayload(payload *models.Error) *CreateAppointmentBadRequest
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 ¶
func (o *CreateAppointmentConflict) WithPayload(payload *models.Error) *CreateAppointmentConflict
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 ¶
func (o *CreateAppointmentCreated) WithPayload(payload *models.UserAppointment) *CreateAppointmentCreated
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 ¶
func (fn CreateAppointmentHandlerFunc) Handle(params CreateAppointmentParams) middleware.Responder
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 ¶
func (o *CreateAppointmentTooManyRequests) WithPayload(payload *models.Error) *CreateAppointmentTooManyRequests
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 ¶
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 ¶
func (o *ListAvailableTimesForTrainer) ServeHTTP(rw http.ResponseWriter, r *http.Request)
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 ¶
func (o *ListAvailableTimesForTrainerBadRequest) WithPayload(payload *models.Error) *ListAvailableTimesForTrainerBadRequest
WithPayload adds the payload to the list available times for trainer bad request response
func (*ListAvailableTimesForTrainerBadRequest) WriteResponse ¶
func (o *ListAvailableTimesForTrainerBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
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 ¶
func (fn ListAvailableTimesForTrainerHandlerFunc) Handle(params ListAvailableTimesForTrainerParams) middleware.Responder
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 ¶
func (o *ListAvailableTimesForTrainerNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
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 ¶
func (o *ListAvailableTimesForTrainerOK) WithPayload(payload models.AvailableSlots) *ListAvailableTimesForTrainerOK
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 ¶
func (o *ListAvailableTimesForTrainerParams) 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 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 ¶
func (o *ListAvailableTimesForTrainerURL) Build() (*url.URL, error)
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 ¶
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 ¶
func (o *ListAvailableTimesForTrainerURL) String() 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 ¶
func (o *ListAvailableTimesForTrainerURL) WithBasePath(bp string) *ListAvailableTimesForTrainerURL
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 ¶
func (o *ListAvailableTimesForTrainerUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client