role

package
v0.0.0-...-b394ddd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const AddAdminBadRequestCode int = 400

AddAdminBadRequestCode is the HTTP code returned for type AddAdminBadRequest

View Source
const AddAdminCreatedCode int = 201

AddAdminCreatedCode is the HTTP code returned for type AddAdminCreated

View Source
const AddAdminForbiddenCode int = 403

AddAdminForbiddenCode is the HTTP code returned for type AddAdminForbidden

View Source
const AddAdminInternalServerErrorCode int = 500

AddAdminInternalServerErrorCode is the HTTP code returned for type AddAdminInternalServerError

View Source
const AddAdminNotFoundCode int = 404

AddAdminNotFoundCode is the HTTP code returned for type AddAdminNotFound

View Source
const AddAdminUnauthorizedCode int = 401

AddAdminUnauthorizedCode is the HTTP code returned for type AddAdminUnauthorized

View Source
const AddCalendarBadRequestCode int = 400

AddCalendarBadRequestCode is the HTTP code returned for type AddCalendarBadRequest

View Source
const AddCalendarCreatedCode int = 201

AddCalendarCreatedCode is the HTTP code returned for type AddCalendarCreated

View Source
const AddCalendarForbiddenCode int = 403

AddCalendarForbiddenCode is the HTTP code returned for type AddCalendarForbidden

View Source
const AddCalendarInternalServerErrorCode int = 500

AddCalendarInternalServerErrorCode is the HTTP code returned for type AddCalendarInternalServerError

View Source
const AddCalendarNotFoundCode int = 404

AddCalendarNotFoundCode is the HTTP code returned for type AddCalendarNotFound

View Source
const AddCalendarUnauthorizedCode int = 401

AddCalendarUnauthorizedCode is the HTTP code returned for type AddCalendarUnauthorized

View Source
const AddTutorBadRequestCode int = 400

AddTutorBadRequestCode is the HTTP code returned for type AddTutorBadRequest

View Source
const AddTutorCreatedCode int = 201

AddTutorCreatedCode is the HTTP code returned for type AddTutorCreated

View Source
const AddTutorForbiddenCode int = 403

AddTutorForbiddenCode is the HTTP code returned for type AddTutorForbidden

View Source
const AddTutorInternalServerErrorCode int = 500

AddTutorInternalServerErrorCode is the HTTP code returned for type AddTutorInternalServerError

View Source
const AddTutorNotFoundCode int = 404

AddTutorNotFoundCode is the HTTP code returned for type AddTutorNotFound

View Source
const AddTutorUnauthorizedCode int = 401

AddTutorUnauthorizedCode is the HTTP code returned for type AddTutorUnauthorized

View Source
const ListRoleForbiddenCode int = 403

ListRoleForbiddenCode is the HTTP code returned for type ListRoleForbidden

View Source
const ListRoleInternalServerErrorCode int = 500

ListRoleInternalServerErrorCode is the HTTP code returned for type ListRoleInternalServerError

View Source
const ListRoleOKCode int = 200

ListRoleOKCode is the HTTP code returned for type ListRoleOK

View Source
const ListRoleUnauthorizedCode int = 401

ListRoleUnauthorizedCode is the HTTP code returned for type ListRoleUnauthorized

View Source
const RemoveAdminBadRequestCode int = 400

RemoveAdminBadRequestCode is the HTTP code returned for type RemoveAdminBadRequest

View Source
const RemoveAdminForbiddenCode int = 403

RemoveAdminForbiddenCode is the HTTP code returned for type RemoveAdminForbidden

View Source
const RemoveAdminInternalServerErrorCode int = 500

RemoveAdminInternalServerErrorCode is the HTTP code returned for type RemoveAdminInternalServerError

View Source
const RemoveAdminNoContentCode int = 204

RemoveAdminNoContentCode is the HTTP code returned for type RemoveAdminNoContent

View Source
const RemoveAdminNotFoundCode int = 404

RemoveAdminNotFoundCode is the HTTP code returned for type RemoveAdminNotFound

View Source
const RemoveAdminUnauthorizedCode int = 401

RemoveAdminUnauthorizedCode is the HTTP code returned for type RemoveAdminUnauthorized

View Source
const RemoveCalendarBadRequestCode int = 400

RemoveCalendarBadRequestCode is the HTTP code returned for type RemoveCalendarBadRequest

View Source
const RemoveCalendarForbiddenCode int = 403

RemoveCalendarForbiddenCode is the HTTP code returned for type RemoveCalendarForbidden

View Source
const RemoveCalendarInternalServerErrorCode int = 500

RemoveCalendarInternalServerErrorCode is the HTTP code returned for type RemoveCalendarInternalServerError

View Source
const RemoveCalendarNoContentCode int = 204

RemoveCalendarNoContentCode is the HTTP code returned for type RemoveCalendarNoContent

View Source
const RemoveCalendarNotFoundCode int = 404

RemoveCalendarNotFoundCode is the HTTP code returned for type RemoveCalendarNotFound

View Source
const RemoveCalendarUnauthorizedCode int = 401

RemoveCalendarUnauthorizedCode is the HTTP code returned for type RemoveCalendarUnauthorized

View Source
const RemoveTutorBadRequestCode int = 400

RemoveTutorBadRequestCode is the HTTP code returned for type RemoveTutorBadRequest

View Source
const RemoveTutorForbiddenCode int = 403

RemoveTutorForbiddenCode is the HTTP code returned for type RemoveTutorForbidden

View Source
const RemoveTutorInternalServerErrorCode int = 500

RemoveTutorInternalServerErrorCode is the HTTP code returned for type RemoveTutorInternalServerError

View Source
const RemoveTutorNoContentCode int = 204

RemoveTutorNoContentCode is the HTTP code returned for type RemoveTutorNoContent

View Source
const RemoveTutorNotFoundCode int = 404

RemoveTutorNotFoundCode is the HTTP code returned for type RemoveTutorNotFound

View Source
const RemoveTutorUnauthorizedCode int = 401

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

func (*AddAdmin) ServeHTTP

func (o *AddAdmin) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type AddAdminBadRequest

type AddAdminBadRequest struct {

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

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

type AddAdminCreated struct {

	/*
	  In: Body
	*/
	Payload []*ent.Role `json:"body,omitempty"`
}

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

type AddAdminForbidden struct {

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

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

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

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

type AddAdminNotFound struct {

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

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) Must

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

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

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

type AddAdminUnauthorized struct {

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

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

type AddCalendarBadRequest struct {

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

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

type AddCalendarCreated struct {

	/*
	  In: Body
	*/
	Payload []*ent.Role `json:"body,omitempty"`
}

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

type AddCalendarForbidden struct {

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

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

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

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

type AddCalendarNotFound struct {

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

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

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

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

type AddCalendarUnauthorized struct {

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

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

func (*AddTutor) ServeHTTP

func (o *AddTutor) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type AddTutorBadRequest

type AddTutorBadRequest struct {

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

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

type AddTutorCreated struct {

	/*
	  In: Body
	*/
	Payload []*ent.Role `json:"body,omitempty"`
}

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

type AddTutorForbidden struct {

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

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

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

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

type AddTutorNotFound struct {

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

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) Must

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

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

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

type AddTutorUnauthorized struct {

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

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

func (*ListRole) ServeHTTP

func (o *ListRole) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ListRoleForbidden

type ListRoleForbidden struct {

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

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

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

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

type ListRoleOK struct {

	/*
	  In: Body
	*/
	Payload []*ent.Role `json:"body,omitempty"`
}

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

type ListRoleParams struct {

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

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) Must

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

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

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

type ListRoleUnauthorized struct {

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

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

type RemoveAdminBadRequest struct {

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

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

type RemoveAdminForbidden struct {

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

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

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

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

type RemoveAdminNotFound struct {

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

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

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

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

type RemoveAdminUnauthorized struct {

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

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

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

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

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

type RemoveCalendarNotFound struct {

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

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

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

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

type RemoveCalendarUnauthorized struct {

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

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

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

type RemoveTutorBadRequest struct {

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

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

type RemoveTutorForbidden struct {

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

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

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

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

type RemoveTutorNotFound struct {

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

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

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

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

type RemoveTutorUnauthorized struct {

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

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

Jump to

Keyboard shortcuts

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