Documentation ¶
Index ¶
- Constants
- type AddSchedule
- type AddScheduleCreated
- type AddScheduleDefault
- func (o *AddScheduleDefault) SetPayload(payload *models.Error)
- func (o *AddScheduleDefault) SetStatusCode(code int)
- func (o *AddScheduleDefault) WithPayload(payload *models.Error) *AddScheduleDefault
- func (o *AddScheduleDefault) WithStatusCode(code int) *AddScheduleDefault
- func (o *AddScheduleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type AddScheduleHandler
- type AddScheduleHandlerFunc
- type AddScheduleParams
- type AddScheduleURL
- func (o *AddScheduleURL) Build() (*url.URL, error)
- func (o *AddScheduleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *AddScheduleURL) Must(u *url.URL, err error) *url.URL
- func (o *AddScheduleURL) SetBasePath(bp string)
- func (o *AddScheduleURL) String() string
- func (o *AddScheduleURL) StringFull(scheme, host string) string
- func (o *AddScheduleURL) WithBasePath(bp string) *AddScheduleURL
- type DeleteSchedule
- type DeleteScheduleBadRequest
- type DeleteScheduleHandler
- type DeleteScheduleHandlerFunc
- type DeleteScheduleNoContent
- type DeleteScheduleNotFound
- type DeleteScheduleParams
- type DeleteScheduleURL
- func (o *DeleteScheduleURL) Build() (*url.URL, error)
- func (o *DeleteScheduleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteScheduleURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteScheduleURL) SetBasePath(bp string)
- func (o *DeleteScheduleURL) String() string
- func (o *DeleteScheduleURL) StringFull(scheme, host string) string
- func (o *DeleteScheduleURL) WithBasePath(bp string) *DeleteScheduleURL
- type GetSchedule
- type GetScheduleHandler
- type GetScheduleHandlerFunc
- type GetScheduleOK
- type GetScheduleParams
- type GetScheduleURL
- func (o *GetScheduleURL) Build() (*url.URL, error)
- func (o *GetScheduleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetScheduleURL) Must(u *url.URL, err error) *url.URL
- func (o *GetScheduleURL) SetBasePath(bp string)
- func (o *GetScheduleURL) String() string
- func (o *GetScheduleURL) StringFull(scheme, host string) string
- func (o *GetScheduleURL) WithBasePath(bp string) *GetScheduleURL
- type GetSchedules
- type GetSchedulesBadRequest
- type GetSchedulesDefault
- func (o *GetSchedulesDefault) SetPayload(payload *models.Error)
- func (o *GetSchedulesDefault) SetStatusCode(code int)
- func (o *GetSchedulesDefault) WithPayload(payload *models.Error) *GetSchedulesDefault
- func (o *GetSchedulesDefault) WithStatusCode(code int) *GetSchedulesDefault
- func (o *GetSchedulesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetSchedulesHandler
- type GetSchedulesHandlerFunc
- type GetSchedulesOK
- type GetSchedulesParams
- type GetSchedulesURL
- func (o *GetSchedulesURL) Build() (*url.URL, error)
- func (o *GetSchedulesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetSchedulesURL) Must(u *url.URL, err error) *url.URL
- func (o *GetSchedulesURL) SetBasePath(bp string)
- func (o *GetSchedulesURL) String() string
- func (o *GetSchedulesURL) StringFull(scheme, host string) string
- func (o *GetSchedulesURL) WithBasePath(bp string) *GetSchedulesURL
- type UpdateSchedule
- type UpdateScheduleBadRequest
- type UpdateScheduleCreated
- type UpdateScheduleHandler
- type UpdateScheduleHandlerFunc
- type UpdateScheduleNotFound
- type UpdateScheduleParams
- type UpdateScheduleURL
- func (o *UpdateScheduleURL) Build() (*url.URL, error)
- func (o *UpdateScheduleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateScheduleURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateScheduleURL) SetBasePath(bp string)
- func (o *UpdateScheduleURL) String() string
- func (o *UpdateScheduleURL) StringFull(scheme, host string) string
- func (o *UpdateScheduleURL) WithBasePath(bp string) *UpdateScheduleURL
Constants ¶
const AddScheduleCreatedCode int = 201
AddScheduleCreatedCode is the HTTP code returned for type AddScheduleCreated
const DeleteScheduleBadRequestCode int = 400
DeleteScheduleBadRequestCode is the HTTP code returned for type DeleteScheduleBadRequest
const DeleteScheduleNoContentCode int = 204
DeleteScheduleNoContentCode is the HTTP code returned for type DeleteScheduleNoContent
const DeleteScheduleNotFoundCode int = 404
DeleteScheduleNotFoundCode is the HTTP code returned for type DeleteScheduleNotFound
const GetScheduleOKCode int = 200
GetScheduleOKCode is the HTTP code returned for type GetScheduleOK
const GetSchedulesBadRequestCode int = 400
GetSchedulesBadRequestCode is the HTTP code returned for type GetSchedulesBadRequest
const GetSchedulesOKCode int = 200
GetSchedulesOKCode is the HTTP code returned for type GetSchedulesOK
const UpdateScheduleBadRequestCode int = 400
UpdateScheduleBadRequestCode is the HTTP code returned for type UpdateScheduleBadRequest
const UpdateScheduleCreatedCode int = 201
UpdateScheduleCreatedCode is the HTTP code returned for type UpdateScheduleCreated
const UpdateScheduleNotFoundCode int = 404
UpdateScheduleNotFoundCode is the HTTP code returned for type UpdateScheduleNotFound
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddSchedule ¶
type AddSchedule struct { Context *middleware.Context Handler AddScheduleHandler }
AddSchedule swagger:route POST /schedules schedules addSchedule
Creates a new schedule. Duplicates are not allowed
func NewAddSchedule ¶
func NewAddSchedule(ctx *middleware.Context, handler AddScheduleHandler) *AddSchedule
NewAddSchedule creates a new http.Handler for the add schedule operation
func (*AddSchedule) ServeHTTP ¶
func (o *AddSchedule) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type AddScheduleCreated ¶
AddScheduleCreated Created
swagger:response addScheduleCreated
func NewAddScheduleCreated ¶
func NewAddScheduleCreated() *AddScheduleCreated
NewAddScheduleCreated creates AddScheduleCreated with default headers values
func (*AddScheduleCreated) SetPayload ¶
func (o *AddScheduleCreated) SetPayload(payload *models.Schedule)
SetPayload sets the payload to the add schedule created response
func (*AddScheduleCreated) WithPayload ¶
func (o *AddScheduleCreated) WithPayload(payload *models.Schedule) *AddScheduleCreated
WithPayload adds the payload to the add schedule created response
func (*AddScheduleCreated) WriteResponse ¶
func (o *AddScheduleCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddScheduleDefault ¶
type AddScheduleDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
AddScheduleDefault unexpected error
swagger:response addScheduleDefault
func NewAddScheduleDefault ¶
func NewAddScheduleDefault(code int) *AddScheduleDefault
NewAddScheduleDefault creates AddScheduleDefault with default headers values
func (*AddScheduleDefault) SetPayload ¶
func (o *AddScheduleDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the add schedule default response
func (*AddScheduleDefault) SetStatusCode ¶
func (o *AddScheduleDefault) SetStatusCode(code int)
SetStatusCode sets the status to the add schedule default response
func (*AddScheduleDefault) WithPayload ¶
func (o *AddScheduleDefault) WithPayload(payload *models.Error) *AddScheduleDefault
WithPayload adds the payload to the add schedule default response
func (*AddScheduleDefault) WithStatusCode ¶
func (o *AddScheduleDefault) WithStatusCode(code int) *AddScheduleDefault
WithStatusCode adds the status to the add schedule default response
func (*AddScheduleDefault) WriteResponse ¶
func (o *AddScheduleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddScheduleHandler ¶
type AddScheduleHandler interface {
Handle(AddScheduleParams) middleware.Responder
}
AddScheduleHandler interface for that can handle valid add schedule params
type AddScheduleHandlerFunc ¶
type AddScheduleHandlerFunc func(AddScheduleParams) middleware.Responder
AddScheduleHandlerFunc turns a function with the right signature into a add schedule handler
func (AddScheduleHandlerFunc) Handle ¶
func (fn AddScheduleHandlerFunc) Handle(params AddScheduleParams) middleware.Responder
Handle executing the request and returning a response
type AddScheduleParams ¶
type AddScheduleParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Schedule Required: true In: body */ Schedule *models.Schedule }
AddScheduleParams contains all the bound params for the add schedule operation typically these are obtained from a http.Request
swagger:parameters addSchedule
func NewAddScheduleParams ¶
func NewAddScheduleParams() AddScheduleParams
NewAddScheduleParams creates a new AddScheduleParams object no default values defined in spec.
func (*AddScheduleParams) BindRequest ¶
func (o *AddScheduleParams) 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 NewAddScheduleParams() beforehand.
type AddScheduleURL ¶
type AddScheduleURL struct {
// contains filtered or unexported fields
}
AddScheduleURL generates an URL for the add schedule operation
func (*AddScheduleURL) Build ¶
func (o *AddScheduleURL) Build() (*url.URL, error)
Build a url path and query string
func (*AddScheduleURL) BuildFull ¶
func (o *AddScheduleURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*AddScheduleURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*AddScheduleURL) SetBasePath ¶
func (o *AddScheduleURL) 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 (*AddScheduleURL) String ¶
func (o *AddScheduleURL) String() string
String returns the string representation of the path with query string
func (*AddScheduleURL) StringFull ¶
func (o *AddScheduleURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*AddScheduleURL) WithBasePath ¶
func (o *AddScheduleURL) WithBasePath(bp string) *AddScheduleURL
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 DeleteSchedule ¶
type DeleteSchedule struct { Context *middleware.Context Handler DeleteScheduleHandler }
DeleteSchedule swagger:route DELETE /schedules/{id} schedules deleteSchedule
Delete an existant schedules
func NewDeleteSchedule ¶
func NewDeleteSchedule(ctx *middleware.Context, handler DeleteScheduleHandler) *DeleteSchedule
NewDeleteSchedule creates a new http.Handler for the delete schedule operation
func (*DeleteSchedule) ServeHTTP ¶
func (o *DeleteSchedule) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteScheduleBadRequest ¶
type DeleteScheduleBadRequest struct { }
DeleteScheduleBadRequest Invalid ID
swagger:response deleteScheduleBadRequest
func NewDeleteScheduleBadRequest ¶
func NewDeleteScheduleBadRequest() *DeleteScheduleBadRequest
NewDeleteScheduleBadRequest creates DeleteScheduleBadRequest with default headers values
func (*DeleteScheduleBadRequest) WriteResponse ¶
func (o *DeleteScheduleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteScheduleHandler ¶
type DeleteScheduleHandler interface {
Handle(DeleteScheduleParams) middleware.Responder
}
DeleteScheduleHandler interface for that can handle valid delete schedule params
type DeleteScheduleHandlerFunc ¶
type DeleteScheduleHandlerFunc func(DeleteScheduleParams) middleware.Responder
DeleteScheduleHandlerFunc turns a function with the right signature into a delete schedule handler
func (DeleteScheduleHandlerFunc) Handle ¶
func (fn DeleteScheduleHandlerFunc) Handle(params DeleteScheduleParams) middleware.Responder
Handle executing the request and returning a response
type DeleteScheduleNoContent ¶
type DeleteScheduleNoContent struct { }
DeleteScheduleNoContent Deleted successfully
swagger:response deleteScheduleNoContent
func NewDeleteScheduleNoContent ¶
func NewDeleteScheduleNoContent() *DeleteScheduleNoContent
NewDeleteScheduleNoContent creates DeleteScheduleNoContent with default headers values
func (*DeleteScheduleNoContent) WriteResponse ¶
func (o *DeleteScheduleNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteScheduleNotFound ¶
type DeleteScheduleNotFound struct { }
DeleteScheduleNotFound Schedule not found
swagger:response deleteScheduleNotFound
func NewDeleteScheduleNotFound ¶
func NewDeleteScheduleNotFound() *DeleteScheduleNotFound
NewDeleteScheduleNotFound creates DeleteScheduleNotFound with default headers values
func (*DeleteScheduleNotFound) WriteResponse ¶
func (o *DeleteScheduleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteScheduleParams ¶
type DeleteScheduleParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The id of the item Required: true In: path */ ID int64 }
DeleteScheduleParams contains all the bound params for the delete schedule operation typically these are obtained from a http.Request
swagger:parameters deleteSchedule
func NewDeleteScheduleParams ¶
func NewDeleteScheduleParams() DeleteScheduleParams
NewDeleteScheduleParams creates a new DeleteScheduleParams object no default values defined in spec.
func (*DeleteScheduleParams) BindRequest ¶
func (o *DeleteScheduleParams) 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 NewDeleteScheduleParams() beforehand.
type DeleteScheduleURL ¶
type DeleteScheduleURL struct { ID int64 // contains filtered or unexported fields }
DeleteScheduleURL generates an URL for the delete schedule operation
func (*DeleteScheduleURL) Build ¶
func (o *DeleteScheduleURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteScheduleURL) BuildFull ¶
func (o *DeleteScheduleURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteScheduleURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteScheduleURL) SetBasePath ¶
func (o *DeleteScheduleURL) 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 (*DeleteScheduleURL) String ¶
func (o *DeleteScheduleURL) String() string
String returns the string representation of the path with query string
func (*DeleteScheduleURL) StringFull ¶
func (o *DeleteScheduleURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteScheduleURL) WithBasePath ¶
func (o *DeleteScheduleURL) WithBasePath(bp string) *DeleteScheduleURL
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 GetSchedule ¶
type GetSchedule struct { Context *middleware.Context Handler GetScheduleHandler }
GetSchedule swagger:route GET /schedules/{id} schedules getSchedule
GetSchedule get schedule API
func NewGetSchedule ¶
func NewGetSchedule(ctx *middleware.Context, handler GetScheduleHandler) *GetSchedule
NewGetSchedule creates a new http.Handler for the get schedule operation
func (*GetSchedule) ServeHTTP ¶
func (o *GetSchedule) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetScheduleHandler ¶
type GetScheduleHandler interface {
Handle(GetScheduleParams) middleware.Responder
}
GetScheduleHandler interface for that can handle valid get schedule params
type GetScheduleHandlerFunc ¶
type GetScheduleHandlerFunc func(GetScheduleParams) middleware.Responder
GetScheduleHandlerFunc turns a function with the right signature into a get schedule handler
func (GetScheduleHandlerFunc) Handle ¶
func (fn GetScheduleHandlerFunc) Handle(params GetScheduleParams) middleware.Responder
Handle executing the request and returning a response
type GetScheduleOK ¶
GetScheduleOK list of schedules
swagger:response getScheduleOK
func NewGetScheduleOK ¶
func NewGetScheduleOK() *GetScheduleOK
NewGetScheduleOK creates GetScheduleOK with default headers values
func (*GetScheduleOK) SetPayload ¶
func (o *GetScheduleOK) SetPayload(payload *models.Schedule)
SetPayload sets the payload to the get schedule o k response
func (*GetScheduleOK) WithPayload ¶
func (o *GetScheduleOK) WithPayload(payload *models.Schedule) *GetScheduleOK
WithPayload adds the payload to the get schedule o k response
func (*GetScheduleOK) WriteResponse ¶
func (o *GetScheduleOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetScheduleParams ¶
type GetScheduleParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The id of the item Required: true In: path */ ID int64 }
GetScheduleParams contains all the bound params for the get schedule operation typically these are obtained from a http.Request
swagger:parameters getSchedule
func NewGetScheduleParams ¶
func NewGetScheduleParams() GetScheduleParams
NewGetScheduleParams creates a new GetScheduleParams object no default values defined in spec.
func (*GetScheduleParams) BindRequest ¶
func (o *GetScheduleParams) 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 NewGetScheduleParams() beforehand.
type GetScheduleURL ¶
type GetScheduleURL struct { ID int64 // contains filtered or unexported fields }
GetScheduleURL generates an URL for the get schedule operation
func (*GetScheduleURL) Build ¶
func (o *GetScheduleURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetScheduleURL) BuildFull ¶
func (o *GetScheduleURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetScheduleURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetScheduleURL) SetBasePath ¶
func (o *GetScheduleURL) 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 (*GetScheduleURL) String ¶
func (o *GetScheduleURL) String() string
String returns the string representation of the path with query string
func (*GetScheduleURL) StringFull ¶
func (o *GetScheduleURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetScheduleURL) WithBasePath ¶
func (o *GetScheduleURL) WithBasePath(bp string) *GetScheduleURL
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 GetSchedules ¶
type GetSchedules struct { Context *middleware.Context Handler GetSchedulesHandler }
GetSchedules swagger:route GET /schedules schedules getSchedules
GetSchedules get schedules API
func NewGetSchedules ¶
func NewGetSchedules(ctx *middleware.Context, handler GetSchedulesHandler) *GetSchedules
NewGetSchedules creates a new http.Handler for the get schedules operation
func (*GetSchedules) ServeHTTP ¶
func (o *GetSchedules) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetSchedulesBadRequest ¶
GetSchedulesBadRequest generic error response
swagger:response getSchedulesBadRequest
func NewGetSchedulesBadRequest ¶
func NewGetSchedulesBadRequest() *GetSchedulesBadRequest
NewGetSchedulesBadRequest creates GetSchedulesBadRequest with default headers values
func (*GetSchedulesBadRequest) SetPayload ¶
func (o *GetSchedulesBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the get schedules bad request response
func (*GetSchedulesBadRequest) WithPayload ¶
func (o *GetSchedulesBadRequest) WithPayload(payload *models.Error) *GetSchedulesBadRequest
WithPayload adds the payload to the get schedules bad request response
func (*GetSchedulesBadRequest) WriteResponse ¶
func (o *GetSchedulesBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSchedulesDefault ¶
type GetSchedulesDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetSchedulesDefault generic error response
swagger:response getSchedulesDefault
func NewGetSchedulesDefault ¶
func NewGetSchedulesDefault(code int) *GetSchedulesDefault
NewGetSchedulesDefault creates GetSchedulesDefault with default headers values
func (*GetSchedulesDefault) SetPayload ¶
func (o *GetSchedulesDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get schedules default response
func (*GetSchedulesDefault) SetStatusCode ¶
func (o *GetSchedulesDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get schedules default response
func (*GetSchedulesDefault) WithPayload ¶
func (o *GetSchedulesDefault) WithPayload(payload *models.Error) *GetSchedulesDefault
WithPayload adds the payload to the get schedules default response
func (*GetSchedulesDefault) WithStatusCode ¶
func (o *GetSchedulesDefault) WithStatusCode(code int) *GetSchedulesDefault
WithStatusCode adds the status to the get schedules default response
func (*GetSchedulesDefault) WriteResponse ¶
func (o *GetSchedulesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSchedulesHandler ¶
type GetSchedulesHandler interface {
Handle(GetSchedulesParams) middleware.Responder
}
GetSchedulesHandler interface for that can handle valid get schedules params
type GetSchedulesHandlerFunc ¶
type GetSchedulesHandlerFunc func(GetSchedulesParams) middleware.Responder
GetSchedulesHandlerFunc turns a function with the right signature into a get schedules handler
func (GetSchedulesHandlerFunc) Handle ¶
func (fn GetSchedulesHandlerFunc) Handle(params GetSchedulesParams) middleware.Responder
Handle executing the request and returning a response
type GetSchedulesOK ¶
GetSchedulesOK list of schedules
swagger:response getSchedulesOK
func NewGetSchedulesOK ¶
func NewGetSchedulesOK() *GetSchedulesOK
NewGetSchedulesOK creates GetSchedulesOK with default headers values
func (*GetSchedulesOK) SetPayload ¶
func (o *GetSchedulesOK) SetPayload(payload []*models.Schedule)
SetPayload sets the payload to the get schedules o k response
func (*GetSchedulesOK) WithPayload ¶
func (o *GetSchedulesOK) WithPayload(payload []*models.Schedule) *GetSchedulesOK
WithPayload adds the payload to the get schedules o k response
func (*GetSchedulesOK) WriteResponse ¶
func (o *GetSchedulesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSchedulesParams ¶
GetSchedulesParams contains all the bound params for the get schedules operation typically these are obtained from a http.Request
swagger:parameters GetSchedules
func NewGetSchedulesParams ¶
func NewGetSchedulesParams() GetSchedulesParams
NewGetSchedulesParams creates a new GetSchedulesParams object no default values defined in spec.
func (*GetSchedulesParams) BindRequest ¶
func (o *GetSchedulesParams) 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 NewGetSchedulesParams() beforehand.
type GetSchedulesURL ¶
type GetSchedulesURL struct {
// contains filtered or unexported fields
}
GetSchedulesURL generates an URL for the get schedules operation
func (*GetSchedulesURL) Build ¶
func (o *GetSchedulesURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetSchedulesURL) BuildFull ¶
func (o *GetSchedulesURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetSchedulesURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetSchedulesURL) SetBasePath ¶
func (o *GetSchedulesURL) 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 (*GetSchedulesURL) String ¶
func (o *GetSchedulesURL) String() string
String returns the string representation of the path with query string
func (*GetSchedulesURL) StringFull ¶
func (o *GetSchedulesURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetSchedulesURL) WithBasePath ¶
func (o *GetSchedulesURL) WithBasePath(bp string) *GetSchedulesURL
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 UpdateSchedule ¶
type UpdateSchedule struct { Context *middleware.Context Handler UpdateScheduleHandler }
UpdateSchedule swagger:route PUT /schedules/{id} schedules updateSchedule
Updates an existant Schedule
func NewUpdateSchedule ¶
func NewUpdateSchedule(ctx *middleware.Context, handler UpdateScheduleHandler) *UpdateSchedule
NewUpdateSchedule creates a new http.Handler for the update schedule operation
func (*UpdateSchedule) ServeHTTP ¶
func (o *UpdateSchedule) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateScheduleBadRequest ¶
type UpdateScheduleBadRequest struct { }
UpdateScheduleBadRequest invalid id
swagger:response updateScheduleBadRequest
func NewUpdateScheduleBadRequest ¶
func NewUpdateScheduleBadRequest() *UpdateScheduleBadRequest
NewUpdateScheduleBadRequest creates UpdateScheduleBadRequest with default headers values
func (*UpdateScheduleBadRequest) WriteResponse ¶
func (o *UpdateScheduleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateScheduleCreated ¶
type UpdateScheduleCreated struct { /* In: Body */ Payload *models.Schedule `json:"body,omitempty"` }
UpdateScheduleCreated Updated Succesfully
swagger:response updateScheduleCreated
func NewUpdateScheduleCreated ¶
func NewUpdateScheduleCreated() *UpdateScheduleCreated
NewUpdateScheduleCreated creates UpdateScheduleCreated with default headers values
func (*UpdateScheduleCreated) SetPayload ¶
func (o *UpdateScheduleCreated) SetPayload(payload *models.Schedule)
SetPayload sets the payload to the update schedule created response
func (*UpdateScheduleCreated) WithPayload ¶
func (o *UpdateScheduleCreated) WithPayload(payload *models.Schedule) *UpdateScheduleCreated
WithPayload adds the payload to the update schedule created response
func (*UpdateScheduleCreated) WriteResponse ¶
func (o *UpdateScheduleCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateScheduleHandler ¶
type UpdateScheduleHandler interface {
Handle(UpdateScheduleParams) middleware.Responder
}
UpdateScheduleHandler interface for that can handle valid update schedule params
type UpdateScheduleHandlerFunc ¶
type UpdateScheduleHandlerFunc func(UpdateScheduleParams) middleware.Responder
UpdateScheduleHandlerFunc turns a function with the right signature into a update schedule handler
func (UpdateScheduleHandlerFunc) Handle ¶
func (fn UpdateScheduleHandlerFunc) Handle(params UpdateScheduleParams) middleware.Responder
Handle executing the request and returning a response
type UpdateScheduleNotFound ¶
type UpdateScheduleNotFound struct { }
UpdateScheduleNotFound schedule not found
swagger:response updateScheduleNotFound
func NewUpdateScheduleNotFound ¶
func NewUpdateScheduleNotFound() *UpdateScheduleNotFound
NewUpdateScheduleNotFound creates UpdateScheduleNotFound with default headers values
func (*UpdateScheduleNotFound) WriteResponse ¶
func (o *UpdateScheduleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateScheduleParams ¶
type UpdateScheduleParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The id of the item Required: true In: path */ ID int64 /*the schedule to update Required: true In: body */ Schedule *models.Schedule }
UpdateScheduleParams contains all the bound params for the update schedule operation typically these are obtained from a http.Request
swagger:parameters updateSchedule
func NewUpdateScheduleParams ¶
func NewUpdateScheduleParams() UpdateScheduleParams
NewUpdateScheduleParams creates a new UpdateScheduleParams object no default values defined in spec.
func (*UpdateScheduleParams) BindRequest ¶
func (o *UpdateScheduleParams) 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 NewUpdateScheduleParams() beforehand.
type UpdateScheduleURL ¶
type UpdateScheduleURL struct { ID int64 // contains filtered or unexported fields }
UpdateScheduleURL generates an URL for the update schedule operation
func (*UpdateScheduleURL) Build ¶
func (o *UpdateScheduleURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateScheduleURL) BuildFull ¶
func (o *UpdateScheduleURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateScheduleURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateScheduleURL) SetBasePath ¶
func (o *UpdateScheduleURL) 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 (*UpdateScheduleURL) String ¶
func (o *UpdateScheduleURL) String() string
String returns the string representation of the path with query string
func (*UpdateScheduleURL) StringFull ¶
func (o *UpdateScheduleURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateScheduleURL) WithBasePath ¶
func (o *UpdateScheduleURL) WithBasePath(bp string) *UpdateScheduleURL
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
Source Files ¶
- add_schedule.go
- add_schedule_parameters.go
- add_schedule_responses.go
- add_schedule_urlbuilder.go
- delete_schedule.go
- delete_schedule_parameters.go
- delete_schedule_responses.go
- delete_schedule_urlbuilder.go
- get_schedule.go
- get_schedule_parameters.go
- get_schedule_responses.go
- get_schedule_urlbuilder.go
- get_schedules.go
- get_schedules_parameters.go
- get_schedules_responses.go
- get_schedules_urlbuilder.go
- update_schedule.go
- update_schedule_parameters.go
- update_schedule_responses.go
- update_schedule_urlbuilder.go