Documentation ¶
Index ¶
- Constants
- type AddAdmin
- type AddAdminBadRequest
- type AddAdminCreated
- type AddAdminForbidden
- type AddAdminHandler
- type AddAdminHandlerFunc
- type AddAdminInternalServerError
- type AddAdminNotFound
- type AddAdminParams
- type AddAdminURL
- func (o *AddAdminURL) Build() (*url.URL, error)
- func (o *AddAdminURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *AddAdminURL) Must(u *url.URL, err error) *url.URL
- func (o *AddAdminURL) SetBasePath(bp string)
- func (o *AddAdminURL) String() string
- func (o *AddAdminURL) StringFull(scheme, host string) string
- func (o *AddAdminURL) WithBasePath(bp string) *AddAdminURL
- type AddAdminUnauthorized
- type AddCalendar
- type AddCalendarBadRequest
- type AddCalendarCreated
- type AddCalendarForbidden
- type AddCalendarHandler
- type AddCalendarHandlerFunc
- type AddCalendarInternalServerError
- type AddCalendarNotFound
- type AddCalendarParams
- type AddCalendarURL
- func (o *AddCalendarURL) Build() (*url.URL, error)
- func (o *AddCalendarURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *AddCalendarURL) Must(u *url.URL, err error) *url.URL
- func (o *AddCalendarURL) SetBasePath(bp string)
- func (o *AddCalendarURL) String() string
- func (o *AddCalendarURL) StringFull(scheme, host string) string
- func (o *AddCalendarURL) WithBasePath(bp string) *AddCalendarURL
- type AddCalendarUnauthorized
- type AddTutor
- type AddTutorBadRequest
- type AddTutorCreated
- type AddTutorForbidden
- type AddTutorHandler
- type AddTutorHandlerFunc
- type AddTutorInternalServerError
- type AddTutorNotFound
- type AddTutorParams
- type AddTutorURL
- func (o *AddTutorURL) Build() (*url.URL, error)
- func (o *AddTutorURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *AddTutorURL) Must(u *url.URL, err error) *url.URL
- func (o *AddTutorURL) SetBasePath(bp string)
- func (o *AddTutorURL) String() string
- func (o *AddTutorURL) StringFull(scheme, host string) string
- func (o *AddTutorURL) WithBasePath(bp string) *AddTutorURL
- type AddTutorUnauthorized
- type ListRole
- type ListRoleForbidden
- type ListRoleHandler
- type ListRoleHandlerFunc
- type ListRoleInternalServerError
- type ListRoleOK
- type ListRoleParams
- type ListRoleURL
- func (o *ListRoleURL) Build() (*url.URL, error)
- func (o *ListRoleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListRoleURL) Must(u *url.URL, err error) *url.URL
- func (o *ListRoleURL) SetBasePath(bp string)
- func (o *ListRoleURL) String() string
- func (o *ListRoleURL) StringFull(scheme, host string) string
- func (o *ListRoleURL) WithBasePath(bp string) *ListRoleURL
- type ListRoleUnauthorized
- type RemoveAdmin
- type RemoveAdminBadRequest
- type RemoveAdminForbidden
- type RemoveAdminHandler
- type RemoveAdminHandlerFunc
- type RemoveAdminInternalServerError
- type RemoveAdminNoContent
- type RemoveAdminNotFound
- type RemoveAdminParams
- type RemoveAdminURL
- func (o *RemoveAdminURL) Build() (*url.URL, error)
- func (o *RemoveAdminURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *RemoveAdminURL) Must(u *url.URL, err error) *url.URL
- func (o *RemoveAdminURL) SetBasePath(bp string)
- func (o *RemoveAdminURL) String() string
- func (o *RemoveAdminURL) StringFull(scheme, host string) string
- func (o *RemoveAdminURL) WithBasePath(bp string) *RemoveAdminURL
- type RemoveAdminUnauthorized
- type RemoveCalendar
- type RemoveCalendarBadRequest
- type RemoveCalendarForbidden
- type RemoveCalendarHandler
- type RemoveCalendarHandlerFunc
- type RemoveCalendarInternalServerError
- func (o *RemoveCalendarInternalServerError) SetPayload(payload *models.Error)
- func (o *RemoveCalendarInternalServerError) WithPayload(payload *models.Error) *RemoveCalendarInternalServerError
- func (o *RemoveCalendarInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type RemoveCalendarNoContent
- type RemoveCalendarNotFound
- type RemoveCalendarParams
- type RemoveCalendarURL
- func (o *RemoveCalendarURL) Build() (*url.URL, error)
- func (o *RemoveCalendarURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *RemoveCalendarURL) Must(u *url.URL, err error) *url.URL
- func (o *RemoveCalendarURL) SetBasePath(bp string)
- func (o *RemoveCalendarURL) String() string
- func (o *RemoveCalendarURL) StringFull(scheme, host string) string
- func (o *RemoveCalendarURL) WithBasePath(bp string) *RemoveCalendarURL
- type RemoveCalendarUnauthorized
- type RemoveTutor
- type RemoveTutorBadRequest
- type RemoveTutorForbidden
- type RemoveTutorHandler
- type RemoveTutorHandlerFunc
- type RemoveTutorInternalServerError
- type RemoveTutorNoContent
- type RemoveTutorNotFound
- type RemoveTutorParams
- type RemoveTutorURL
- func (o *RemoveTutorURL) Build() (*url.URL, error)
- func (o *RemoveTutorURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *RemoveTutorURL) Must(u *url.URL, err error) *url.URL
- func (o *RemoveTutorURL) SetBasePath(bp string)
- func (o *RemoveTutorURL) String() string
- func (o *RemoveTutorURL) StringFull(scheme, host string) string
- func (o *RemoveTutorURL) WithBasePath(bp string) *RemoveTutorURL
- type RemoveTutorUnauthorized
Constants ¶
const AddAdminBadRequestCode int = 400
AddAdminBadRequestCode is the HTTP code returned for type AddAdminBadRequest
const AddAdminCreatedCode int = 201
AddAdminCreatedCode is the HTTP code returned for type AddAdminCreated
const AddAdminForbiddenCode int = 403
AddAdminForbiddenCode is the HTTP code returned for type AddAdminForbidden
const AddAdminInternalServerErrorCode int = 500
AddAdminInternalServerErrorCode is the HTTP code returned for type AddAdminInternalServerError
const AddAdminNotFoundCode int = 404
AddAdminNotFoundCode is the HTTP code returned for type AddAdminNotFound
AddAdminUnauthorizedCode is the HTTP code returned for type AddAdminUnauthorized
const AddCalendarBadRequestCode int = 400
AddCalendarBadRequestCode is the HTTP code returned for type AddCalendarBadRequest
const AddCalendarCreatedCode int = 201
AddCalendarCreatedCode is the HTTP code returned for type AddCalendarCreated
const AddCalendarForbiddenCode int = 403
AddCalendarForbiddenCode is the HTTP code returned for type AddCalendarForbidden
const AddCalendarInternalServerErrorCode int = 500
AddCalendarInternalServerErrorCode is the HTTP code returned for type AddCalendarInternalServerError
const AddCalendarNotFoundCode int = 404
AddCalendarNotFoundCode is the HTTP code returned for type AddCalendarNotFound
AddCalendarUnauthorizedCode is the HTTP code returned for type AddCalendarUnauthorized
const AddTutorBadRequestCode int = 400
AddTutorBadRequestCode is the HTTP code returned for type AddTutorBadRequest
const AddTutorCreatedCode int = 201
AddTutorCreatedCode is the HTTP code returned for type AddTutorCreated
const AddTutorForbiddenCode int = 403
AddTutorForbiddenCode is the HTTP code returned for type AddTutorForbidden
const AddTutorInternalServerErrorCode int = 500
AddTutorInternalServerErrorCode is the HTTP code returned for type AddTutorInternalServerError
const AddTutorNotFoundCode int = 404
AddTutorNotFoundCode is the HTTP code returned for type AddTutorNotFound
AddTutorUnauthorizedCode is the HTTP code returned for type AddTutorUnauthorized
const ListRoleForbiddenCode int = 403
ListRoleForbiddenCode is the HTTP code returned for type ListRoleForbidden
const ListRoleInternalServerErrorCode int = 500
ListRoleInternalServerErrorCode is the HTTP code returned for type ListRoleInternalServerError
const ListRoleOKCode int = 200
ListRoleOKCode is the HTTP code returned for type ListRoleOK
ListRoleUnauthorizedCode is the HTTP code returned for type ListRoleUnauthorized
const RemoveAdminBadRequestCode int = 400
RemoveAdminBadRequestCode is the HTTP code returned for type RemoveAdminBadRequest
const RemoveAdminForbiddenCode int = 403
RemoveAdminForbiddenCode is the HTTP code returned for type RemoveAdminForbidden
const RemoveAdminInternalServerErrorCode int = 500
RemoveAdminInternalServerErrorCode is the HTTP code returned for type RemoveAdminInternalServerError
const RemoveAdminNoContentCode int = 204
RemoveAdminNoContentCode is the HTTP code returned for type RemoveAdminNoContent
const RemoveAdminNotFoundCode int = 404
RemoveAdminNotFoundCode is the HTTP code returned for type RemoveAdminNotFound
RemoveAdminUnauthorizedCode is the HTTP code returned for type RemoveAdminUnauthorized
const RemoveCalendarBadRequestCode int = 400
RemoveCalendarBadRequestCode is the HTTP code returned for type RemoveCalendarBadRequest
const RemoveCalendarForbiddenCode int = 403
RemoveCalendarForbiddenCode is the HTTP code returned for type RemoveCalendarForbidden
const RemoveCalendarInternalServerErrorCode int = 500
RemoveCalendarInternalServerErrorCode is the HTTP code returned for type RemoveCalendarInternalServerError
const RemoveCalendarNoContentCode int = 204
RemoveCalendarNoContentCode is the HTTP code returned for type RemoveCalendarNoContent
const RemoveCalendarNotFoundCode int = 404
RemoveCalendarNotFoundCode is the HTTP code returned for type RemoveCalendarNotFound
RemoveCalendarUnauthorizedCode is the HTTP code returned for type RemoveCalendarUnauthorized
const RemoveTutorBadRequestCode int = 400
RemoveTutorBadRequestCode is the HTTP code returned for type RemoveTutorBadRequest
const RemoveTutorForbiddenCode int = 403
RemoveTutorForbiddenCode is the HTTP code returned for type RemoveTutorForbidden
const RemoveTutorInternalServerErrorCode int = 500
RemoveTutorInternalServerErrorCode is the HTTP code returned for type RemoveTutorInternalServerError
const RemoveTutorNoContentCode int = 204
RemoveTutorNoContentCode is the HTTP code returned for type RemoveTutorNoContent
const RemoveTutorNotFoundCode int = 404
RemoveTutorNotFoundCode is the HTTP code returned for type RemoveTutorNotFound
RemoveTutorUnauthorizedCode is the HTTP code returned for type RemoveTutorUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddAdmin ¶
type AddAdmin struct { Context *middleware.Context Handler AddAdminHandler }
AddAdmin swagger:route POST /users/{id}/role/admin Role addAdmin
Add admin ¶
Add admin role to a user.
func NewAddAdmin ¶
func NewAddAdmin(ctx *middleware.Context, handler AddAdminHandler) *AddAdmin
NewAddAdmin creates a new http.Handler for the add admin operation
type AddAdminBadRequest ¶
AddAdminBadRequest Bad request
swagger:response addAdminBadRequest
func NewAddAdminBadRequest ¶
func NewAddAdminBadRequest() *AddAdminBadRequest
NewAddAdminBadRequest creates AddAdminBadRequest with default headers values
func (*AddAdminBadRequest) SetPayload ¶
func (o *AddAdminBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the add admin bad request response
func (*AddAdminBadRequest) WithPayload ¶
func (o *AddAdminBadRequest) WithPayload(payload *models.Error) *AddAdminBadRequest
WithPayload adds the payload to the add admin bad request response
func (*AddAdminBadRequest) WriteResponse ¶
func (o *AddAdminBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddAdminCreated ¶
AddAdminCreated Created
swagger:response addAdminCreated
func NewAddAdminCreated ¶
func NewAddAdminCreated() *AddAdminCreated
NewAddAdminCreated creates AddAdminCreated with default headers values
func (*AddAdminCreated) SetPayload ¶
func (o *AddAdminCreated) SetPayload(payload []*ent.Role)
SetPayload sets the payload to the add admin created response
func (*AddAdminCreated) WithPayload ¶
func (o *AddAdminCreated) WithPayload(payload []*ent.Role) *AddAdminCreated
WithPayload adds the payload to the add admin created response
func (*AddAdminCreated) WriteResponse ¶
func (o *AddAdminCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddAdminForbidden ¶
AddAdminForbidden Forbidden
swagger:response addAdminForbidden
func NewAddAdminForbidden ¶
func NewAddAdminForbidden() *AddAdminForbidden
NewAddAdminForbidden creates AddAdminForbidden with default headers values
func (*AddAdminForbidden) SetPayload ¶
func (o *AddAdminForbidden) SetPayload(payload *models.Error)
SetPayload sets the payload to the add admin forbidden response
func (*AddAdminForbidden) WithPayload ¶
func (o *AddAdminForbidden) WithPayload(payload *models.Error) *AddAdminForbidden
WithPayload adds the payload to the add admin forbidden response
func (*AddAdminForbidden) WriteResponse ¶
func (o *AddAdminForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddAdminHandler ¶
type AddAdminHandler interface {
Handle(AddAdminParams, *models.Principal) middleware.Responder
}
AddAdminHandler interface for that can handle valid add admin params
type AddAdminHandlerFunc ¶
type AddAdminHandlerFunc func(AddAdminParams, *models.Principal) middleware.Responder
AddAdminHandlerFunc turns a function with the right signature into a add admin handler
func (AddAdminHandlerFunc) Handle ¶
func (fn AddAdminHandlerFunc) Handle(params AddAdminParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type AddAdminInternalServerError ¶
type AddAdminInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
AddAdminInternalServerError Internal Server Error
swagger:response addAdminInternalServerError
func NewAddAdminInternalServerError ¶
func NewAddAdminInternalServerError() *AddAdminInternalServerError
NewAddAdminInternalServerError creates AddAdminInternalServerError with default headers values
func (*AddAdminInternalServerError) SetPayload ¶
func (o *AddAdminInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the add admin internal server error response
func (*AddAdminInternalServerError) WithPayload ¶
func (o *AddAdminInternalServerError) WithPayload(payload *models.Error) *AddAdminInternalServerError
WithPayload adds the payload to the add admin internal server error response
func (*AddAdminInternalServerError) WriteResponse ¶
func (o *AddAdminInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddAdminNotFound ¶
AddAdminNotFound Not Found
swagger:response addAdminNotFound
func NewAddAdminNotFound ¶
func NewAddAdminNotFound() *AddAdminNotFound
NewAddAdminNotFound creates AddAdminNotFound with default headers values
func (*AddAdminNotFound) SetPayload ¶
func (o *AddAdminNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the add admin not found response
func (*AddAdminNotFound) WithPayload ¶
func (o *AddAdminNotFound) WithPayload(payload *models.Error) *AddAdminNotFound
WithPayload adds the payload to the add admin not found response
func (*AddAdminNotFound) WriteResponse ¶
func (o *AddAdminNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddAdminParams ¶
type AddAdminParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*User ID. Required: true In: path */ ID string }
AddAdminParams contains all the bound params for the add admin operation typically these are obtained from a http.Request
swagger:parameters addAdmin
func NewAddAdminParams ¶
func NewAddAdminParams() AddAdminParams
NewAddAdminParams creates a new AddAdminParams object
There are no default values defined in the spec.
func (*AddAdminParams) BindRequest ¶
func (o *AddAdminParams) 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 NewAddAdminParams() beforehand.
type AddAdminURL ¶
type AddAdminURL struct { ID string // contains filtered or unexported fields }
AddAdminURL generates an URL for the add admin operation
func (*AddAdminURL) Build ¶
func (o *AddAdminURL) Build() (*url.URL, error)
Build a url path and query string
func (*AddAdminURL) BuildFull ¶
func (o *AddAdminURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*AddAdminURL) SetBasePath ¶
func (o *AddAdminURL) 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 (*AddAdminURL) String ¶
func (o *AddAdminURL) String() string
String returns the string representation of the path with query string
func (*AddAdminURL) StringFull ¶
func (o *AddAdminURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*AddAdminURL) WithBasePath ¶
func (o *AddAdminURL) WithBasePath(bp string) *AddAdminURL
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 AddAdminUnauthorized ¶
AddAdminUnauthorized Unauthorized
swagger:response addAdminUnauthorized
func NewAddAdminUnauthorized ¶
func NewAddAdminUnauthorized() *AddAdminUnauthorized
NewAddAdminUnauthorized creates AddAdminUnauthorized with default headers values
func (*AddAdminUnauthorized) SetPayload ¶
func (o *AddAdminUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the add admin unauthorized response
func (*AddAdminUnauthorized) WithPayload ¶
func (o *AddAdminUnauthorized) WithPayload(payload *models.Error) *AddAdminUnauthorized
WithPayload adds the payload to the add admin unauthorized response
func (*AddAdminUnauthorized) WriteResponse ¶
func (o *AddAdminUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddCalendar ¶
type AddCalendar struct { Context *middleware.Context Handler AddCalendarHandler }
AddCalendar swagger:route POST /users/{id}/role/calendar Role addCalendar
Add calendar ¶
Add calendar role to a user.
func NewAddCalendar ¶
func NewAddCalendar(ctx *middleware.Context, handler AddCalendarHandler) *AddCalendar
NewAddCalendar creates a new http.Handler for the add calendar operation
func (*AddCalendar) ServeHTTP ¶
func (o *AddCalendar) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type AddCalendarBadRequest ¶
AddCalendarBadRequest Bad request
swagger:response addCalendarBadRequest
func NewAddCalendarBadRequest ¶
func NewAddCalendarBadRequest() *AddCalendarBadRequest
NewAddCalendarBadRequest creates AddCalendarBadRequest with default headers values
func (*AddCalendarBadRequest) SetPayload ¶
func (o *AddCalendarBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the add calendar bad request response
func (*AddCalendarBadRequest) WithPayload ¶
func (o *AddCalendarBadRequest) WithPayload(payload *models.Error) *AddCalendarBadRequest
WithPayload adds the payload to the add calendar bad request response
func (*AddCalendarBadRequest) WriteResponse ¶
func (o *AddCalendarBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddCalendarCreated ¶
AddCalendarCreated Created
swagger:response addCalendarCreated
func NewAddCalendarCreated ¶
func NewAddCalendarCreated() *AddCalendarCreated
NewAddCalendarCreated creates AddCalendarCreated with default headers values
func (*AddCalendarCreated) SetPayload ¶
func (o *AddCalendarCreated) SetPayload(payload []*ent.Role)
SetPayload sets the payload to the add calendar created response
func (*AddCalendarCreated) WithPayload ¶
func (o *AddCalendarCreated) WithPayload(payload []*ent.Role) *AddCalendarCreated
WithPayload adds the payload to the add calendar created response
func (*AddCalendarCreated) WriteResponse ¶
func (o *AddCalendarCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddCalendarForbidden ¶
AddCalendarForbidden Forbidden
swagger:response addCalendarForbidden
func NewAddCalendarForbidden ¶
func NewAddCalendarForbidden() *AddCalendarForbidden
NewAddCalendarForbidden creates AddCalendarForbidden with default headers values
func (*AddCalendarForbidden) SetPayload ¶
func (o *AddCalendarForbidden) SetPayload(payload *models.Error)
SetPayload sets the payload to the add calendar forbidden response
func (*AddCalendarForbidden) WithPayload ¶
func (o *AddCalendarForbidden) WithPayload(payload *models.Error) *AddCalendarForbidden
WithPayload adds the payload to the add calendar forbidden response
func (*AddCalendarForbidden) WriteResponse ¶
func (o *AddCalendarForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddCalendarHandler ¶
type AddCalendarHandler interface {
Handle(AddCalendarParams, *models.Principal) middleware.Responder
}
AddCalendarHandler interface for that can handle valid add calendar params
type AddCalendarHandlerFunc ¶
type AddCalendarHandlerFunc func(AddCalendarParams, *models.Principal) middleware.Responder
AddCalendarHandlerFunc turns a function with the right signature into a add calendar handler
func (AddCalendarHandlerFunc) Handle ¶
func (fn AddCalendarHandlerFunc) Handle(params AddCalendarParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type AddCalendarInternalServerError ¶
type AddCalendarInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
AddCalendarInternalServerError Internal Server Error
swagger:response addCalendarInternalServerError
func NewAddCalendarInternalServerError ¶
func NewAddCalendarInternalServerError() *AddCalendarInternalServerError
NewAddCalendarInternalServerError creates AddCalendarInternalServerError with default headers values
func (*AddCalendarInternalServerError) SetPayload ¶
func (o *AddCalendarInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the add calendar internal server error response
func (*AddCalendarInternalServerError) WithPayload ¶
func (o *AddCalendarInternalServerError) WithPayload(payload *models.Error) *AddCalendarInternalServerError
WithPayload adds the payload to the add calendar internal server error response
func (*AddCalendarInternalServerError) WriteResponse ¶
func (o *AddCalendarInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddCalendarNotFound ¶
AddCalendarNotFound Not Found
swagger:response addCalendarNotFound
func NewAddCalendarNotFound ¶
func NewAddCalendarNotFound() *AddCalendarNotFound
NewAddCalendarNotFound creates AddCalendarNotFound with default headers values
func (*AddCalendarNotFound) SetPayload ¶
func (o *AddCalendarNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the add calendar not found response
func (*AddCalendarNotFound) WithPayload ¶
func (o *AddCalendarNotFound) WithPayload(payload *models.Error) *AddCalendarNotFound
WithPayload adds the payload to the add calendar not found response
func (*AddCalendarNotFound) WriteResponse ¶
func (o *AddCalendarNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddCalendarParams ¶
type AddCalendarParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*User ID. Required: true In: path */ ID string }
AddCalendarParams contains all the bound params for the add calendar operation typically these are obtained from a http.Request
swagger:parameters addCalendar
func NewAddCalendarParams ¶
func NewAddCalendarParams() AddCalendarParams
NewAddCalendarParams creates a new AddCalendarParams object
There are no default values defined in the spec.
func (*AddCalendarParams) BindRequest ¶
func (o *AddCalendarParams) 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 NewAddCalendarParams() beforehand.
type AddCalendarURL ¶
type AddCalendarURL struct { ID string // contains filtered or unexported fields }
AddCalendarURL generates an URL for the add calendar operation
func (*AddCalendarURL) Build ¶
func (o *AddCalendarURL) Build() (*url.URL, error)
Build a url path and query string
func (*AddCalendarURL) BuildFull ¶
func (o *AddCalendarURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*AddCalendarURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*AddCalendarURL) SetBasePath ¶
func (o *AddCalendarURL) 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 (*AddCalendarURL) String ¶
func (o *AddCalendarURL) String() string
String returns the string representation of the path with query string
func (*AddCalendarURL) StringFull ¶
func (o *AddCalendarURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*AddCalendarURL) WithBasePath ¶
func (o *AddCalendarURL) WithBasePath(bp string) *AddCalendarURL
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 AddCalendarUnauthorized ¶
AddCalendarUnauthorized Unauthorized
swagger:response addCalendarUnauthorized
func NewAddCalendarUnauthorized ¶
func NewAddCalendarUnauthorized() *AddCalendarUnauthorized
NewAddCalendarUnauthorized creates AddCalendarUnauthorized with default headers values
func (*AddCalendarUnauthorized) SetPayload ¶
func (o *AddCalendarUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the add calendar unauthorized response
func (*AddCalendarUnauthorized) WithPayload ¶
func (o *AddCalendarUnauthorized) WithPayload(payload *models.Error) *AddCalendarUnauthorized
WithPayload adds the payload to the add calendar unauthorized response
func (*AddCalendarUnauthorized) WriteResponse ¶
func (o *AddCalendarUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddTutor ¶
type AddTutor struct { Context *middleware.Context Handler AddTutorHandler }
AddTutor swagger:route POST /users/{id}/role/tutor Role addTutor
Add tutor ¶
Add tutor role to a user.
func NewAddTutor ¶
func NewAddTutor(ctx *middleware.Context, handler AddTutorHandler) *AddTutor
NewAddTutor creates a new http.Handler for the add tutor operation
type AddTutorBadRequest ¶
AddTutorBadRequest Bad request
swagger:response addTutorBadRequest
func NewAddTutorBadRequest ¶
func NewAddTutorBadRequest() *AddTutorBadRequest
NewAddTutorBadRequest creates AddTutorBadRequest with default headers values
func (*AddTutorBadRequest) SetPayload ¶
func (o *AddTutorBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the add tutor bad request response
func (*AddTutorBadRequest) WithPayload ¶
func (o *AddTutorBadRequest) WithPayload(payload *models.Error) *AddTutorBadRequest
WithPayload adds the payload to the add tutor bad request response
func (*AddTutorBadRequest) WriteResponse ¶
func (o *AddTutorBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddTutorCreated ¶
AddTutorCreated Created
swagger:response addTutorCreated
func NewAddTutorCreated ¶
func NewAddTutorCreated() *AddTutorCreated
NewAddTutorCreated creates AddTutorCreated with default headers values
func (*AddTutorCreated) SetPayload ¶
func (o *AddTutorCreated) SetPayload(payload []*ent.Role)
SetPayload sets the payload to the add tutor created response
func (*AddTutorCreated) WithPayload ¶
func (o *AddTutorCreated) WithPayload(payload []*ent.Role) *AddTutorCreated
WithPayload adds the payload to the add tutor created response
func (*AddTutorCreated) WriteResponse ¶
func (o *AddTutorCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddTutorForbidden ¶
AddTutorForbidden Forbidden
swagger:response addTutorForbidden
func NewAddTutorForbidden ¶
func NewAddTutorForbidden() *AddTutorForbidden
NewAddTutorForbidden creates AddTutorForbidden with default headers values
func (*AddTutorForbidden) SetPayload ¶
func (o *AddTutorForbidden) SetPayload(payload *models.Error)
SetPayload sets the payload to the add tutor forbidden response
func (*AddTutorForbidden) WithPayload ¶
func (o *AddTutorForbidden) WithPayload(payload *models.Error) *AddTutorForbidden
WithPayload adds the payload to the add tutor forbidden response
func (*AddTutorForbidden) WriteResponse ¶
func (o *AddTutorForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddTutorHandler ¶
type AddTutorHandler interface {
Handle(AddTutorParams, *models.Principal) middleware.Responder
}
AddTutorHandler interface for that can handle valid add tutor params
type AddTutorHandlerFunc ¶
type AddTutorHandlerFunc func(AddTutorParams, *models.Principal) middleware.Responder
AddTutorHandlerFunc turns a function with the right signature into a add tutor handler
func (AddTutorHandlerFunc) Handle ¶
func (fn AddTutorHandlerFunc) Handle(params AddTutorParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type AddTutorInternalServerError ¶
type AddTutorInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
AddTutorInternalServerError Internal Server Error
swagger:response addTutorInternalServerError
func NewAddTutorInternalServerError ¶
func NewAddTutorInternalServerError() *AddTutorInternalServerError
NewAddTutorInternalServerError creates AddTutorInternalServerError with default headers values
func (*AddTutorInternalServerError) SetPayload ¶
func (o *AddTutorInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the add tutor internal server error response
func (*AddTutorInternalServerError) WithPayload ¶
func (o *AddTutorInternalServerError) WithPayload(payload *models.Error) *AddTutorInternalServerError
WithPayload adds the payload to the add tutor internal server error response
func (*AddTutorInternalServerError) WriteResponse ¶
func (o *AddTutorInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddTutorNotFound ¶
AddTutorNotFound Not Found
swagger:response addTutorNotFound
func NewAddTutorNotFound ¶
func NewAddTutorNotFound() *AddTutorNotFound
NewAddTutorNotFound creates AddTutorNotFound with default headers values
func (*AddTutorNotFound) SetPayload ¶
func (o *AddTutorNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the add tutor not found response
func (*AddTutorNotFound) WithPayload ¶
func (o *AddTutorNotFound) WithPayload(payload *models.Error) *AddTutorNotFound
WithPayload adds the payload to the add tutor not found response
func (*AddTutorNotFound) WriteResponse ¶
func (o *AddTutorNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddTutorParams ¶
type AddTutorParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*User ID. Required: true In: path */ ID string }
AddTutorParams contains all the bound params for the add tutor operation typically these are obtained from a http.Request
swagger:parameters addTutor
func NewAddTutorParams ¶
func NewAddTutorParams() AddTutorParams
NewAddTutorParams creates a new AddTutorParams object
There are no default values defined in the spec.
func (*AddTutorParams) BindRequest ¶
func (o *AddTutorParams) 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 NewAddTutorParams() beforehand.
type AddTutorURL ¶
type AddTutorURL struct { ID string // contains filtered or unexported fields }
AddTutorURL generates an URL for the add tutor operation
func (*AddTutorURL) Build ¶
func (o *AddTutorURL) Build() (*url.URL, error)
Build a url path and query string
func (*AddTutorURL) BuildFull ¶
func (o *AddTutorURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*AddTutorURL) SetBasePath ¶
func (o *AddTutorURL) 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 (*AddTutorURL) String ¶
func (o *AddTutorURL) String() string
String returns the string representation of the path with query string
func (*AddTutorURL) StringFull ¶
func (o *AddTutorURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*AddTutorURL) WithBasePath ¶
func (o *AddTutorURL) WithBasePath(bp string) *AddTutorURL
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 AddTutorUnauthorized ¶
AddTutorUnauthorized Unauthorized
swagger:response addTutorUnauthorized
func NewAddTutorUnauthorized ¶
func NewAddTutorUnauthorized() *AddTutorUnauthorized
NewAddTutorUnauthorized creates AddTutorUnauthorized with default headers values
func (*AddTutorUnauthorized) SetPayload ¶
func (o *AddTutorUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the add tutor unauthorized response
func (*AddTutorUnauthorized) WithPayload ¶
func (o *AddTutorUnauthorized) WithPayload(payload *models.Error) *AddTutorUnauthorized
WithPayload adds the payload to the add tutor unauthorized response
func (*AddTutorUnauthorized) WriteResponse ¶
func (o *AddTutorUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListRole ¶
type ListRole struct { Context *middleware.Context Handler ListRoleHandler }
ListRole swagger:route GET /users/roles Role listRole
List roles ¶
List all roles.
func NewListRole ¶
func NewListRole(ctx *middleware.Context, handler ListRoleHandler) *ListRole
NewListRole creates a new http.Handler for the list role operation
type ListRoleForbidden ¶
ListRoleForbidden Unauthorized
swagger:response listRoleForbidden
func NewListRoleForbidden ¶
func NewListRoleForbidden() *ListRoleForbidden
NewListRoleForbidden creates ListRoleForbidden with default headers values
func (*ListRoleForbidden) SetPayload ¶
func (o *ListRoleForbidden) SetPayload(payload *models.Error)
SetPayload sets the payload to the list role forbidden response
func (*ListRoleForbidden) WithPayload ¶
func (o *ListRoleForbidden) WithPayload(payload *models.Error) *ListRoleForbidden
WithPayload adds the payload to the list role forbidden response
func (*ListRoleForbidden) WriteResponse ¶
func (o *ListRoleForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListRoleHandler ¶
type ListRoleHandler interface {
Handle(ListRoleParams, *models.Principal) middleware.Responder
}
ListRoleHandler interface for that can handle valid list role params
type ListRoleHandlerFunc ¶
type ListRoleHandlerFunc func(ListRoleParams, *models.Principal) middleware.Responder
ListRoleHandlerFunc turns a function with the right signature into a list role handler
func (ListRoleHandlerFunc) Handle ¶
func (fn ListRoleHandlerFunc) Handle(params ListRoleParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type ListRoleInternalServerError ¶
type ListRoleInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
ListRoleInternalServerError Internal Server Error
swagger:response listRoleInternalServerError
func NewListRoleInternalServerError ¶
func NewListRoleInternalServerError() *ListRoleInternalServerError
NewListRoleInternalServerError creates ListRoleInternalServerError with default headers values
func (*ListRoleInternalServerError) SetPayload ¶
func (o *ListRoleInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the list role internal server error response
func (*ListRoleInternalServerError) WithPayload ¶
func (o *ListRoleInternalServerError) WithPayload(payload *models.Error) *ListRoleInternalServerError
WithPayload adds the payload to the list role internal server error response
func (*ListRoleInternalServerError) WriteResponse ¶
func (o *ListRoleInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListRoleOK ¶
ListRoleOK OK
swagger:response listRoleOK
func NewListRoleOK ¶
func NewListRoleOK() *ListRoleOK
NewListRoleOK creates ListRoleOK with default headers values
func (*ListRoleOK) SetPayload ¶
func (o *ListRoleOK) SetPayload(payload []*ent.Role)
SetPayload sets the payload to the list role o k response
func (*ListRoleOK) WithPayload ¶
func (o *ListRoleOK) WithPayload(payload []*ent.Role) *ListRoleOK
WithPayload adds the payload to the list role o k response
func (*ListRoleOK) WriteResponse ¶
func (o *ListRoleOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListRoleParams ¶
ListRoleParams contains all the bound params for the list role operation typically these are obtained from a http.Request
swagger:parameters listRole
func NewListRoleParams ¶
func NewListRoleParams() ListRoleParams
NewListRoleParams creates a new ListRoleParams object
There are no default values defined in the spec.
func (*ListRoleParams) BindRequest ¶
func (o *ListRoleParams) 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 NewListRoleParams() beforehand.
type ListRoleURL ¶
type ListRoleURL struct {
// contains filtered or unexported fields
}
ListRoleURL generates an URL for the list role operation
func (*ListRoleURL) Build ¶
func (o *ListRoleURL) Build() (*url.URL, error)
Build a url path and query string
func (*ListRoleURL) BuildFull ¶
func (o *ListRoleURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ListRoleURL) SetBasePath ¶
func (o *ListRoleURL) 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 (*ListRoleURL) String ¶
func (o *ListRoleURL) String() string
String returns the string representation of the path with query string
func (*ListRoleURL) StringFull ¶
func (o *ListRoleURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ListRoleURL) WithBasePath ¶
func (o *ListRoleURL) WithBasePath(bp string) *ListRoleURL
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 ListRoleUnauthorized ¶
ListRoleUnauthorized Unauthorized
swagger:response listRoleUnauthorized
func NewListRoleUnauthorized ¶
func NewListRoleUnauthorized() *ListRoleUnauthorized
NewListRoleUnauthorized creates ListRoleUnauthorized with default headers values
func (*ListRoleUnauthorized) SetPayload ¶
func (o *ListRoleUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the list role unauthorized response
func (*ListRoleUnauthorized) WithPayload ¶
func (o *ListRoleUnauthorized) WithPayload(payload *models.Error) *ListRoleUnauthorized
WithPayload adds the payload to the list role unauthorized response
func (*ListRoleUnauthorized) WriteResponse ¶
func (o *ListRoleUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RemoveAdmin ¶
type RemoveAdmin struct { Context *middleware.Context Handler RemoveAdminHandler }
RemoveAdmin swagger:route DELETE /users/{id}/role/admin Role removeAdmin
Remove admin ¶
Remove admin role to a user.
func NewRemoveAdmin ¶
func NewRemoveAdmin(ctx *middleware.Context, handler RemoveAdminHandler) *RemoveAdmin
NewRemoveAdmin creates a new http.Handler for the remove admin operation
func (*RemoveAdmin) ServeHTTP ¶
func (o *RemoveAdmin) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type RemoveAdminBadRequest ¶
RemoveAdminBadRequest Bad request
swagger:response removeAdminBadRequest
func NewRemoveAdminBadRequest ¶
func NewRemoveAdminBadRequest() *RemoveAdminBadRequest
NewRemoveAdminBadRequest creates RemoveAdminBadRequest with default headers values
func (*RemoveAdminBadRequest) SetPayload ¶
func (o *RemoveAdminBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the remove admin bad request response
func (*RemoveAdminBadRequest) WithPayload ¶
func (o *RemoveAdminBadRequest) WithPayload(payload *models.Error) *RemoveAdminBadRequest
WithPayload adds the payload to the remove admin bad request response
func (*RemoveAdminBadRequest) WriteResponse ¶
func (o *RemoveAdminBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RemoveAdminForbidden ¶
RemoveAdminForbidden Forbidden
swagger:response removeAdminForbidden
func NewRemoveAdminForbidden ¶
func NewRemoveAdminForbidden() *RemoveAdminForbidden
NewRemoveAdminForbidden creates RemoveAdminForbidden with default headers values
func (*RemoveAdminForbidden) SetPayload ¶
func (o *RemoveAdminForbidden) SetPayload(payload *models.Error)
SetPayload sets the payload to the remove admin forbidden response
func (*RemoveAdminForbidden) WithPayload ¶
func (o *RemoveAdminForbidden) WithPayload(payload *models.Error) *RemoveAdminForbidden
WithPayload adds the payload to the remove admin forbidden response
func (*RemoveAdminForbidden) WriteResponse ¶
func (o *RemoveAdminForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RemoveAdminHandler ¶
type RemoveAdminHandler interface {
Handle(RemoveAdminParams, *models.Principal) middleware.Responder
}
RemoveAdminHandler interface for that can handle valid remove admin params
type RemoveAdminHandlerFunc ¶
type RemoveAdminHandlerFunc func(RemoveAdminParams, *models.Principal) middleware.Responder
RemoveAdminHandlerFunc turns a function with the right signature into a remove admin handler
func (RemoveAdminHandlerFunc) Handle ¶
func (fn RemoveAdminHandlerFunc) Handle(params RemoveAdminParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type RemoveAdminInternalServerError ¶
type RemoveAdminInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
RemoveAdminInternalServerError Internal Server Error
swagger:response removeAdminInternalServerError
func NewRemoveAdminInternalServerError ¶
func NewRemoveAdminInternalServerError() *RemoveAdminInternalServerError
NewRemoveAdminInternalServerError creates RemoveAdminInternalServerError with default headers values
func (*RemoveAdminInternalServerError) SetPayload ¶
func (o *RemoveAdminInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the remove admin internal server error response
func (*RemoveAdminInternalServerError) WithPayload ¶
func (o *RemoveAdminInternalServerError) WithPayload(payload *models.Error) *RemoveAdminInternalServerError
WithPayload adds the payload to the remove admin internal server error response
func (*RemoveAdminInternalServerError) WriteResponse ¶
func (o *RemoveAdminInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RemoveAdminNoContent ¶
type RemoveAdminNoContent struct { }
RemoveAdminNoContent No Content
swagger:response removeAdminNoContent
func NewRemoveAdminNoContent ¶
func NewRemoveAdminNoContent() *RemoveAdminNoContent
NewRemoveAdminNoContent creates RemoveAdminNoContent with default headers values
func (*RemoveAdminNoContent) WriteResponse ¶
func (o *RemoveAdminNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RemoveAdminNotFound ¶
RemoveAdminNotFound Not Found
swagger:response removeAdminNotFound
func NewRemoveAdminNotFound ¶
func NewRemoveAdminNotFound() *RemoveAdminNotFound
NewRemoveAdminNotFound creates RemoveAdminNotFound with default headers values
func (*RemoveAdminNotFound) SetPayload ¶
func (o *RemoveAdminNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the remove admin not found response
func (*RemoveAdminNotFound) WithPayload ¶
func (o *RemoveAdminNotFound) WithPayload(payload *models.Error) *RemoveAdminNotFound
WithPayload adds the payload to the remove admin not found response
func (*RemoveAdminNotFound) WriteResponse ¶
func (o *RemoveAdminNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RemoveAdminParams ¶
type RemoveAdminParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*User ID. Required: true In: path */ ID string }
RemoveAdminParams contains all the bound params for the remove admin operation typically these are obtained from a http.Request
swagger:parameters removeAdmin
func NewRemoveAdminParams ¶
func NewRemoveAdminParams() RemoveAdminParams
NewRemoveAdminParams creates a new RemoveAdminParams object
There are no default values defined in the spec.
func (*RemoveAdminParams) BindRequest ¶
func (o *RemoveAdminParams) 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 NewRemoveAdminParams() beforehand.
type RemoveAdminURL ¶
type RemoveAdminURL struct { ID string // contains filtered or unexported fields }
RemoveAdminURL generates an URL for the remove admin operation
func (*RemoveAdminURL) Build ¶
func (o *RemoveAdminURL) Build() (*url.URL, error)
Build a url path and query string
func (*RemoveAdminURL) BuildFull ¶
func (o *RemoveAdminURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*RemoveAdminURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*RemoveAdminURL) SetBasePath ¶
func (o *RemoveAdminURL) 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 (*RemoveAdminURL) String ¶
func (o *RemoveAdminURL) String() string
String returns the string representation of the path with query string
func (*RemoveAdminURL) StringFull ¶
func (o *RemoveAdminURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*RemoveAdminURL) WithBasePath ¶
func (o *RemoveAdminURL) WithBasePath(bp string) *RemoveAdminURL
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 RemoveAdminUnauthorized ¶
RemoveAdminUnauthorized Unauthorized
swagger:response removeAdminUnauthorized
func NewRemoveAdminUnauthorized ¶
func NewRemoveAdminUnauthorized() *RemoveAdminUnauthorized
NewRemoveAdminUnauthorized creates RemoveAdminUnauthorized with default headers values
func (*RemoveAdminUnauthorized) SetPayload ¶
func (o *RemoveAdminUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the remove admin unauthorized response
func (*RemoveAdminUnauthorized) WithPayload ¶
func (o *RemoveAdminUnauthorized) WithPayload(payload *models.Error) *RemoveAdminUnauthorized
WithPayload adds the payload to the remove admin unauthorized response
func (*RemoveAdminUnauthorized) WriteResponse ¶
func (o *RemoveAdminUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RemoveCalendar ¶
type RemoveCalendar struct { Context *middleware.Context Handler RemoveCalendarHandler }
RemoveCalendar swagger:route DELETE /users/{id}/role/calendar Role removeCalendar
Remove calendar ¶
Remove calendar role to a user.
func NewRemoveCalendar ¶
func NewRemoveCalendar(ctx *middleware.Context, handler RemoveCalendarHandler) *RemoveCalendar
NewRemoveCalendar creates a new http.Handler for the remove calendar operation
func (*RemoveCalendar) ServeHTTP ¶
func (o *RemoveCalendar) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type RemoveCalendarBadRequest ¶
type RemoveCalendarBadRequest struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
RemoveCalendarBadRequest Bad request
swagger:response removeCalendarBadRequest
func NewRemoveCalendarBadRequest ¶
func NewRemoveCalendarBadRequest() *RemoveCalendarBadRequest
NewRemoveCalendarBadRequest creates RemoveCalendarBadRequest with default headers values
func (*RemoveCalendarBadRequest) SetPayload ¶
func (o *RemoveCalendarBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the remove calendar bad request response
func (*RemoveCalendarBadRequest) WithPayload ¶
func (o *RemoveCalendarBadRequest) WithPayload(payload *models.Error) *RemoveCalendarBadRequest
WithPayload adds the payload to the remove calendar bad request response
func (*RemoveCalendarBadRequest) WriteResponse ¶
func (o *RemoveCalendarBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RemoveCalendarForbidden ¶
type RemoveCalendarForbidden struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
RemoveCalendarForbidden Forbidden
swagger:response removeCalendarForbidden
func NewRemoveCalendarForbidden ¶
func NewRemoveCalendarForbidden() *RemoveCalendarForbidden
NewRemoveCalendarForbidden creates RemoveCalendarForbidden with default headers values
func (*RemoveCalendarForbidden) SetPayload ¶
func (o *RemoveCalendarForbidden) SetPayload(payload *models.Error)
SetPayload sets the payload to the remove calendar forbidden response
func (*RemoveCalendarForbidden) WithPayload ¶
func (o *RemoveCalendarForbidden) WithPayload(payload *models.Error) *RemoveCalendarForbidden
WithPayload adds the payload to the remove calendar forbidden response
func (*RemoveCalendarForbidden) WriteResponse ¶
func (o *RemoveCalendarForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RemoveCalendarHandler ¶
type RemoveCalendarHandler interface {
Handle(RemoveCalendarParams, *models.Principal) middleware.Responder
}
RemoveCalendarHandler interface for that can handle valid remove calendar params
type RemoveCalendarHandlerFunc ¶
type RemoveCalendarHandlerFunc func(RemoveCalendarParams, *models.Principal) middleware.Responder
RemoveCalendarHandlerFunc turns a function with the right signature into a remove calendar handler
func (RemoveCalendarHandlerFunc) Handle ¶
func (fn RemoveCalendarHandlerFunc) Handle(params RemoveCalendarParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type RemoveCalendarInternalServerError ¶
type RemoveCalendarInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
RemoveCalendarInternalServerError Internal Server Error
swagger:response removeCalendarInternalServerError
func NewRemoveCalendarInternalServerError ¶
func NewRemoveCalendarInternalServerError() *RemoveCalendarInternalServerError
NewRemoveCalendarInternalServerError creates RemoveCalendarInternalServerError with default headers values
func (*RemoveCalendarInternalServerError) SetPayload ¶
func (o *RemoveCalendarInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the remove calendar internal server error response
func (*RemoveCalendarInternalServerError) WithPayload ¶
func (o *RemoveCalendarInternalServerError) WithPayload(payload *models.Error) *RemoveCalendarInternalServerError
WithPayload adds the payload to the remove calendar internal server error response
func (*RemoveCalendarInternalServerError) WriteResponse ¶
func (o *RemoveCalendarInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RemoveCalendarNoContent ¶
type RemoveCalendarNoContent struct { }
RemoveCalendarNoContent No Content
swagger:response removeCalendarNoContent
func NewRemoveCalendarNoContent ¶
func NewRemoveCalendarNoContent() *RemoveCalendarNoContent
NewRemoveCalendarNoContent creates RemoveCalendarNoContent with default headers values
func (*RemoveCalendarNoContent) WriteResponse ¶
func (o *RemoveCalendarNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RemoveCalendarNotFound ¶
RemoveCalendarNotFound Not Found
swagger:response removeCalendarNotFound
func NewRemoveCalendarNotFound ¶
func NewRemoveCalendarNotFound() *RemoveCalendarNotFound
NewRemoveCalendarNotFound creates RemoveCalendarNotFound with default headers values
func (*RemoveCalendarNotFound) SetPayload ¶
func (o *RemoveCalendarNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the remove calendar not found response
func (*RemoveCalendarNotFound) WithPayload ¶
func (o *RemoveCalendarNotFound) WithPayload(payload *models.Error) *RemoveCalendarNotFound
WithPayload adds the payload to the remove calendar not found response
func (*RemoveCalendarNotFound) WriteResponse ¶
func (o *RemoveCalendarNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RemoveCalendarParams ¶
type RemoveCalendarParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*User ID. Required: true In: path */ ID string }
RemoveCalendarParams contains all the bound params for the remove calendar operation typically these are obtained from a http.Request
swagger:parameters removeCalendar
func NewRemoveCalendarParams ¶
func NewRemoveCalendarParams() RemoveCalendarParams
NewRemoveCalendarParams creates a new RemoveCalendarParams object
There are no default values defined in the spec.
func (*RemoveCalendarParams) BindRequest ¶
func (o *RemoveCalendarParams) 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 NewRemoveCalendarParams() beforehand.
type RemoveCalendarURL ¶
type RemoveCalendarURL struct { ID string // contains filtered or unexported fields }
RemoveCalendarURL generates an URL for the remove calendar operation
func (*RemoveCalendarURL) Build ¶
func (o *RemoveCalendarURL) Build() (*url.URL, error)
Build a url path and query string
func (*RemoveCalendarURL) BuildFull ¶
func (o *RemoveCalendarURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*RemoveCalendarURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*RemoveCalendarURL) SetBasePath ¶
func (o *RemoveCalendarURL) 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 (*RemoveCalendarURL) String ¶
func (o *RemoveCalendarURL) String() string
String returns the string representation of the path with query string
func (*RemoveCalendarURL) StringFull ¶
func (o *RemoveCalendarURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*RemoveCalendarURL) WithBasePath ¶
func (o *RemoveCalendarURL) WithBasePath(bp string) *RemoveCalendarURL
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 RemoveCalendarUnauthorized ¶
RemoveCalendarUnauthorized Unauthorized
swagger:response removeCalendarUnauthorized
func NewRemoveCalendarUnauthorized ¶
func NewRemoveCalendarUnauthorized() *RemoveCalendarUnauthorized
NewRemoveCalendarUnauthorized creates RemoveCalendarUnauthorized with default headers values
func (*RemoveCalendarUnauthorized) SetPayload ¶
func (o *RemoveCalendarUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the remove calendar unauthorized response
func (*RemoveCalendarUnauthorized) WithPayload ¶
func (o *RemoveCalendarUnauthorized) WithPayload(payload *models.Error) *RemoveCalendarUnauthorized
WithPayload adds the payload to the remove calendar unauthorized response
func (*RemoveCalendarUnauthorized) WriteResponse ¶
func (o *RemoveCalendarUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RemoveTutor ¶
type RemoveTutor struct { Context *middleware.Context Handler RemoveTutorHandler }
RemoveTutor swagger:route DELETE /users/{id}/role/tutor Role removeTutor
Remove tutor ¶
Remove tutor role to a user.
func NewRemoveTutor ¶
func NewRemoveTutor(ctx *middleware.Context, handler RemoveTutorHandler) *RemoveTutor
NewRemoveTutor creates a new http.Handler for the remove tutor operation
func (*RemoveTutor) ServeHTTP ¶
func (o *RemoveTutor) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type RemoveTutorBadRequest ¶
RemoveTutorBadRequest Bad request
swagger:response removeTutorBadRequest
func NewRemoveTutorBadRequest ¶
func NewRemoveTutorBadRequest() *RemoveTutorBadRequest
NewRemoveTutorBadRequest creates RemoveTutorBadRequest with default headers values
func (*RemoveTutorBadRequest) SetPayload ¶
func (o *RemoveTutorBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the remove tutor bad request response
func (*RemoveTutorBadRequest) WithPayload ¶
func (o *RemoveTutorBadRequest) WithPayload(payload *models.Error) *RemoveTutorBadRequest
WithPayload adds the payload to the remove tutor bad request response
func (*RemoveTutorBadRequest) WriteResponse ¶
func (o *RemoveTutorBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RemoveTutorForbidden ¶
RemoveTutorForbidden Forbidden
swagger:response removeTutorForbidden
func NewRemoveTutorForbidden ¶
func NewRemoveTutorForbidden() *RemoveTutorForbidden
NewRemoveTutorForbidden creates RemoveTutorForbidden with default headers values
func (*RemoveTutorForbidden) SetPayload ¶
func (o *RemoveTutorForbidden) SetPayload(payload *models.Error)
SetPayload sets the payload to the remove tutor forbidden response
func (*RemoveTutorForbidden) WithPayload ¶
func (o *RemoveTutorForbidden) WithPayload(payload *models.Error) *RemoveTutorForbidden
WithPayload adds the payload to the remove tutor forbidden response
func (*RemoveTutorForbidden) WriteResponse ¶
func (o *RemoveTutorForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RemoveTutorHandler ¶
type RemoveTutorHandler interface {
Handle(RemoveTutorParams, *models.Principal) middleware.Responder
}
RemoveTutorHandler interface for that can handle valid remove tutor params
type RemoveTutorHandlerFunc ¶
type RemoveTutorHandlerFunc func(RemoveTutorParams, *models.Principal) middleware.Responder
RemoveTutorHandlerFunc turns a function with the right signature into a remove tutor handler
func (RemoveTutorHandlerFunc) Handle ¶
func (fn RemoveTutorHandlerFunc) Handle(params RemoveTutorParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type RemoveTutorInternalServerError ¶
type RemoveTutorInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
RemoveTutorInternalServerError Internal Server Error
swagger:response removeTutorInternalServerError
func NewRemoveTutorInternalServerError ¶
func NewRemoveTutorInternalServerError() *RemoveTutorInternalServerError
NewRemoveTutorInternalServerError creates RemoveTutorInternalServerError with default headers values
func (*RemoveTutorInternalServerError) SetPayload ¶
func (o *RemoveTutorInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the remove tutor internal server error response
func (*RemoveTutorInternalServerError) WithPayload ¶
func (o *RemoveTutorInternalServerError) WithPayload(payload *models.Error) *RemoveTutorInternalServerError
WithPayload adds the payload to the remove tutor internal server error response
func (*RemoveTutorInternalServerError) WriteResponse ¶
func (o *RemoveTutorInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RemoveTutorNoContent ¶
type RemoveTutorNoContent struct { }
RemoveTutorNoContent No Content
swagger:response removeTutorNoContent
func NewRemoveTutorNoContent ¶
func NewRemoveTutorNoContent() *RemoveTutorNoContent
NewRemoveTutorNoContent creates RemoveTutorNoContent with default headers values
func (*RemoveTutorNoContent) WriteResponse ¶
func (o *RemoveTutorNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RemoveTutorNotFound ¶
RemoveTutorNotFound Not Found
swagger:response removeTutorNotFound
func NewRemoveTutorNotFound ¶
func NewRemoveTutorNotFound() *RemoveTutorNotFound
NewRemoveTutorNotFound creates RemoveTutorNotFound with default headers values
func (*RemoveTutorNotFound) SetPayload ¶
func (o *RemoveTutorNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the remove tutor not found response
func (*RemoveTutorNotFound) WithPayload ¶
func (o *RemoveTutorNotFound) WithPayload(payload *models.Error) *RemoveTutorNotFound
WithPayload adds the payload to the remove tutor not found response
func (*RemoveTutorNotFound) WriteResponse ¶
func (o *RemoveTutorNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RemoveTutorParams ¶
type RemoveTutorParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*User ID. Required: true In: path */ ID string }
RemoveTutorParams contains all the bound params for the remove tutor operation typically these are obtained from a http.Request
swagger:parameters removeTutor
func NewRemoveTutorParams ¶
func NewRemoveTutorParams() RemoveTutorParams
NewRemoveTutorParams creates a new RemoveTutorParams object
There are no default values defined in the spec.
func (*RemoveTutorParams) BindRequest ¶
func (o *RemoveTutorParams) 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 NewRemoveTutorParams() beforehand.
type RemoveTutorURL ¶
type RemoveTutorURL struct { ID string // contains filtered or unexported fields }
RemoveTutorURL generates an URL for the remove tutor operation
func (*RemoveTutorURL) Build ¶
func (o *RemoveTutorURL) Build() (*url.URL, error)
Build a url path and query string
func (*RemoveTutorURL) BuildFull ¶
func (o *RemoveTutorURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*RemoveTutorURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*RemoveTutorURL) SetBasePath ¶
func (o *RemoveTutorURL) 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 (*RemoveTutorURL) String ¶
func (o *RemoveTutorURL) String() string
String returns the string representation of the path with query string
func (*RemoveTutorURL) StringFull ¶
func (o *RemoveTutorURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*RemoveTutorURL) WithBasePath ¶
func (o *RemoveTutorURL) WithBasePath(bp string) *RemoveTutorURL
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 RemoveTutorUnauthorized ¶
RemoveTutorUnauthorized Unauthorized
swagger:response removeTutorUnauthorized
func NewRemoveTutorUnauthorized ¶
func NewRemoveTutorUnauthorized() *RemoveTutorUnauthorized
NewRemoveTutorUnauthorized creates RemoveTutorUnauthorized with default headers values
func (*RemoveTutorUnauthorized) SetPayload ¶
func (o *RemoveTutorUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the remove tutor unauthorized response
func (*RemoveTutorUnauthorized) WithPayload ¶
func (o *RemoveTutorUnauthorized) WithPayload(payload *models.Error) *RemoveTutorUnauthorized
WithPayload adds the payload to the remove tutor unauthorized response
func (*RemoveTutorUnauthorized) WriteResponse ¶
func (o *RemoveTutorUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
Source Files ¶
- add_admin.go
- add_admin_parameters.go
- add_admin_responses.go
- add_admin_urlbuilder.go
- add_calendar.go
- add_calendar_parameters.go
- add_calendar_responses.go
- add_calendar_urlbuilder.go
- add_tutor.go
- add_tutor_parameters.go
- add_tutor_responses.go
- add_tutor_urlbuilder.go
- list_role.go
- list_role_parameters.go
- list_role_responses.go
- list_role_urlbuilder.go
- remove_admin.go
- remove_admin_parameters.go
- remove_admin_responses.go
- remove_admin_urlbuilder.go
- remove_calendar.go
- remove_calendar_parameters.go
- remove_calendar_responses.go
- remove_calendar_urlbuilder.go
- remove_tutor.go
- remove_tutor_parameters.go
- remove_tutor_responses.go
- remove_tutor_urlbuilder.go