user

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: 15 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 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 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 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 AddRoleBadRequestCode int = 400

AddRoleBadRequestCode is the HTTP code returned for type AddRoleBadRequest

View Source
const AddRoleCreatedCode int = 201

AddRoleCreatedCode is the HTTP code returned for type AddRoleCreated

View Source
const AddRoleInternalServerErrorCode int = 500

AddRoleInternalServerErrorCode is the HTTP code returned for type AddRoleInternalServerError

View Source
const AddRoleNotFoundCode int = 404

AddRoleNotFoundCode is the HTTP code returned for type AddRoleNotFound

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 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 CreateUserBadRequestCode int = 400

CreateUserBadRequestCode is the HTTP code returned for type CreateUserBadRequest

View Source
const CreateUserCreatedCode int = 201

CreateUserCreatedCode is the HTTP code returned for type CreateUserCreated

View Source
const CreateUserForbiddenCode int = 403

CreateUserForbiddenCode is the HTTP code returned for type CreateUserForbidden

View Source
const CreateUserInternalServerErrorCode int = 500

CreateUserInternalServerErrorCode is the HTTP code returned for type CreateUserInternalServerError

View Source
const CreateUserUnauthorizedCode int = 401

CreateUserUnauthorizedCode is the HTTP code returned for type CreateUserUnauthorized

View Source
const DeleteMeInternalServerErrorCode int = 500

DeleteMeInternalServerErrorCode is the HTTP code returned for type DeleteMeInternalServerError

View Source
const DeleteMeNoContentCode int = 204

DeleteMeNoContentCode is the HTTP code returned for type DeleteMeNoContent

View Source
const DeleteMeUnauthorizedCode int = 401

DeleteMeUnauthorizedCode is the HTTP code returned for type DeleteMeUnauthorized

View Source
const DeleteUserBadRequestCode int = 400

DeleteUserBadRequestCode is the HTTP code returned for type DeleteUserBadRequest

View Source
const DeleteUserForbiddenCode int = 403

DeleteUserForbiddenCode is the HTTP code returned for type DeleteUserForbidden

View Source
const DeleteUserInternalServerErrorCode int = 500

DeleteUserInternalServerErrorCode is the HTTP code returned for type DeleteUserInternalServerError

View Source
const DeleteUserNoContentCode int = 204

DeleteUserNoContentCode is the HTTP code returned for type DeleteUserNoContent

View Source
const DeleteUserNotFoundCode int = 404

DeleteUserNotFoundCode is the HTTP code returned for type DeleteUserNotFound

View Source
const DeleteUserUnauthorizedCode int = 401

DeleteUserUnauthorizedCode is the HTTP code returned for type DeleteUserUnauthorized

View Source
const ListMeEventsForbiddenCode int = 403

ListMeEventsForbiddenCode is the HTTP code returned for type ListMeEventsForbidden

View Source
const ListMeEventsInternalServerErrorCode int = 500

ListMeEventsInternalServerErrorCode is the HTTP code returned for type ListMeEventsInternalServerError

View Source
const ListMeEventsOKCode int = 200

ListMeEventsOKCode is the HTTP code returned for type ListMeEventsOK

View Source
const ListMeEventsUnauthorizedCode int = 401

ListMeEventsUnauthorizedCode is the HTTP code returned for type ListMeEventsUnauthorized

View Source
const ListMeRolesForbiddenCode int = 403

ListMeRolesForbiddenCode is the HTTP code returned for type ListMeRolesForbidden

View Source
const ListMeRolesInternalServerErrorCode int = 500

ListMeRolesInternalServerErrorCode is the HTTP code returned for type ListMeRolesInternalServerError

View Source
const ListMeRolesOKCode int = 200

ListMeRolesOKCode is the HTTP code returned for type ListMeRolesOK

View Source
const ListMeRolesUnauthorizedCode int = 401

ListMeRolesUnauthorizedCode is the HTTP code returned for type ListMeRolesUnauthorized

View Source
const ListUserEventsBadRequestCode int = 400

ListUserEventsBadRequestCode is the HTTP code returned for type ListUserEventsBadRequest

View Source
const ListUserEventsForbiddenCode int = 403

ListUserEventsForbiddenCode is the HTTP code returned for type ListUserEventsForbidden

View Source
const ListUserEventsInternalServerErrorCode int = 500

ListUserEventsInternalServerErrorCode is the HTTP code returned for type ListUserEventsInternalServerError

View Source
const ListUserEventsNotFoundCode int = 404

ListUserEventsNotFoundCode is the HTTP code returned for type ListUserEventsNotFound

View Source
const ListUserEventsOKCode int = 200

ListUserEventsOKCode is the HTTP code returned for type ListUserEventsOK

View Source
const ListUserEventsUnauthorizedCode int = 401

ListUserEventsUnauthorizedCode is the HTTP code returned for type ListUserEventsUnauthorized

View Source
const ListUserInternalServerErrorCode int = 500

ListUserInternalServerErrorCode is the HTTP code returned for type ListUserInternalServerError

View Source
const ListUserOKCode int = 200

ListUserOKCode is the HTTP code returned for type ListUserOK

View Source
const ListUserRolesBadRequestCode int = 400

ListUserRolesBadRequestCode is the HTTP code returned for type ListUserRolesBadRequest

View Source
const ListUserRolesForbiddenCode int = 403

ListUserRolesForbiddenCode is the HTTP code returned for type ListUserRolesForbidden

View Source
const ListUserRolesInternalServerErrorCode int = 500

ListUserRolesInternalServerErrorCode is the HTTP code returned for type ListUserRolesInternalServerError

View Source
const ListUserRolesNotFoundCode int = 404

ListUserRolesNotFoundCode is the HTTP code returned for type ListUserRolesNotFound

View Source
const ListUserRolesOKCode int = 200

ListUserRolesOKCode is the HTTP code returned for type ListUserRolesOK

View Source
const ListUserRolesUnauthorizedCode int = 401

ListUserRolesUnauthorizedCode is the HTTP code returned for type ListUserRolesUnauthorized

View Source
const ListUserUnauthorizedCode int = 401

ListUserUnauthorizedCode is the HTTP code returned for type ListUserUnauthorized

View Source
const ReadMeInternalServerErrorCode int = 500

ReadMeInternalServerErrorCode is the HTTP code returned for type ReadMeInternalServerError

View Source
const ReadMeOKCode int = 200

ReadMeOKCode is the HTTP code returned for type ReadMeOK

View Source
const ReadMeUnauthorizedCode int = 401

ReadMeUnauthorizedCode is the HTTP code returned for type ReadMeUnauthorized

View Source
const ReadUserBadRequestCode int = 400

ReadUserBadRequestCode is the HTTP code returned for type ReadUserBadRequest

View Source
const ReadUserForbiddenCode int = 403

ReadUserForbiddenCode is the HTTP code returned for type ReadUserForbidden

View Source
const ReadUserInternalServerErrorCode int = 500

ReadUserInternalServerErrorCode is the HTTP code returned for type ReadUserInternalServerError

View Source
const ReadUserNotFoundCode int = 404

ReadUserNotFoundCode is the HTTP code returned for type ReadUserNotFound

View Source
const ReadUserOKCode int = 200

ReadUserOKCode is the HTTP code returned for type ReadUserOK

View Source
const ReadUserUnauthorizedCode int = 401

ReadUserUnauthorizedCode is the HTTP code returned for type ReadUserUnauthorized

View Source
const RemoveAdminBadRequestCode int = 400

RemoveAdminBadRequestCode is the HTTP code returned for type RemoveAdminBadRequest

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 RemoveCalendarBadRequestCode int = 400

RemoveCalendarBadRequestCode is the HTTP code returned for type RemoveCalendarBadRequest

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 RemoveRoleBadRequestCode int = 400

RemoveRoleBadRequestCode is the HTTP code returned for type RemoveRoleBadRequest

View Source
const RemoveRoleInternalServerErrorCode int = 500

RemoveRoleInternalServerErrorCode is the HTTP code returned for type RemoveRoleInternalServerError

View Source
const RemoveRoleNoContentCode int = 204

RemoveRoleNoContentCode is the HTTP code returned for type RemoveRoleNoContent

View Source
const RemoveRoleNotFoundCode int = 404

RemoveRoleNotFoundCode is the HTTP code returned for type RemoveRoleNotFound

View Source
const RemoveTutorBadRequestCode int = 400

RemoveTutorBadRequestCode is the HTTP code returned for type RemoveTutorBadRequest

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 SubscribeMeBadRequestCode int = 400

SubscribeMeBadRequestCode is the HTTP code returned for type SubscribeMeBadRequest

View Source
const SubscribeMeCreatedCode int = 201

SubscribeMeCreatedCode is the HTTP code returned for type SubscribeMeCreated

View Source
const SubscribeMeForbiddenCode int = 403

SubscribeMeForbiddenCode is the HTTP code returned for type SubscribeMeForbidden

View Source
const SubscribeMeInternalServerErrorCode int = 500

SubscribeMeInternalServerErrorCode is the HTTP code returned for type SubscribeMeInternalServerError

View Source
const SubscribeMeNotFoundCode int = 404

SubscribeMeNotFoundCode is the HTTP code returned for type SubscribeMeNotFound

View Source
const SubscribeMeUnauthorizedCode int = 401

SubscribeMeUnauthorizedCode is the HTTP code returned for type SubscribeMeUnauthorized

View Source
const SubscribeUserBadRequestCode int = 400

SubscribeUserBadRequestCode is the HTTP code returned for type SubscribeUserBadRequest

View Source
const SubscribeUserCreatedCode int = 201

SubscribeUserCreatedCode is the HTTP code returned for type SubscribeUserCreated

View Source
const SubscribeUserForbiddenCode int = 403

SubscribeUserForbiddenCode is the HTTP code returned for type SubscribeUserForbidden

View Source
const SubscribeUserInternalServerErrorCode int = 500

SubscribeUserInternalServerErrorCode is the HTTP code returned for type SubscribeUserInternalServerError

View Source
const SubscribeUserNotFoundCode int = 404

SubscribeUserNotFoundCode is the HTTP code returned for type SubscribeUserNotFound

View Source
const SubscribeUserUnauthorizedCode int = 401

SubscribeUserUnauthorizedCode is the HTTP code returned for type SubscribeUserUnauthorized

View Source
const UnsubscribeMeBadRequestCode int = 400

UnsubscribeMeBadRequestCode is the HTTP code returned for type UnsubscribeMeBadRequest

View Source
const UnsubscribeMeForbiddenCode int = 403

UnsubscribeMeForbiddenCode is the HTTP code returned for type UnsubscribeMeForbidden

View Source
const UnsubscribeMeInternalServerErrorCode int = 500

UnsubscribeMeInternalServerErrorCode is the HTTP code returned for type UnsubscribeMeInternalServerError

View Source
const UnsubscribeMeNoContentCode int = 204

UnsubscribeMeNoContentCode is the HTTP code returned for type UnsubscribeMeNoContent

View Source
const UnsubscribeMeNotFoundCode int = 404

UnsubscribeMeNotFoundCode is the HTTP code returned for type UnsubscribeMeNotFound

View Source
const UnsubscribeMeUnauthorizedCode int = 401

UnsubscribeMeUnauthorizedCode is the HTTP code returned for type UnsubscribeMeUnauthorized

View Source
const UnsubscribeUserBadRequestCode int = 400

UnsubscribeUserBadRequestCode is the HTTP code returned for type UnsubscribeUserBadRequest

View Source
const UnsubscribeUserForbiddenCode int = 403

UnsubscribeUserForbiddenCode is the HTTP code returned for type UnsubscribeUserForbidden

View Source
const UnsubscribeUserInternalServerErrorCode int = 500

UnsubscribeUserInternalServerErrorCode is the HTTP code returned for type UnsubscribeUserInternalServerError

View Source
const UnsubscribeUserNoContentCode int = 204

UnsubscribeUserNoContentCode is the HTTP code returned for type UnsubscribeUserNoContent

View Source
const UnsubscribeUserNotFoundCode int = 404

UnsubscribeUserNotFoundCode is the HTTP code returned for type UnsubscribeUserNotFound

View Source
const UnsubscribeUserUnauthorizedCode int = 401

UnsubscribeUserUnauthorizedCode is the HTTP code returned for type UnsubscribeUserUnauthorized

View Source
const UpdateMeBadRequestCode int = 400

UpdateMeBadRequestCode is the HTTP code returned for type UpdateMeBadRequest

View Source
const UpdateMeInternalServerErrorCode int = 500

UpdateMeInternalServerErrorCode is the HTTP code returned for type UpdateMeInternalServerError

View Source
const UpdateMeOKCode int = 200

UpdateMeOKCode is the HTTP code returned for type UpdateMeOK

View Source
const UpdateMeUnauthorizedCode int = 401

UpdateMeUnauthorizedCode is the HTTP code returned for type UpdateMeUnauthorized

View Source
const UpdateUserBadRequestCode int = 400

UpdateUserBadRequestCode is the HTTP code returned for type UpdateUserBadRequest

View Source
const UpdateUserForbiddenCode int = 403

UpdateUserForbiddenCode is the HTTP code returned for type UpdateUserForbidden

View Source
const UpdateUserInternalServerErrorCode int = 500

UpdateUserInternalServerErrorCode is the HTTP code returned for type UpdateUserInternalServerError

View Source
const UpdateUserNotFoundCode int = 404

UpdateUserNotFoundCode is the HTTP code returned for type UpdateUserNotFound

View Source
const UpdateUserOKCode int = 200

UpdateUserOKCode is the HTTP code returned for type UpdateUserOK

View Source
const UpdateUserUnauthorizedCode int = 401

UpdateUserUnauthorizedCode is the HTTP code returned for type UpdateUserUnauthorized

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 User 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 string `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 string)

SetPayload sets the payload to the add admin created response

func (*AddAdminCreated) WithPayload

func (o *AddAdminCreated) WithPayload(payload string) *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 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 AddCalendar

type AddCalendar struct {
	Context *middleware.Context
	Handler AddCalendarHandler
}
AddCalendar swagger:route POST /users/{id}/role/calendar User 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 string `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 string)

SetPayload sets the payload to the add calendar created response

func (*AddCalendarCreated) WithPayload

func (o *AddCalendarCreated) WithPayload(payload string) *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 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 AddRole

type AddRole struct {
	Context *middleware.Context
	Handler AddRoleHandler
}
AddRole swagger:route POST /users/{id}/role/{role} User addRole

Add user role

Add a role to a user.

func NewAddRole

func NewAddRole(ctx *middleware.Context, handler AddRoleHandler) *AddRole

NewAddRole creates a new http.Handler for the add role operation

func (*AddRole) ServeHTTP

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

type AddRoleBadRequest

type AddRoleBadRequest struct {

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

AddRoleBadRequest Bad request

swagger:response addRoleBadRequest

func NewAddRoleBadRequest

func NewAddRoleBadRequest() *AddRoleBadRequest

NewAddRoleBadRequest creates AddRoleBadRequest with default headers values

func (*AddRoleBadRequest) SetPayload

func (o *AddRoleBadRequest) SetPayload(payload *models.Error)

SetPayload sets the payload to the add role bad request response

func (*AddRoleBadRequest) WithPayload

func (o *AddRoleBadRequest) WithPayload(payload *models.Error) *AddRoleBadRequest

WithPayload adds the payload to the add role bad request response

func (*AddRoleBadRequest) WriteResponse

func (o *AddRoleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type AddRoleCreated

type AddRoleCreated struct {

	/*
	  In: Body
	*/
	Payload string `json:"body,omitempty"`
}

AddRoleCreated OK

swagger:response addRoleCreated

func NewAddRoleCreated

func NewAddRoleCreated() *AddRoleCreated

NewAddRoleCreated creates AddRoleCreated with default headers values

func (*AddRoleCreated) SetPayload

func (o *AddRoleCreated) SetPayload(payload string)

SetPayload sets the payload to the add role created response

func (*AddRoleCreated) WithPayload

func (o *AddRoleCreated) WithPayload(payload string) *AddRoleCreated

WithPayload adds the payload to the add role created response

func (*AddRoleCreated) WriteResponse

func (o *AddRoleCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type AddRoleHandler

type AddRoleHandler interface {
	Handle(AddRoleParams, *models.Principal) middleware.Responder
}

AddRoleHandler interface for that can handle valid add role params

type AddRoleHandlerFunc

type AddRoleHandlerFunc func(AddRoleParams, *models.Principal) middleware.Responder

AddRoleHandlerFunc turns a function with the right signature into a add role handler

func (AddRoleHandlerFunc) Handle

func (fn AddRoleHandlerFunc) Handle(params AddRoleParams, principal *models.Principal) middleware.Responder

Handle executing the request and returning a response

type AddRoleInternalServerError

type AddRoleInternalServerError struct {

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

AddRoleInternalServerError Internal Server Error

swagger:response addRoleInternalServerError

func NewAddRoleInternalServerError

func NewAddRoleInternalServerError() *AddRoleInternalServerError

NewAddRoleInternalServerError creates AddRoleInternalServerError with default headers values

func (*AddRoleInternalServerError) SetPayload

func (o *AddRoleInternalServerError) SetPayload(payload *models.Error)

SetPayload sets the payload to the add role internal server error response

func (*AddRoleInternalServerError) WithPayload

WithPayload adds the payload to the add role internal server error response

func (*AddRoleInternalServerError) WriteResponse

func (o *AddRoleInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type AddRoleNotFound

type AddRoleNotFound struct {

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

AddRoleNotFound Not Found

swagger:response addRoleNotFound

func NewAddRoleNotFound

func NewAddRoleNotFound() *AddRoleNotFound

NewAddRoleNotFound creates AddRoleNotFound with default headers values

func (*AddRoleNotFound) SetPayload

func (o *AddRoleNotFound) SetPayload(payload *models.Error)

SetPayload sets the payload to the add role not found response

func (*AddRoleNotFound) WithPayload

func (o *AddRoleNotFound) WithPayload(payload *models.Error) *AddRoleNotFound

WithPayload adds the payload to the add role not found response

func (*AddRoleNotFound) WriteResponse

func (o *AddRoleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type AddRoleParams

type AddRoleParams struct {

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

	/*User ID.
	  Required: true
	  In: path
	*/
	ID string
	/*Role name.
	  Required: true
	  In: path
	*/
	Role string
}

AddRoleParams contains all the bound params for the add role operation typically these are obtained from a http.Request

swagger:parameters addRole

func NewAddRoleParams

func NewAddRoleParams() AddRoleParams

NewAddRoleParams creates a new AddRoleParams object

There are no default values defined in the spec.

func (*AddRoleParams) BindRequest

func (o *AddRoleParams) 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 NewAddRoleParams() beforehand.

type AddRoleURL

type AddRoleURL struct {
	ID   string
	Role string
	// contains filtered or unexported fields
}

AddRoleURL generates an URL for the add role operation

func (*AddRoleURL) Build

func (o *AddRoleURL) Build() (*url.URL, error)

Build a url path and query string

func (*AddRoleURL) BuildFull

func (o *AddRoleURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*AddRoleURL) Must

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

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

func (*AddRoleURL) SetBasePath

func (o *AddRoleURL) 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 (*AddRoleURL) String

func (o *AddRoleURL) String() string

String returns the string representation of the path with query string

func (*AddRoleURL) StringFull

func (o *AddRoleURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*AddRoleURL) WithBasePath

func (o *AddRoleURL) WithBasePath(bp string) *AddRoleURL

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 AddTutor

type AddTutor struct {
	Context *middleware.Context
	Handler AddTutorHandler
}
AddTutor swagger:route POST /users/{id}/role/tutor User 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 string `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 string)

SetPayload sets the payload to the add tutor created response

func (*AddTutorCreated) WithPayload

func (o *AddTutorCreated) WithPayload(payload string) *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 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 CreateUser

type CreateUser struct {
	Context *middleware.Context
	Handler CreateUserHandler
}
CreateUser swagger:route POST /users User createUser

Create user

Create a new user.

func NewCreateUser

func NewCreateUser(ctx *middleware.Context, handler CreateUserHandler) *CreateUser

NewCreateUser creates a new http.Handler for the create user operation

func (*CreateUser) ServeHTTP

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

type CreateUserBadRequest

type CreateUserBadRequest struct {

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

CreateUserBadRequest Bad request

swagger:response createUserBadRequest

func NewCreateUserBadRequest

func NewCreateUserBadRequest() *CreateUserBadRequest

NewCreateUserBadRequest creates CreateUserBadRequest with default headers values

func (*CreateUserBadRequest) SetPayload

func (o *CreateUserBadRequest) SetPayload(payload *models.Error)

SetPayload sets the payload to the create user bad request response

func (*CreateUserBadRequest) WithPayload

func (o *CreateUserBadRequest) WithPayload(payload *models.Error) *CreateUserBadRequest

WithPayload adds the payload to the create user bad request response

func (*CreateUserBadRequest) WriteResponse

func (o *CreateUserBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateUserCreated

type CreateUserCreated struct {

	/*
	  In: Body
	*/
	Payload *ent.User `json:"body,omitempty"`
}

CreateUserCreated Created

swagger:response createUserCreated

func NewCreateUserCreated

func NewCreateUserCreated() *CreateUserCreated

NewCreateUserCreated creates CreateUserCreated with default headers values

func (*CreateUserCreated) SetPayload

func (o *CreateUserCreated) SetPayload(payload *ent.User)

SetPayload sets the payload to the create user created response

func (*CreateUserCreated) WithPayload

func (o *CreateUserCreated) WithPayload(payload *ent.User) *CreateUserCreated

WithPayload adds the payload to the create user created response

func (*CreateUserCreated) WriteResponse

func (o *CreateUserCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateUserForbidden

type CreateUserForbidden struct {

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

CreateUserForbidden Forbidden

swagger:response createUserForbidden

func NewCreateUserForbidden

func NewCreateUserForbidden() *CreateUserForbidden

NewCreateUserForbidden creates CreateUserForbidden with default headers values

func (*CreateUserForbidden) SetPayload

func (o *CreateUserForbidden) SetPayload(payload *models.Error)

SetPayload sets the payload to the create user forbidden response

func (*CreateUserForbidden) WithPayload

func (o *CreateUserForbidden) WithPayload(payload *models.Error) *CreateUserForbidden

WithPayload adds the payload to the create user forbidden response

func (*CreateUserForbidden) WriteResponse

func (o *CreateUserForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateUserHandler

type CreateUserHandler interface {
	Handle(CreateUserParams, *models.Principal) middleware.Responder
}

CreateUserHandler interface for that can handle valid create user params

type CreateUserHandlerFunc

type CreateUserHandlerFunc func(CreateUserParams, *models.Principal) middleware.Responder

CreateUserHandlerFunc turns a function with the right signature into a create user handler

func (CreateUserHandlerFunc) Handle

Handle executing the request and returning a response

type CreateUserInternalServerError

type CreateUserInternalServerError struct {

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

CreateUserInternalServerError Internal Server Error

swagger:response createUserInternalServerError

func NewCreateUserInternalServerError

func NewCreateUserInternalServerError() *CreateUserInternalServerError

NewCreateUserInternalServerError creates CreateUserInternalServerError with default headers values

func (*CreateUserInternalServerError) SetPayload

func (o *CreateUserInternalServerError) SetPayload(payload *models.Error)

SetPayload sets the payload to the create user internal server error response

func (*CreateUserInternalServerError) WithPayload

WithPayload adds the payload to the create user internal server error response

func (*CreateUserInternalServerError) WriteResponse

func (o *CreateUserInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateUserParams

type CreateUserParams struct {

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

	/*User to create.
	  Required: true
	  In: body
	*/
	User *ent.User
}

CreateUserParams contains all the bound params for the create user operation typically these are obtained from a http.Request

swagger:parameters createUser

func NewCreateUserParams

func NewCreateUserParams() CreateUserParams

NewCreateUserParams creates a new CreateUserParams object

There are no default values defined in the spec.

func (*CreateUserParams) BindRequest

func (o *CreateUserParams) 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 NewCreateUserParams() beforehand.

type CreateUserURL

type CreateUserURL struct {
	// contains filtered or unexported fields
}

CreateUserURL generates an URL for the create user operation

func (*CreateUserURL) Build

func (o *CreateUserURL) Build() (*url.URL, error)

Build a url path and query string

func (*CreateUserURL) BuildFull

func (o *CreateUserURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*CreateUserURL) Must

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

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

func (*CreateUserURL) SetBasePath

func (o *CreateUserURL) 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 (*CreateUserURL) String

func (o *CreateUserURL) String() string

String returns the string representation of the path with query string

func (*CreateUserURL) StringFull

func (o *CreateUserURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*CreateUserURL) WithBasePath

func (o *CreateUserURL) WithBasePath(bp string) *CreateUserURL

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 CreateUserUnauthorized

type CreateUserUnauthorized struct {

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

CreateUserUnauthorized Unauthorized

swagger:response createUserUnauthorized

func NewCreateUserUnauthorized

func NewCreateUserUnauthorized() *CreateUserUnauthorized

NewCreateUserUnauthorized creates CreateUserUnauthorized with default headers values

func (*CreateUserUnauthorized) SetPayload

func (o *CreateUserUnauthorized) SetPayload(payload *models.Error)

SetPayload sets the payload to the create user unauthorized response

func (*CreateUserUnauthorized) WithPayload

func (o *CreateUserUnauthorized) WithPayload(payload *models.Error) *CreateUserUnauthorized

WithPayload adds the payload to the create user unauthorized response

func (*CreateUserUnauthorized) WriteResponse

func (o *CreateUserUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteMe

type DeleteMe struct {
	Context *middleware.Context
	Handler DeleteMeHandler
}
DeleteMe swagger:route DELETE /users/me User deleteMe

Delete authenticated user

Delete the authenticated user.

func NewDeleteMe

func NewDeleteMe(ctx *middleware.Context, handler DeleteMeHandler) *DeleteMe

NewDeleteMe creates a new http.Handler for the delete me operation

func (*DeleteMe) ServeHTTP

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

type DeleteMeHandler

type DeleteMeHandler interface {
	Handle(DeleteMeParams, *models.Principal) middleware.Responder
}

DeleteMeHandler interface for that can handle valid delete me params

type DeleteMeHandlerFunc

type DeleteMeHandlerFunc func(DeleteMeParams, *models.Principal) middleware.Responder

DeleteMeHandlerFunc turns a function with the right signature into a delete me handler

func (DeleteMeHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteMeInternalServerError

type DeleteMeInternalServerError struct {

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

DeleteMeInternalServerError Internal Server Error

swagger:response deleteMeInternalServerError

func NewDeleteMeInternalServerError

func NewDeleteMeInternalServerError() *DeleteMeInternalServerError

NewDeleteMeInternalServerError creates DeleteMeInternalServerError with default headers values

func (*DeleteMeInternalServerError) SetPayload

func (o *DeleteMeInternalServerError) SetPayload(payload *models.Error)

SetPayload sets the payload to the delete me internal server error response

func (*DeleteMeInternalServerError) WithPayload

WithPayload adds the payload to the delete me internal server error response

func (*DeleteMeInternalServerError) WriteResponse

func (o *DeleteMeInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteMeNoContent

type DeleteMeNoContent struct {
}

DeleteMeNoContent No Content

swagger:response deleteMeNoContent

func NewDeleteMeNoContent

func NewDeleteMeNoContent() *DeleteMeNoContent

NewDeleteMeNoContent creates DeleteMeNoContent with default headers values

func (*DeleteMeNoContent) WriteResponse

func (o *DeleteMeNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteMeParams

type DeleteMeParams struct {

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

DeleteMeParams contains all the bound params for the delete me operation typically these are obtained from a http.Request

swagger:parameters deleteMe

func NewDeleteMeParams

func NewDeleteMeParams() DeleteMeParams

NewDeleteMeParams creates a new DeleteMeParams object

There are no default values defined in the spec.

func (*DeleteMeParams) BindRequest

func (o *DeleteMeParams) 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 NewDeleteMeParams() beforehand.

type DeleteMeURL

type DeleteMeURL struct {
	// contains filtered or unexported fields
}

DeleteMeURL generates an URL for the delete me operation

func (*DeleteMeURL) Build

func (o *DeleteMeURL) Build() (*url.URL, error)

Build a url path and query string

func (*DeleteMeURL) BuildFull

func (o *DeleteMeURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*DeleteMeURL) Must

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

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

func (*DeleteMeURL) SetBasePath

func (o *DeleteMeURL) 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 (*DeleteMeURL) String

func (o *DeleteMeURL) String() string

String returns the string representation of the path with query string

func (*DeleteMeURL) StringFull

func (o *DeleteMeURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*DeleteMeURL) WithBasePath

func (o *DeleteMeURL) WithBasePath(bp string) *DeleteMeURL

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 DeleteMeUnauthorized

type DeleteMeUnauthorized struct {

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

DeleteMeUnauthorized Unauthorized

swagger:response deleteMeUnauthorized

func NewDeleteMeUnauthorized

func NewDeleteMeUnauthorized() *DeleteMeUnauthorized

NewDeleteMeUnauthorized creates DeleteMeUnauthorized with default headers values

func (*DeleteMeUnauthorized) SetPayload

func (o *DeleteMeUnauthorized) SetPayload(payload *models.Error)

SetPayload sets the payload to the delete me unauthorized response

func (*DeleteMeUnauthorized) WithPayload

func (o *DeleteMeUnauthorized) WithPayload(payload *models.Error) *DeleteMeUnauthorized

WithPayload adds the payload to the delete me unauthorized response

func (*DeleteMeUnauthorized) WriteResponse

func (o *DeleteMeUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteUser

type DeleteUser struct {
	Context *middleware.Context
	Handler DeleteUserHandler
}
DeleteUser swagger:route DELETE /users/{id} User deleteUser

Delete user

Delete an user by ID.

func NewDeleteUser

func NewDeleteUser(ctx *middleware.Context, handler DeleteUserHandler) *DeleteUser

NewDeleteUser creates a new http.Handler for the delete user operation

func (*DeleteUser) ServeHTTP

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

type DeleteUserBadRequest

type DeleteUserBadRequest struct {

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

DeleteUserBadRequest Bad request

swagger:response deleteUserBadRequest

func NewDeleteUserBadRequest

func NewDeleteUserBadRequest() *DeleteUserBadRequest

NewDeleteUserBadRequest creates DeleteUserBadRequest with default headers values

func (*DeleteUserBadRequest) SetPayload

func (o *DeleteUserBadRequest) SetPayload(payload *models.Error)

SetPayload sets the payload to the delete user bad request response

func (*DeleteUserBadRequest) WithPayload

func (o *DeleteUserBadRequest) WithPayload(payload *models.Error) *DeleteUserBadRequest

WithPayload adds the payload to the delete user bad request response

func (*DeleteUserBadRequest) WriteResponse

func (o *DeleteUserBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteUserForbidden

type DeleteUserForbidden struct {

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

DeleteUserForbidden Forbidden

swagger:response deleteUserForbidden

func NewDeleteUserForbidden

func NewDeleteUserForbidden() *DeleteUserForbidden

NewDeleteUserForbidden creates DeleteUserForbidden with default headers values

func (*DeleteUserForbidden) SetPayload

func (o *DeleteUserForbidden) SetPayload(payload *models.Error)

SetPayload sets the payload to the delete user forbidden response

func (*DeleteUserForbidden) WithPayload

func (o *DeleteUserForbidden) WithPayload(payload *models.Error) *DeleteUserForbidden

WithPayload adds the payload to the delete user forbidden response

func (*DeleteUserForbidden) WriteResponse

func (o *DeleteUserForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteUserHandler

type DeleteUserHandler interface {
	Handle(DeleteUserParams, *models.Principal) middleware.Responder
}

DeleteUserHandler interface for that can handle valid delete user params

type DeleteUserHandlerFunc

type DeleteUserHandlerFunc func(DeleteUserParams, *models.Principal) middleware.Responder

DeleteUserHandlerFunc turns a function with the right signature into a delete user handler

func (DeleteUserHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteUserInternalServerError

type DeleteUserInternalServerError struct {

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

DeleteUserInternalServerError Internal Server Error

swagger:response deleteUserInternalServerError

func NewDeleteUserInternalServerError

func NewDeleteUserInternalServerError() *DeleteUserInternalServerError

NewDeleteUserInternalServerError creates DeleteUserInternalServerError with default headers values

func (*DeleteUserInternalServerError) SetPayload

func (o *DeleteUserInternalServerError) SetPayload(payload *models.Error)

SetPayload sets the payload to the delete user internal server error response

func (*DeleteUserInternalServerError) WithPayload

WithPayload adds the payload to the delete user internal server error response

func (*DeleteUserInternalServerError) WriteResponse

func (o *DeleteUserInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteUserNoContent

type DeleteUserNoContent struct {
}

DeleteUserNoContent No Content

swagger:response deleteUserNoContent

func NewDeleteUserNoContent

func NewDeleteUserNoContent() *DeleteUserNoContent

NewDeleteUserNoContent creates DeleteUserNoContent with default headers values

func (*DeleteUserNoContent) WriteResponse

func (o *DeleteUserNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteUserNotFound

type DeleteUserNotFound struct {

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

DeleteUserNotFound Not Found

swagger:response deleteUserNotFound

func NewDeleteUserNotFound

func NewDeleteUserNotFound() *DeleteUserNotFound

NewDeleteUserNotFound creates DeleteUserNotFound with default headers values

func (*DeleteUserNotFound) SetPayload

func (o *DeleteUserNotFound) SetPayload(payload *models.Error)

SetPayload sets the payload to the delete user not found response

func (*DeleteUserNotFound) WithPayload

func (o *DeleteUserNotFound) WithPayload(payload *models.Error) *DeleteUserNotFound

WithPayload adds the payload to the delete user not found response

func (*DeleteUserNotFound) WriteResponse

func (o *DeleteUserNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteUserParams

type DeleteUserParams struct {

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

	/*User ID.
	  Required: true
	  In: path
	*/
	ID string
}

DeleteUserParams contains all the bound params for the delete user operation typically these are obtained from a http.Request

swagger:parameters deleteUser

func NewDeleteUserParams

func NewDeleteUserParams() DeleteUserParams

NewDeleteUserParams creates a new DeleteUserParams object

There are no default values defined in the spec.

func (*DeleteUserParams) BindRequest

func (o *DeleteUserParams) 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 NewDeleteUserParams() beforehand.

type DeleteUserURL

type DeleteUserURL struct {
	ID string
	// contains filtered or unexported fields
}

DeleteUserURL generates an URL for the delete user operation

func (*DeleteUserURL) Build

func (o *DeleteUserURL) Build() (*url.URL, error)

Build a url path and query string

func (*DeleteUserURL) BuildFull

func (o *DeleteUserURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*DeleteUserURL) Must

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

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

func (*DeleteUserURL) SetBasePath

func (o *DeleteUserURL) 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 (*DeleteUserURL) String

func (o *DeleteUserURL) String() string

String returns the string representation of the path with query string

func (*DeleteUserURL) StringFull

func (o *DeleteUserURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*DeleteUserURL) WithBasePath

func (o *DeleteUserURL) WithBasePath(bp string) *DeleteUserURL

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 DeleteUserUnauthorized

type DeleteUserUnauthorized struct {

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

DeleteUserUnauthorized Unauthorized

swagger:response deleteUserUnauthorized

func NewDeleteUserUnauthorized

func NewDeleteUserUnauthorized() *DeleteUserUnauthorized

NewDeleteUserUnauthorized creates DeleteUserUnauthorized with default headers values

func (*DeleteUserUnauthorized) SetPayload

func (o *DeleteUserUnauthorized) SetPayload(payload *models.Error)

SetPayload sets the payload to the delete user unauthorized response

func (*DeleteUserUnauthorized) WithPayload

func (o *DeleteUserUnauthorized) WithPayload(payload *models.Error) *DeleteUserUnauthorized

WithPayload adds the payload to the delete user unauthorized response

func (*DeleteUserUnauthorized) WriteResponse

func (o *DeleteUserUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListMeEvents

type ListMeEvents struct {
	Context *middleware.Context
	Handler ListMeEventsHandler
}
ListMeEvents swagger:route GET /users/me/events User listMeEvents

List authenticated user events

List the authenticated user's subscribed events.

func NewListMeEvents

func NewListMeEvents(ctx *middleware.Context, handler ListMeEventsHandler) *ListMeEvents

NewListMeEvents creates a new http.Handler for the list me events operation

func (*ListMeEvents) ServeHTTP

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

type ListMeEventsForbidden

type ListMeEventsForbidden struct {

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

ListMeEventsForbidden Forbidden

swagger:response listMeEventsForbidden

func NewListMeEventsForbidden

func NewListMeEventsForbidden() *ListMeEventsForbidden

NewListMeEventsForbidden creates ListMeEventsForbidden with default headers values

func (*ListMeEventsForbidden) SetPayload

func (o *ListMeEventsForbidden) SetPayload(payload *models.Error)

SetPayload sets the payload to the list me events forbidden response

func (*ListMeEventsForbidden) WithPayload

func (o *ListMeEventsForbidden) WithPayload(payload *models.Error) *ListMeEventsForbidden

WithPayload adds the payload to the list me events forbidden response

func (*ListMeEventsForbidden) WriteResponse

func (o *ListMeEventsForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListMeEventsHandler

type ListMeEventsHandler interface {
	Handle(ListMeEventsParams, *models.Principal) middleware.Responder
}

ListMeEventsHandler interface for that can handle valid list me events params

type ListMeEventsHandlerFunc

type ListMeEventsHandlerFunc func(ListMeEventsParams, *models.Principal) middleware.Responder

ListMeEventsHandlerFunc turns a function with the right signature into a list me events handler

func (ListMeEventsHandlerFunc) Handle

Handle executing the request and returning a response

type ListMeEventsInternalServerError

type ListMeEventsInternalServerError struct {

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

ListMeEventsInternalServerError Internal Server Error

swagger:response listMeEventsInternalServerError

func NewListMeEventsInternalServerError

func NewListMeEventsInternalServerError() *ListMeEventsInternalServerError

NewListMeEventsInternalServerError creates ListMeEventsInternalServerError with default headers values

func (*ListMeEventsInternalServerError) SetPayload

func (o *ListMeEventsInternalServerError) SetPayload(payload *models.Error)

SetPayload sets the payload to the list me events internal server error response

func (*ListMeEventsInternalServerError) WithPayload

WithPayload adds the payload to the list me events internal server error response

func (*ListMeEventsInternalServerError) WriteResponse

func (o *ListMeEventsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListMeEventsOK

type ListMeEventsOK struct {

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

ListMeEventsOK OK

swagger:response listMeEventsOK

func NewListMeEventsOK

func NewListMeEventsOK() *ListMeEventsOK

NewListMeEventsOK creates ListMeEventsOK with default headers values

func (*ListMeEventsOK) SetPayload

func (o *ListMeEventsOK) SetPayload(payload []*ent.Event)

SetPayload sets the payload to the list me events o k response

func (*ListMeEventsOK) WithPayload

func (o *ListMeEventsOK) WithPayload(payload []*ent.Event) *ListMeEventsOK

WithPayload adds the payload to the list me events o k response

func (*ListMeEventsOK) WriteResponse

func (o *ListMeEventsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListMeEventsParams

type ListMeEventsParams struct {

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

ListMeEventsParams contains all the bound params for the list me events operation typically these are obtained from a http.Request

swagger:parameters listMeEvents

func NewListMeEventsParams

func NewListMeEventsParams() ListMeEventsParams

NewListMeEventsParams creates a new ListMeEventsParams object

There are no default values defined in the spec.

func (*ListMeEventsParams) BindRequest

func (o *ListMeEventsParams) 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 NewListMeEventsParams() beforehand.

type ListMeEventsURL

type ListMeEventsURL struct {
	// contains filtered or unexported fields
}

ListMeEventsURL generates an URL for the list me events operation

func (*ListMeEventsURL) Build

func (o *ListMeEventsURL) Build() (*url.URL, error)

Build a url path and query string

func (*ListMeEventsURL) BuildFull

func (o *ListMeEventsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ListMeEventsURL) Must

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

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

func (*ListMeEventsURL) SetBasePath

func (o *ListMeEventsURL) 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 (*ListMeEventsURL) String

func (o *ListMeEventsURL) String() string

String returns the string representation of the path with query string

func (*ListMeEventsURL) StringFull

func (o *ListMeEventsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ListMeEventsURL) WithBasePath

func (o *ListMeEventsURL) WithBasePath(bp string) *ListMeEventsURL

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 ListMeEventsUnauthorized

type ListMeEventsUnauthorized struct {

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

ListMeEventsUnauthorized Unauthorized

swagger:response listMeEventsUnauthorized

func NewListMeEventsUnauthorized

func NewListMeEventsUnauthorized() *ListMeEventsUnauthorized

NewListMeEventsUnauthorized creates ListMeEventsUnauthorized with default headers values

func (*ListMeEventsUnauthorized) SetPayload

func (o *ListMeEventsUnauthorized) SetPayload(payload *models.Error)

SetPayload sets the payload to the list me events unauthorized response

func (*ListMeEventsUnauthorized) WithPayload

WithPayload adds the payload to the list me events unauthorized response

func (*ListMeEventsUnauthorized) WriteResponse

func (o *ListMeEventsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListMeRoles

type ListMeRoles struct {
	Context *middleware.Context
	Handler ListMeRolesHandler
}
ListMeRoles swagger:route GET /users/me/roles User listMeRoles

List authenticated user roles

List the authenticated user's roles.

func NewListMeRoles

func NewListMeRoles(ctx *middleware.Context, handler ListMeRolesHandler) *ListMeRoles

NewListMeRoles creates a new http.Handler for the list me roles operation

func (*ListMeRoles) ServeHTTP

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

type ListMeRolesForbidden

type ListMeRolesForbidden struct {

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

ListMeRolesForbidden Forbidden

swagger:response listMeRolesForbidden

func NewListMeRolesForbidden

func NewListMeRolesForbidden() *ListMeRolesForbidden

NewListMeRolesForbidden creates ListMeRolesForbidden with default headers values

func (*ListMeRolesForbidden) SetPayload

func (o *ListMeRolesForbidden) SetPayload(payload *models.Error)

SetPayload sets the payload to the list me roles forbidden response

func (*ListMeRolesForbidden) WithPayload

func (o *ListMeRolesForbidden) WithPayload(payload *models.Error) *ListMeRolesForbidden

WithPayload adds the payload to the list me roles forbidden response

func (*ListMeRolesForbidden) WriteResponse

func (o *ListMeRolesForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListMeRolesHandler

type ListMeRolesHandler interface {
	Handle(ListMeRolesParams, *models.Principal) middleware.Responder
}

ListMeRolesHandler interface for that can handle valid list me roles params

type ListMeRolesHandlerFunc

type ListMeRolesHandlerFunc func(ListMeRolesParams, *models.Principal) middleware.Responder

ListMeRolesHandlerFunc turns a function with the right signature into a list me roles handler

func (ListMeRolesHandlerFunc) Handle

Handle executing the request and returning a response

type ListMeRolesInternalServerError

type ListMeRolesInternalServerError struct {

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

ListMeRolesInternalServerError Internal Server Error

swagger:response listMeRolesInternalServerError

func NewListMeRolesInternalServerError

func NewListMeRolesInternalServerError() *ListMeRolesInternalServerError

NewListMeRolesInternalServerError creates ListMeRolesInternalServerError with default headers values

func (*ListMeRolesInternalServerError) SetPayload

func (o *ListMeRolesInternalServerError) SetPayload(payload *models.Error)

SetPayload sets the payload to the list me roles internal server error response

func (*ListMeRolesInternalServerError) WithPayload

WithPayload adds the payload to the list me roles internal server error response

func (*ListMeRolesInternalServerError) WriteResponse

func (o *ListMeRolesInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListMeRolesOK

type ListMeRolesOK struct {

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

ListMeRolesOK OK

swagger:response listMeRolesOK

func NewListMeRolesOK

func NewListMeRolesOK() *ListMeRolesOK

NewListMeRolesOK creates ListMeRolesOK with default headers values

func (*ListMeRolesOK) SetPayload

func (o *ListMeRolesOK) SetPayload(payload []*ent.Role)

SetPayload sets the payload to the list me roles o k response

func (*ListMeRolesOK) WithPayload

func (o *ListMeRolesOK) WithPayload(payload []*ent.Role) *ListMeRolesOK

WithPayload adds the payload to the list me roles o k response

func (*ListMeRolesOK) WriteResponse

func (o *ListMeRolesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListMeRolesParams

type ListMeRolesParams struct {

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

ListMeRolesParams contains all the bound params for the list me roles operation typically these are obtained from a http.Request

swagger:parameters listMeRoles

func NewListMeRolesParams

func NewListMeRolesParams() ListMeRolesParams

NewListMeRolesParams creates a new ListMeRolesParams object

There are no default values defined in the spec.

func (*ListMeRolesParams) BindRequest

func (o *ListMeRolesParams) 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 NewListMeRolesParams() beforehand.

type ListMeRolesURL

type ListMeRolesURL struct {
	// contains filtered or unexported fields
}

ListMeRolesURL generates an URL for the list me roles operation

func (*ListMeRolesURL) Build

func (o *ListMeRolesURL) Build() (*url.URL, error)

Build a url path and query string

func (*ListMeRolesURL) BuildFull

func (o *ListMeRolesURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ListMeRolesURL) Must

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

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

func (*ListMeRolesURL) SetBasePath

func (o *ListMeRolesURL) 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 (*ListMeRolesURL) String

func (o *ListMeRolesURL) String() string

String returns the string representation of the path with query string

func (*ListMeRolesURL) StringFull

func (o *ListMeRolesURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ListMeRolesURL) WithBasePath

func (o *ListMeRolesURL) WithBasePath(bp string) *ListMeRolesURL

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 ListMeRolesUnauthorized

type ListMeRolesUnauthorized struct {

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

ListMeRolesUnauthorized Unauthorized

swagger:response listMeRolesUnauthorized

func NewListMeRolesUnauthorized

func NewListMeRolesUnauthorized() *ListMeRolesUnauthorized

NewListMeRolesUnauthorized creates ListMeRolesUnauthorized with default headers values

func (*ListMeRolesUnauthorized) SetPayload

func (o *ListMeRolesUnauthorized) SetPayload(payload *models.Error)

SetPayload sets the payload to the list me roles unauthorized response

func (*ListMeRolesUnauthorized) WithPayload

func (o *ListMeRolesUnauthorized) WithPayload(payload *models.Error) *ListMeRolesUnauthorized

WithPayload adds the payload to the list me roles unauthorized response

func (*ListMeRolesUnauthorized) WriteResponse

func (o *ListMeRolesUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListUser

type ListUser struct {
	Context *middleware.Context
	Handler ListUserHandler
}
ListUser swagger:route GET /users User listUser

List users

List all users.

func NewListUser

func NewListUser(ctx *middleware.Context, handler ListUserHandler) *ListUser

NewListUser creates a new http.Handler for the list user operation

func (*ListUser) ServeHTTP

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

type ListUserEvents

type ListUserEvents struct {
	Context *middleware.Context
	Handler ListUserEventsHandler
}
ListUserEvents swagger:route GET /users/{id}/events User listUserEvents

List user events

List user's subscribed events.

func NewListUserEvents

func NewListUserEvents(ctx *middleware.Context, handler ListUserEventsHandler) *ListUserEvents

NewListUserEvents creates a new http.Handler for the list user events operation

func (*ListUserEvents) ServeHTTP

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

type ListUserEventsBadRequest

type ListUserEventsBadRequest struct {

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

ListUserEventsBadRequest Bad request

swagger:response listUserEventsBadRequest

func NewListUserEventsBadRequest

func NewListUserEventsBadRequest() *ListUserEventsBadRequest

NewListUserEventsBadRequest creates ListUserEventsBadRequest with default headers values

func (*ListUserEventsBadRequest) SetPayload

func (o *ListUserEventsBadRequest) SetPayload(payload *models.Error)

SetPayload sets the payload to the list user events bad request response

func (*ListUserEventsBadRequest) WithPayload

WithPayload adds the payload to the list user events bad request response

func (*ListUserEventsBadRequest) WriteResponse

func (o *ListUserEventsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListUserEventsForbidden

type ListUserEventsForbidden struct {

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

ListUserEventsForbidden Forbidden

swagger:response listUserEventsForbidden

func NewListUserEventsForbidden

func NewListUserEventsForbidden() *ListUserEventsForbidden

NewListUserEventsForbidden creates ListUserEventsForbidden with default headers values

func (*ListUserEventsForbidden) SetPayload

func (o *ListUserEventsForbidden) SetPayload(payload *models.Error)

SetPayload sets the payload to the list user events forbidden response

func (*ListUserEventsForbidden) WithPayload

func (o *ListUserEventsForbidden) WithPayload(payload *models.Error) *ListUserEventsForbidden

WithPayload adds the payload to the list user events forbidden response

func (*ListUserEventsForbidden) WriteResponse

func (o *ListUserEventsForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListUserEventsHandler

type ListUserEventsHandler interface {
	Handle(ListUserEventsParams, *models.Principal) middleware.Responder
}

ListUserEventsHandler interface for that can handle valid list user events params

type ListUserEventsHandlerFunc

type ListUserEventsHandlerFunc func(ListUserEventsParams, *models.Principal) middleware.Responder

ListUserEventsHandlerFunc turns a function with the right signature into a list user events handler

func (ListUserEventsHandlerFunc) Handle

Handle executing the request and returning a response

type ListUserEventsInternalServerError

type ListUserEventsInternalServerError struct {

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

ListUserEventsInternalServerError Internal Server Error

swagger:response listUserEventsInternalServerError

func NewListUserEventsInternalServerError

func NewListUserEventsInternalServerError() *ListUserEventsInternalServerError

NewListUserEventsInternalServerError creates ListUserEventsInternalServerError with default headers values

func (*ListUserEventsInternalServerError) SetPayload

func (o *ListUserEventsInternalServerError) SetPayload(payload *models.Error)

SetPayload sets the payload to the list user events internal server error response

func (*ListUserEventsInternalServerError) WithPayload

WithPayload adds the payload to the list user events internal server error response

func (*ListUserEventsInternalServerError) WriteResponse

func (o *ListUserEventsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListUserEventsNotFound

type ListUserEventsNotFound struct {

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

ListUserEventsNotFound Not Found

swagger:response listUserEventsNotFound

func NewListUserEventsNotFound

func NewListUserEventsNotFound() *ListUserEventsNotFound

NewListUserEventsNotFound creates ListUserEventsNotFound with default headers values

func (*ListUserEventsNotFound) SetPayload

func (o *ListUserEventsNotFound) SetPayload(payload *models.Error)

SetPayload sets the payload to the list user events not found response

func (*ListUserEventsNotFound) WithPayload

func (o *ListUserEventsNotFound) WithPayload(payload *models.Error) *ListUserEventsNotFound

WithPayload adds the payload to the list user events not found response

func (*ListUserEventsNotFound) WriteResponse

func (o *ListUserEventsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListUserEventsOK

type ListUserEventsOK struct {

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

ListUserEventsOK OK

swagger:response listUserEventsOK

func NewListUserEventsOK

func NewListUserEventsOK() *ListUserEventsOK

NewListUserEventsOK creates ListUserEventsOK with default headers values

func (*ListUserEventsOK) SetPayload

func (o *ListUserEventsOK) SetPayload(payload []*ent.Event)

SetPayload sets the payload to the list user events o k response

func (*ListUserEventsOK) WithPayload

func (o *ListUserEventsOK) WithPayload(payload []*ent.Event) *ListUserEventsOK

WithPayload adds the payload to the list user events o k response

func (*ListUserEventsOK) WriteResponse

func (o *ListUserEventsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListUserEventsParams

type ListUserEventsParams struct {

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

	/*User ID.
	  Required: true
	  In: path
	*/
	ID string
}

ListUserEventsParams contains all the bound params for the list user events operation typically these are obtained from a http.Request

swagger:parameters listUserEvents

func NewListUserEventsParams

func NewListUserEventsParams() ListUserEventsParams

NewListUserEventsParams creates a new ListUserEventsParams object

There are no default values defined in the spec.

func (*ListUserEventsParams) BindRequest

func (o *ListUserEventsParams) 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 NewListUserEventsParams() beforehand.

type ListUserEventsURL

type ListUserEventsURL struct {
	ID string
	// contains filtered or unexported fields
}

ListUserEventsURL generates an URL for the list user events operation

func (*ListUserEventsURL) Build

func (o *ListUserEventsURL) Build() (*url.URL, error)

Build a url path and query string

func (*ListUserEventsURL) BuildFull

func (o *ListUserEventsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ListUserEventsURL) Must

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

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

func (*ListUserEventsURL) SetBasePath

func (o *ListUserEventsURL) 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 (*ListUserEventsURL) String

func (o *ListUserEventsURL) String() string

String returns the string representation of the path with query string

func (*ListUserEventsURL) StringFull

func (o *ListUserEventsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ListUserEventsURL) WithBasePath

func (o *ListUserEventsURL) WithBasePath(bp string) *ListUserEventsURL

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 ListUserEventsUnauthorized

type ListUserEventsUnauthorized struct {

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

ListUserEventsUnauthorized Unauthorized

swagger:response listUserEventsUnauthorized

func NewListUserEventsUnauthorized

func NewListUserEventsUnauthorized() *ListUserEventsUnauthorized

NewListUserEventsUnauthorized creates ListUserEventsUnauthorized with default headers values

func (*ListUserEventsUnauthorized) SetPayload

func (o *ListUserEventsUnauthorized) SetPayload(payload *models.Error)

SetPayload sets the payload to the list user events unauthorized response

func (*ListUserEventsUnauthorized) WithPayload

WithPayload adds the payload to the list user events unauthorized response

func (*ListUserEventsUnauthorized) WriteResponse

func (o *ListUserEventsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListUserHandler

type ListUserHandler interface {
	Handle(ListUserParams, *models.Principal) middleware.Responder
}

ListUserHandler interface for that can handle valid list user params

type ListUserHandlerFunc

type ListUserHandlerFunc func(ListUserParams, *models.Principal) middleware.Responder

ListUserHandlerFunc turns a function with the right signature into a list user handler

func (ListUserHandlerFunc) Handle

Handle executing the request and returning a response

type ListUserInternalServerError

type ListUserInternalServerError struct {

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

ListUserInternalServerError Internal Server Error

swagger:response listUserInternalServerError

func NewListUserInternalServerError

func NewListUserInternalServerError() *ListUserInternalServerError

NewListUserInternalServerError creates ListUserInternalServerError with default headers values

func (*ListUserInternalServerError) SetPayload

func (o *ListUserInternalServerError) SetPayload(payload *models.Error)

SetPayload sets the payload to the list user internal server error response

func (*ListUserInternalServerError) WithPayload

WithPayload adds the payload to the list user internal server error response

func (*ListUserInternalServerError) WriteResponse

func (o *ListUserInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListUserOK

type ListUserOK struct {

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

ListUserOK OK

swagger:response listUserOK

func NewListUserOK

func NewListUserOK() *ListUserOK

NewListUserOK creates ListUserOK with default headers values

func (*ListUserOK) SetPayload

func (o *ListUserOK) SetPayload(payload []*ent.User)

SetPayload sets the payload to the list user o k response

func (*ListUserOK) WithPayload

func (o *ListUserOK) WithPayload(payload []*ent.User) *ListUserOK

WithPayload adds the payload to the list user o k response

func (*ListUserOK) WriteResponse

func (o *ListUserOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListUserParams

type ListUserParams struct {

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

	/*Tutor filter.
	  In: query
	*/
	Tutor *bool
}

ListUserParams contains all the bound params for the list user operation typically these are obtained from a http.Request

swagger:parameters listUser

func NewListUserParams

func NewListUserParams() ListUserParams

NewListUserParams creates a new ListUserParams object

There are no default values defined in the spec.

func (*ListUserParams) BindRequest

func (o *ListUserParams) 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 NewListUserParams() beforehand.

type ListUserRoles

type ListUserRoles struct {
	Context *middleware.Context
	Handler ListUserRolesHandler
}
ListUserRoles swagger:route GET /users/{id}/roles User listUserRoles

List user roles

List the user's roles.

func NewListUserRoles

func NewListUserRoles(ctx *middleware.Context, handler ListUserRolesHandler) *ListUserRoles

NewListUserRoles creates a new http.Handler for the list user roles operation

func (*ListUserRoles) ServeHTTP

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

type ListUserRolesBadRequest

type ListUserRolesBadRequest struct {

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

ListUserRolesBadRequest Bad request

swagger:response listUserRolesBadRequest

func NewListUserRolesBadRequest

func NewListUserRolesBadRequest() *ListUserRolesBadRequest

NewListUserRolesBadRequest creates ListUserRolesBadRequest with default headers values

func (*ListUserRolesBadRequest) SetPayload

func (o *ListUserRolesBadRequest) SetPayload(payload *models.Error)

SetPayload sets the payload to the list user roles bad request response

func (*ListUserRolesBadRequest) WithPayload

func (o *ListUserRolesBadRequest) WithPayload(payload *models.Error) *ListUserRolesBadRequest

WithPayload adds the payload to the list user roles bad request response

func (*ListUserRolesBadRequest) WriteResponse

func (o *ListUserRolesBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListUserRolesForbidden

type ListUserRolesForbidden struct {

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

ListUserRolesForbidden Forbidden

swagger:response listUserRolesForbidden

func NewListUserRolesForbidden

func NewListUserRolesForbidden() *ListUserRolesForbidden

NewListUserRolesForbidden creates ListUserRolesForbidden with default headers values

func (*ListUserRolesForbidden) SetPayload

func (o *ListUserRolesForbidden) SetPayload(payload *models.Error)

SetPayload sets the payload to the list user roles forbidden response

func (*ListUserRolesForbidden) WithPayload

func (o *ListUserRolesForbidden) WithPayload(payload *models.Error) *ListUserRolesForbidden

WithPayload adds the payload to the list user roles forbidden response

func (*ListUserRolesForbidden) WriteResponse

func (o *ListUserRolesForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListUserRolesHandler

type ListUserRolesHandler interface {
	Handle(ListUserRolesParams, *models.Principal) middleware.Responder
}

ListUserRolesHandler interface for that can handle valid list user roles params

type ListUserRolesHandlerFunc

type ListUserRolesHandlerFunc func(ListUserRolesParams, *models.Principal) middleware.Responder

ListUserRolesHandlerFunc turns a function with the right signature into a list user roles handler

func (ListUserRolesHandlerFunc) Handle

Handle executing the request and returning a response

type ListUserRolesInternalServerError

type ListUserRolesInternalServerError struct {

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

ListUserRolesInternalServerError Internal Server Error

swagger:response listUserRolesInternalServerError

func NewListUserRolesInternalServerError

func NewListUserRolesInternalServerError() *ListUserRolesInternalServerError

NewListUserRolesInternalServerError creates ListUserRolesInternalServerError with default headers values

func (*ListUserRolesInternalServerError) SetPayload

func (o *ListUserRolesInternalServerError) SetPayload(payload *models.Error)

SetPayload sets the payload to the list user roles internal server error response

func (*ListUserRolesInternalServerError) WithPayload

WithPayload adds the payload to the list user roles internal server error response

func (*ListUserRolesInternalServerError) WriteResponse

func (o *ListUserRolesInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListUserRolesNotFound

type ListUserRolesNotFound struct {

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

ListUserRolesNotFound Not Found

swagger:response listUserRolesNotFound

func NewListUserRolesNotFound

func NewListUserRolesNotFound() *ListUserRolesNotFound

NewListUserRolesNotFound creates ListUserRolesNotFound with default headers values

func (*ListUserRolesNotFound) SetPayload

func (o *ListUserRolesNotFound) SetPayload(payload *models.Error)

SetPayload sets the payload to the list user roles not found response

func (*ListUserRolesNotFound) WithPayload

func (o *ListUserRolesNotFound) WithPayload(payload *models.Error) *ListUserRolesNotFound

WithPayload adds the payload to the list user roles not found response

func (*ListUserRolesNotFound) WriteResponse

func (o *ListUserRolesNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListUserRolesOK

type ListUserRolesOK struct {

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

ListUserRolesOK OK

swagger:response listUserRolesOK

func NewListUserRolesOK

func NewListUserRolesOK() *ListUserRolesOK

NewListUserRolesOK creates ListUserRolesOK with default headers values

func (*ListUserRolesOK) SetPayload

func (o *ListUserRolesOK) SetPayload(payload []*ent.Role)

SetPayload sets the payload to the list user roles o k response

func (*ListUserRolesOK) WithPayload

func (o *ListUserRolesOK) WithPayload(payload []*ent.Role) *ListUserRolesOK

WithPayload adds the payload to the list user roles o k response

func (*ListUserRolesOK) WriteResponse

func (o *ListUserRolesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListUserRolesParams

type ListUserRolesParams struct {

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

	/*User ID.
	  Required: true
	  In: path
	*/
	ID string
}

ListUserRolesParams contains all the bound params for the list user roles operation typically these are obtained from a http.Request

swagger:parameters listUserRoles

func NewListUserRolesParams

func NewListUserRolesParams() ListUserRolesParams

NewListUserRolesParams creates a new ListUserRolesParams object

There are no default values defined in the spec.

func (*ListUserRolesParams) BindRequest

func (o *ListUserRolesParams) 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 NewListUserRolesParams() beforehand.

type ListUserRolesURL

type ListUserRolesURL struct {
	ID string
	// contains filtered or unexported fields
}

ListUserRolesURL generates an URL for the list user roles operation

func (*ListUserRolesURL) Build

func (o *ListUserRolesURL) Build() (*url.URL, error)

Build a url path and query string

func (*ListUserRolesURL) BuildFull

func (o *ListUserRolesURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ListUserRolesURL) Must

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

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

func (*ListUserRolesURL) SetBasePath

func (o *ListUserRolesURL) 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 (*ListUserRolesURL) String

func (o *ListUserRolesURL) String() string

String returns the string representation of the path with query string

func (*ListUserRolesURL) StringFull

func (o *ListUserRolesURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ListUserRolesURL) WithBasePath

func (o *ListUserRolesURL) WithBasePath(bp string) *ListUserRolesURL

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 ListUserRolesUnauthorized

type ListUserRolesUnauthorized struct {

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

ListUserRolesUnauthorized Unauthorized

swagger:response listUserRolesUnauthorized

func NewListUserRolesUnauthorized

func NewListUserRolesUnauthorized() *ListUserRolesUnauthorized

NewListUserRolesUnauthorized creates ListUserRolesUnauthorized with default headers values

func (*ListUserRolesUnauthorized) SetPayload

func (o *ListUserRolesUnauthorized) SetPayload(payload *models.Error)

SetPayload sets the payload to the list user roles unauthorized response

func (*ListUserRolesUnauthorized) WithPayload

WithPayload adds the payload to the list user roles unauthorized response

func (*ListUserRolesUnauthorized) WriteResponse

func (o *ListUserRolesUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListUserURL

type ListUserURL struct {
	Tutor *bool
	// contains filtered or unexported fields
}

ListUserURL generates an URL for the list user operation

func (*ListUserURL) Build

func (o *ListUserURL) Build() (*url.URL, error)

Build a url path and query string

func (*ListUserURL) BuildFull

func (o *ListUserURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ListUserURL) Must

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

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

func (*ListUserURL) SetBasePath

func (o *ListUserURL) 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 (*ListUserURL) String

func (o *ListUserURL) String() string

String returns the string representation of the path with query string

func (*ListUserURL) StringFull

func (o *ListUserURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ListUserURL) WithBasePath

func (o *ListUserURL) WithBasePath(bp string) *ListUserURL

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 ListUserUnauthorized

type ListUserUnauthorized struct {

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

ListUserUnauthorized Unauthorized

swagger:response listUserUnauthorized

func NewListUserUnauthorized

func NewListUserUnauthorized() *ListUserUnauthorized

NewListUserUnauthorized creates ListUserUnauthorized with default headers values

func (*ListUserUnauthorized) SetPayload

func (o *ListUserUnauthorized) SetPayload(payload *models.Error)

SetPayload sets the payload to the list user unauthorized response

func (*ListUserUnauthorized) WithPayload

func (o *ListUserUnauthorized) WithPayload(payload *models.Error) *ListUserUnauthorized

WithPayload adds the payload to the list user unauthorized response

func (*ListUserUnauthorized) WriteResponse

func (o *ListUserUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ReadMe

type ReadMe struct {
	Context *middleware.Context
	Handler ReadMeHandler
}
ReadMe swagger:route GET /users/me User readMe

Read authenticated user

Read the authenticated user.

func NewReadMe

func NewReadMe(ctx *middleware.Context, handler ReadMeHandler) *ReadMe

NewReadMe creates a new http.Handler for the read me operation

func (*ReadMe) ServeHTTP

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

type ReadMeHandler

type ReadMeHandler interface {
	Handle(ReadMeParams, *models.Principal) middleware.Responder
}

ReadMeHandler interface for that can handle valid read me params

type ReadMeHandlerFunc

type ReadMeHandlerFunc func(ReadMeParams, *models.Principal) middleware.Responder

ReadMeHandlerFunc turns a function with the right signature into a read me handler

func (ReadMeHandlerFunc) Handle

func (fn ReadMeHandlerFunc) Handle(params ReadMeParams, principal *models.Principal) middleware.Responder

Handle executing the request and returning a response

type ReadMeInternalServerError

type ReadMeInternalServerError struct {

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

ReadMeInternalServerError Internal Server Error

swagger:response readMeInternalServerError

func NewReadMeInternalServerError

func NewReadMeInternalServerError() *ReadMeInternalServerError

NewReadMeInternalServerError creates ReadMeInternalServerError with default headers values

func (*ReadMeInternalServerError) SetPayload

func (o *ReadMeInternalServerError) SetPayload(payload *models.Error)

SetPayload sets the payload to the read me internal server error response

func (*ReadMeInternalServerError) WithPayload

WithPayload adds the payload to the read me internal server error response

func (*ReadMeInternalServerError) WriteResponse

func (o *ReadMeInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ReadMeOK

type ReadMeOK struct {

	/*
	  In: Body
	*/
	Payload *ent.User `json:"body,omitempty"`
}

ReadMeOK OK

swagger:response readMeOK

func NewReadMeOK

func NewReadMeOK() *ReadMeOK

NewReadMeOK creates ReadMeOK with default headers values

func (*ReadMeOK) SetPayload

func (o *ReadMeOK) SetPayload(payload *ent.User)

SetPayload sets the payload to the read me o k response

func (*ReadMeOK) WithPayload

func (o *ReadMeOK) WithPayload(payload *ent.User) *ReadMeOK

WithPayload adds the payload to the read me o k response

func (*ReadMeOK) WriteResponse

func (o *ReadMeOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ReadMeParams

type ReadMeParams struct {

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

ReadMeParams contains all the bound params for the read me operation typically these are obtained from a http.Request

swagger:parameters readMe

func NewReadMeParams

func NewReadMeParams() ReadMeParams

NewReadMeParams creates a new ReadMeParams object

There are no default values defined in the spec.

func (*ReadMeParams) BindRequest

func (o *ReadMeParams) 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 NewReadMeParams() beforehand.

type ReadMeURL

type ReadMeURL struct {
	// contains filtered or unexported fields
}

ReadMeURL generates an URL for the read me operation

func (*ReadMeURL) Build

func (o *ReadMeURL) Build() (*url.URL, error)

Build a url path and query string

func (*ReadMeURL) BuildFull

func (o *ReadMeURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ReadMeURL) Must

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

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

func (*ReadMeURL) SetBasePath

func (o *ReadMeURL) 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 (*ReadMeURL) String

func (o *ReadMeURL) String() string

String returns the string representation of the path with query string

func (*ReadMeURL) StringFull

func (o *ReadMeURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ReadMeURL) WithBasePath

func (o *ReadMeURL) WithBasePath(bp string) *ReadMeURL

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 ReadMeUnauthorized

type ReadMeUnauthorized struct {

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

ReadMeUnauthorized Unauthorized

swagger:response readMeUnauthorized

func NewReadMeUnauthorized

func NewReadMeUnauthorized() *ReadMeUnauthorized

NewReadMeUnauthorized creates ReadMeUnauthorized with default headers values

func (*ReadMeUnauthorized) SetPayload

func (o *ReadMeUnauthorized) SetPayload(payload *models.Error)

SetPayload sets the payload to the read me unauthorized response

func (*ReadMeUnauthorized) WithPayload

func (o *ReadMeUnauthorized) WithPayload(payload *models.Error) *ReadMeUnauthorized

WithPayload adds the payload to the read me unauthorized response

func (*ReadMeUnauthorized) WriteResponse

func (o *ReadMeUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ReadUser

type ReadUser struct {
	Context *middleware.Context
	Handler ReadUserHandler
}
ReadUser swagger:route GET /users/{id} User readUser

Read user

Read an user by ID.

func NewReadUser

func NewReadUser(ctx *middleware.Context, handler ReadUserHandler) *ReadUser

NewReadUser creates a new http.Handler for the read user operation

func (*ReadUser) ServeHTTP

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

type ReadUserBadRequest

type ReadUserBadRequest struct {

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

ReadUserBadRequest Bad request

swagger:response readUserBadRequest

func NewReadUserBadRequest

func NewReadUserBadRequest() *ReadUserBadRequest

NewReadUserBadRequest creates ReadUserBadRequest with default headers values

func (*ReadUserBadRequest) SetPayload

func (o *ReadUserBadRequest) SetPayload(payload *models.Error)

SetPayload sets the payload to the read user bad request response

func (*ReadUserBadRequest) WithPayload

func (o *ReadUserBadRequest) WithPayload(payload *models.Error) *ReadUserBadRequest

WithPayload adds the payload to the read user bad request response

func (*ReadUserBadRequest) WriteResponse

func (o *ReadUserBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ReadUserForbidden

type ReadUserForbidden struct {

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

ReadUserForbidden Forbidden

swagger:response readUserForbidden

func NewReadUserForbidden

func NewReadUserForbidden() *ReadUserForbidden

NewReadUserForbidden creates ReadUserForbidden with default headers values

func (*ReadUserForbidden) SetPayload

func (o *ReadUserForbidden) SetPayload(payload *models.Error)

SetPayload sets the payload to the read user forbidden response

func (*ReadUserForbidden) WithPayload

func (o *ReadUserForbidden) WithPayload(payload *models.Error) *ReadUserForbidden

WithPayload adds the payload to the read user forbidden response

func (*ReadUserForbidden) WriteResponse

func (o *ReadUserForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ReadUserHandler

type ReadUserHandler interface {
	Handle(ReadUserParams, *models.Principal) middleware.Responder
}

ReadUserHandler interface for that can handle valid read user params

type ReadUserHandlerFunc

type ReadUserHandlerFunc func(ReadUserParams, *models.Principal) middleware.Responder

ReadUserHandlerFunc turns a function with the right signature into a read user handler

func (ReadUserHandlerFunc) Handle

Handle executing the request and returning a response

type ReadUserInternalServerError

type ReadUserInternalServerError struct {

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

ReadUserInternalServerError Internal Server Error

swagger:response readUserInternalServerError

func NewReadUserInternalServerError

func NewReadUserInternalServerError() *ReadUserInternalServerError

NewReadUserInternalServerError creates ReadUserInternalServerError with default headers values

func (*ReadUserInternalServerError) SetPayload

func (o *ReadUserInternalServerError) SetPayload(payload *models.Error)

SetPayload sets the payload to the read user internal server error response

func (*ReadUserInternalServerError) WithPayload

WithPayload adds the payload to the read user internal server error response

func (*ReadUserInternalServerError) WriteResponse

func (o *ReadUserInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ReadUserNotFound

type ReadUserNotFound struct {

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

ReadUserNotFound Not Found

swagger:response readUserNotFound

func NewReadUserNotFound

func NewReadUserNotFound() *ReadUserNotFound

NewReadUserNotFound creates ReadUserNotFound with default headers values

func (*ReadUserNotFound) SetPayload

func (o *ReadUserNotFound) SetPayload(payload *models.Error)

SetPayload sets the payload to the read user not found response

func (*ReadUserNotFound) WithPayload

func (o *ReadUserNotFound) WithPayload(payload *models.Error) *ReadUserNotFound

WithPayload adds the payload to the read user not found response

func (*ReadUserNotFound) WriteResponse

func (o *ReadUserNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ReadUserOK

type ReadUserOK struct {

	/*
	  In: Body
	*/
	Payload *ent.User `json:"body,omitempty"`
}

ReadUserOK OK

swagger:response readUserOK

func NewReadUserOK

func NewReadUserOK() *ReadUserOK

NewReadUserOK creates ReadUserOK with default headers values

func (*ReadUserOK) SetPayload

func (o *ReadUserOK) SetPayload(payload *ent.User)

SetPayload sets the payload to the read user o k response

func (*ReadUserOK) WithPayload

func (o *ReadUserOK) WithPayload(payload *ent.User) *ReadUserOK

WithPayload adds the payload to the read user o k response

func (*ReadUserOK) WriteResponse

func (o *ReadUserOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ReadUserParams

type ReadUserParams struct {

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

	/*User ID.
	  Required: true
	  In: path
	*/
	ID string
}

ReadUserParams contains all the bound params for the read user operation typically these are obtained from a http.Request

swagger:parameters readUser

func NewReadUserParams

func NewReadUserParams() ReadUserParams

NewReadUserParams creates a new ReadUserParams object

There are no default values defined in the spec.

func (*ReadUserParams) BindRequest

func (o *ReadUserParams) 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 NewReadUserParams() beforehand.

type ReadUserURL

type ReadUserURL struct {
	ID string
	// contains filtered or unexported fields
}

ReadUserURL generates an URL for the read user operation

func (*ReadUserURL) Build

func (o *ReadUserURL) Build() (*url.URL, error)

Build a url path and query string

func (*ReadUserURL) BuildFull

func (o *ReadUserURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ReadUserURL) Must

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

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

func (*ReadUserURL) SetBasePath

func (o *ReadUserURL) 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 (*ReadUserURL) String

func (o *ReadUserURL) String() string

String returns the string representation of the path with query string

func (*ReadUserURL) StringFull

func (o *ReadUserURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ReadUserURL) WithBasePath

func (o *ReadUserURL) WithBasePath(bp string) *ReadUserURL

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 ReadUserUnauthorized

type ReadUserUnauthorized struct {

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

ReadUserUnauthorized Unauthorized

swagger:response readUserUnauthorized

func NewReadUserUnauthorized

func NewReadUserUnauthorized() *ReadUserUnauthorized

NewReadUserUnauthorized creates ReadUserUnauthorized with default headers values

func (*ReadUserUnauthorized) SetPayload

func (o *ReadUserUnauthorized) SetPayload(payload *models.Error)

SetPayload sets the payload to the read user unauthorized response

func (*ReadUserUnauthorized) WithPayload

func (o *ReadUserUnauthorized) WithPayload(payload *models.Error) *ReadUserUnauthorized

WithPayload adds the payload to the read user unauthorized response

func (*ReadUserUnauthorized) WriteResponse

func (o *ReadUserUnauthorized) 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 User 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 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 RemoveCalendar

type RemoveCalendar struct {
	Context *middleware.Context
	Handler RemoveCalendarHandler
}
RemoveCalendar swagger:route DELETE /users/{id}/role/calendar User 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 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 RemoveRole

type RemoveRole struct {
	Context *middleware.Context
	Handler RemoveRoleHandler
}
RemoveRole swagger:route DELETE /users/{id}/role/{role} User removeRole

Remove user role

Remove a role to a user.

func NewRemoveRole

func NewRemoveRole(ctx *middleware.Context, handler RemoveRoleHandler) *RemoveRole

NewRemoveRole creates a new http.Handler for the remove role operation

func (*RemoveRole) ServeHTTP

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

type RemoveRoleBadRequest

type RemoveRoleBadRequest struct {

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

RemoveRoleBadRequest Bad request

swagger:response removeRoleBadRequest

func NewRemoveRoleBadRequest

func NewRemoveRoleBadRequest() *RemoveRoleBadRequest

NewRemoveRoleBadRequest creates RemoveRoleBadRequest with default headers values

func (*RemoveRoleBadRequest) SetPayload

func (o *RemoveRoleBadRequest) SetPayload(payload *models.Error)

SetPayload sets the payload to the remove role bad request response

func (*RemoveRoleBadRequest) WithPayload

func (o *RemoveRoleBadRequest) WithPayload(payload *models.Error) *RemoveRoleBadRequest

WithPayload adds the payload to the remove role bad request response

func (*RemoveRoleBadRequest) WriteResponse

func (o *RemoveRoleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type RemoveRoleHandler

type RemoveRoleHandler interface {
	Handle(RemoveRoleParams, *models.Principal) middleware.Responder
}

RemoveRoleHandler interface for that can handle valid remove role params

type RemoveRoleHandlerFunc

type RemoveRoleHandlerFunc func(RemoveRoleParams, *models.Principal) middleware.Responder

RemoveRoleHandlerFunc turns a function with the right signature into a remove role handler

func (RemoveRoleHandlerFunc) Handle

Handle executing the request and returning a response

type RemoveRoleInternalServerError

type RemoveRoleInternalServerError struct {

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

RemoveRoleInternalServerError Internal Server Error

swagger:response removeRoleInternalServerError

func NewRemoveRoleInternalServerError

func NewRemoveRoleInternalServerError() *RemoveRoleInternalServerError

NewRemoveRoleInternalServerError creates RemoveRoleInternalServerError with default headers values

func (*RemoveRoleInternalServerError) SetPayload

func (o *RemoveRoleInternalServerError) SetPayload(payload *models.Error)

SetPayload sets the payload to the remove role internal server error response

func (*RemoveRoleInternalServerError) WithPayload

WithPayload adds the payload to the remove role internal server error response

func (*RemoveRoleInternalServerError) WriteResponse

func (o *RemoveRoleInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type RemoveRoleNoContent

type RemoveRoleNoContent struct {
}

RemoveRoleNoContent No Content

swagger:response removeRoleNoContent

func NewRemoveRoleNoContent

func NewRemoveRoleNoContent() *RemoveRoleNoContent

NewRemoveRoleNoContent creates RemoveRoleNoContent with default headers values

func (*RemoveRoleNoContent) WriteResponse

func (o *RemoveRoleNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type RemoveRoleNotFound

type RemoveRoleNotFound struct {

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

RemoveRoleNotFound Not Found

swagger:response removeRoleNotFound

func NewRemoveRoleNotFound

func NewRemoveRoleNotFound() *RemoveRoleNotFound

NewRemoveRoleNotFound creates RemoveRoleNotFound with default headers values

func (*RemoveRoleNotFound) SetPayload

func (o *RemoveRoleNotFound) SetPayload(payload *models.Error)

SetPayload sets the payload to the remove role not found response

func (*RemoveRoleNotFound) WithPayload

func (o *RemoveRoleNotFound) WithPayload(payload *models.Error) *RemoveRoleNotFound

WithPayload adds the payload to the remove role not found response

func (*RemoveRoleNotFound) WriteResponse

func (o *RemoveRoleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type RemoveRoleParams

type RemoveRoleParams struct {

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

	/*User ID.
	  Required: true
	  In: path
	*/
	ID string
	/*Role name.
	  Required: true
	  In: path
	*/
	Role string
}

RemoveRoleParams contains all the bound params for the remove role operation typically these are obtained from a http.Request

swagger:parameters removeRole

func NewRemoveRoleParams

func NewRemoveRoleParams() RemoveRoleParams

NewRemoveRoleParams creates a new RemoveRoleParams object

There are no default values defined in the spec.

func (*RemoveRoleParams) BindRequest

func (o *RemoveRoleParams) 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 NewRemoveRoleParams() beforehand.

type RemoveRoleURL

type RemoveRoleURL struct {
	ID   string
	Role string
	// contains filtered or unexported fields
}

RemoveRoleURL generates an URL for the remove role operation

func (*RemoveRoleURL) Build

func (o *RemoveRoleURL) Build() (*url.URL, error)

Build a url path and query string

func (*RemoveRoleURL) BuildFull

func (o *RemoveRoleURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*RemoveRoleURL) Must

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

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

func (*RemoveRoleURL) SetBasePath

func (o *RemoveRoleURL) 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 (*RemoveRoleURL) String

func (o *RemoveRoleURL) String() string

String returns the string representation of the path with query string

func (*RemoveRoleURL) StringFull

func (o *RemoveRoleURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*RemoveRoleURL) WithBasePath

func (o *RemoveRoleURL) WithBasePath(bp string) *RemoveRoleURL

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 RemoveTutor

type RemoveTutor struct {
	Context *middleware.Context
	Handler RemoveTutorHandler
}
RemoveTutor swagger:route DELETE /users/{id}/role/tutor User 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 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 SubscribeMe

type SubscribeMe struct {
	Context *middleware.Context
	Handler SubscribeMeHandler
}
SubscribeMe swagger:route POST /users/me/events/{id} User subscribeMe

Subscribe authenticated user

Subscribe an authenticated user to an event.

func NewSubscribeMe

func NewSubscribeMe(ctx *middleware.Context, handler SubscribeMeHandler) *SubscribeMe

NewSubscribeMe creates a new http.Handler for the subscribe me operation

func (*SubscribeMe) ServeHTTP

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

type SubscribeMeBadRequest

type SubscribeMeBadRequest struct {

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

SubscribeMeBadRequest Bad request

swagger:response subscribeMeBadRequest

func NewSubscribeMeBadRequest

func NewSubscribeMeBadRequest() *SubscribeMeBadRequest

NewSubscribeMeBadRequest creates SubscribeMeBadRequest with default headers values

func (*SubscribeMeBadRequest) SetPayload

func (o *SubscribeMeBadRequest) SetPayload(payload *models.Error)

SetPayload sets the payload to the subscribe me bad request response

func (*SubscribeMeBadRequest) WithPayload

func (o *SubscribeMeBadRequest) WithPayload(payload *models.Error) *SubscribeMeBadRequest

WithPayload adds the payload to the subscribe me bad request response

func (*SubscribeMeBadRequest) WriteResponse

func (o *SubscribeMeBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type SubscribeMeCreated

type SubscribeMeCreated struct {

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

SubscribeMeCreated Created

swagger:response subscribeMeCreated

func NewSubscribeMeCreated

func NewSubscribeMeCreated() *SubscribeMeCreated

NewSubscribeMeCreated creates SubscribeMeCreated with default headers values

func (*SubscribeMeCreated) SetPayload

func (o *SubscribeMeCreated) SetPayload(payload []*ent.Event)

SetPayload sets the payload to the subscribe me created response

func (*SubscribeMeCreated) WithPayload

func (o *SubscribeMeCreated) WithPayload(payload []*ent.Event) *SubscribeMeCreated

WithPayload adds the payload to the subscribe me created response

func (*SubscribeMeCreated) WriteResponse

func (o *SubscribeMeCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type SubscribeMeForbidden

type SubscribeMeForbidden struct {

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

SubscribeMeForbidden Forbidden

swagger:response subscribeMeForbidden

func NewSubscribeMeForbidden

func NewSubscribeMeForbidden() *SubscribeMeForbidden

NewSubscribeMeForbidden creates SubscribeMeForbidden with default headers values

func (*SubscribeMeForbidden) SetPayload

func (o *SubscribeMeForbidden) SetPayload(payload *models.Error)

SetPayload sets the payload to the subscribe me forbidden response

func (*SubscribeMeForbidden) WithPayload

func (o *SubscribeMeForbidden) WithPayload(payload *models.Error) *SubscribeMeForbidden

WithPayload adds the payload to the subscribe me forbidden response

func (*SubscribeMeForbidden) WriteResponse

func (o *SubscribeMeForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type SubscribeMeHandler

type SubscribeMeHandler interface {
	Handle(SubscribeMeParams, *models.Principal) middleware.Responder
}

SubscribeMeHandler interface for that can handle valid subscribe me params

type SubscribeMeHandlerFunc

type SubscribeMeHandlerFunc func(SubscribeMeParams, *models.Principal) middleware.Responder

SubscribeMeHandlerFunc turns a function with the right signature into a subscribe me handler

func (SubscribeMeHandlerFunc) Handle

Handle executing the request and returning a response

type SubscribeMeInternalServerError

type SubscribeMeInternalServerError struct {

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

SubscribeMeInternalServerError Internal Server Error

swagger:response subscribeMeInternalServerError

func NewSubscribeMeInternalServerError

func NewSubscribeMeInternalServerError() *SubscribeMeInternalServerError

NewSubscribeMeInternalServerError creates SubscribeMeInternalServerError with default headers values

func (*SubscribeMeInternalServerError) SetPayload

func (o *SubscribeMeInternalServerError) SetPayload(payload *models.Error)

SetPayload sets the payload to the subscribe me internal server error response

func (*SubscribeMeInternalServerError) WithPayload

WithPayload adds the payload to the subscribe me internal server error response

func (*SubscribeMeInternalServerError) WriteResponse

func (o *SubscribeMeInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type SubscribeMeNotFound

type SubscribeMeNotFound struct {

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

SubscribeMeNotFound Not Found

swagger:response subscribeMeNotFound

func NewSubscribeMeNotFound

func NewSubscribeMeNotFound() *SubscribeMeNotFound

NewSubscribeMeNotFound creates SubscribeMeNotFound with default headers values

func (*SubscribeMeNotFound) SetPayload

func (o *SubscribeMeNotFound) SetPayload(payload *models.Error)

SetPayload sets the payload to the subscribe me not found response

func (*SubscribeMeNotFound) WithPayload

func (o *SubscribeMeNotFound) WithPayload(payload *models.Error) *SubscribeMeNotFound

WithPayload adds the payload to the subscribe me not found response

func (*SubscribeMeNotFound) WriteResponse

func (o *SubscribeMeNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type SubscribeMeParams

type SubscribeMeParams struct {

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

	/*Event ID.
	  Required: true
	  In: path
	*/
	ID string
}

SubscribeMeParams contains all the bound params for the subscribe me operation typically these are obtained from a http.Request

swagger:parameters subscribeMe

func NewSubscribeMeParams

func NewSubscribeMeParams() SubscribeMeParams

NewSubscribeMeParams creates a new SubscribeMeParams object

There are no default values defined in the spec.

func (*SubscribeMeParams) BindRequest

func (o *SubscribeMeParams) 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 NewSubscribeMeParams() beforehand.

type SubscribeMeURL

type SubscribeMeURL struct {
	ID string
	// contains filtered or unexported fields
}

SubscribeMeURL generates an URL for the subscribe me operation

func (*SubscribeMeURL) Build

func (o *SubscribeMeURL) Build() (*url.URL, error)

Build a url path and query string

func (*SubscribeMeURL) BuildFull

func (o *SubscribeMeURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*SubscribeMeURL) Must

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

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

func (*SubscribeMeURL) SetBasePath

func (o *SubscribeMeURL) 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 (*SubscribeMeURL) String

func (o *SubscribeMeURL) String() string

String returns the string representation of the path with query string

func (*SubscribeMeURL) StringFull

func (o *SubscribeMeURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*SubscribeMeURL) WithBasePath

func (o *SubscribeMeURL) WithBasePath(bp string) *SubscribeMeURL

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 SubscribeMeUnauthorized

type SubscribeMeUnauthorized struct {

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

SubscribeMeUnauthorized Unauthorized

swagger:response subscribeMeUnauthorized

func NewSubscribeMeUnauthorized

func NewSubscribeMeUnauthorized() *SubscribeMeUnauthorized

NewSubscribeMeUnauthorized creates SubscribeMeUnauthorized with default headers values

func (*SubscribeMeUnauthorized) SetPayload

func (o *SubscribeMeUnauthorized) SetPayload(payload *models.Error)

SetPayload sets the payload to the subscribe me unauthorized response

func (*SubscribeMeUnauthorized) WithPayload

func (o *SubscribeMeUnauthorized) WithPayload(payload *models.Error) *SubscribeMeUnauthorized

WithPayload adds the payload to the subscribe me unauthorized response

func (*SubscribeMeUnauthorized) WriteResponse

func (o *SubscribeMeUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type SubscribeUser

type SubscribeUser struct {
	Context *middleware.Context
	Handler SubscribeUserHandler
}
SubscribeUser swagger:route POST /users/{userId}/events/{eventId} User subscribeUser

Subscribe user

Subscribe a user to an event.

func NewSubscribeUser

func NewSubscribeUser(ctx *middleware.Context, handler SubscribeUserHandler) *SubscribeUser

NewSubscribeUser creates a new http.Handler for the subscribe user operation

func (*SubscribeUser) ServeHTTP

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

type SubscribeUserBadRequest

type SubscribeUserBadRequest struct {

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

SubscribeUserBadRequest Bad request

swagger:response subscribeUserBadRequest

func NewSubscribeUserBadRequest

func NewSubscribeUserBadRequest() *SubscribeUserBadRequest

NewSubscribeUserBadRequest creates SubscribeUserBadRequest with default headers values

func (*SubscribeUserBadRequest) SetPayload

func (o *SubscribeUserBadRequest) SetPayload(payload *models.Error)

SetPayload sets the payload to the subscribe user bad request response

func (*SubscribeUserBadRequest) WithPayload

func (o *SubscribeUserBadRequest) WithPayload(payload *models.Error) *SubscribeUserBadRequest

WithPayload adds the payload to the subscribe user bad request response

func (*SubscribeUserBadRequest) WriteResponse

func (o *SubscribeUserBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type SubscribeUserCreated

type SubscribeUserCreated struct {

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

SubscribeUserCreated Created

swagger:response subscribeUserCreated

func NewSubscribeUserCreated

func NewSubscribeUserCreated() *SubscribeUserCreated

NewSubscribeUserCreated creates SubscribeUserCreated with default headers values

func (*SubscribeUserCreated) SetPayload

func (o *SubscribeUserCreated) SetPayload(payload []*ent.Event)

SetPayload sets the payload to the subscribe user created response

func (*SubscribeUserCreated) WithPayload

func (o *SubscribeUserCreated) WithPayload(payload []*ent.Event) *SubscribeUserCreated

WithPayload adds the payload to the subscribe user created response

func (*SubscribeUserCreated) WriteResponse

func (o *SubscribeUserCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type SubscribeUserForbidden

type SubscribeUserForbidden struct {

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

SubscribeUserForbidden Forbidden

swagger:response subscribeUserForbidden

func NewSubscribeUserForbidden

func NewSubscribeUserForbidden() *SubscribeUserForbidden

NewSubscribeUserForbidden creates SubscribeUserForbidden with default headers values

func (*SubscribeUserForbidden) SetPayload

func (o *SubscribeUserForbidden) SetPayload(payload *models.Error)

SetPayload sets the payload to the subscribe user forbidden response

func (*SubscribeUserForbidden) WithPayload

func (o *SubscribeUserForbidden) WithPayload(payload *models.Error) *SubscribeUserForbidden

WithPayload adds the payload to the subscribe user forbidden response

func (*SubscribeUserForbidden) WriteResponse

func (o *SubscribeUserForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type SubscribeUserHandler

type SubscribeUserHandler interface {
	Handle(SubscribeUserParams, *models.Principal) middleware.Responder
}

SubscribeUserHandler interface for that can handle valid subscribe user params

type SubscribeUserHandlerFunc

type SubscribeUserHandlerFunc func(SubscribeUserParams, *models.Principal) middleware.Responder

SubscribeUserHandlerFunc turns a function with the right signature into a subscribe user handler

func (SubscribeUserHandlerFunc) Handle

Handle executing the request and returning a response

type SubscribeUserInternalServerError

type SubscribeUserInternalServerError struct {

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

SubscribeUserInternalServerError Internal Server Error

swagger:response subscribeUserInternalServerError

func NewSubscribeUserInternalServerError

func NewSubscribeUserInternalServerError() *SubscribeUserInternalServerError

NewSubscribeUserInternalServerError creates SubscribeUserInternalServerError with default headers values

func (*SubscribeUserInternalServerError) SetPayload

func (o *SubscribeUserInternalServerError) SetPayload(payload *models.Error)

SetPayload sets the payload to the subscribe user internal server error response

func (*SubscribeUserInternalServerError) WithPayload

WithPayload adds the payload to the subscribe user internal server error response

func (*SubscribeUserInternalServerError) WriteResponse

func (o *SubscribeUserInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type SubscribeUserNotFound

type SubscribeUserNotFound struct {

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

SubscribeUserNotFound Not Found

swagger:response subscribeUserNotFound

func NewSubscribeUserNotFound

func NewSubscribeUserNotFound() *SubscribeUserNotFound

NewSubscribeUserNotFound creates SubscribeUserNotFound with default headers values

func (*SubscribeUserNotFound) SetPayload

func (o *SubscribeUserNotFound) SetPayload(payload *models.Error)

SetPayload sets the payload to the subscribe user not found response

func (*SubscribeUserNotFound) WithPayload

func (o *SubscribeUserNotFound) WithPayload(payload *models.Error) *SubscribeUserNotFound

WithPayload adds the payload to the subscribe user not found response

func (*SubscribeUserNotFound) WriteResponse

func (o *SubscribeUserNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type SubscribeUserParams

type SubscribeUserParams struct {

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

	/*Event ID.
	  Required: true
	  In: path
	*/
	EventID string
	/*User ID.
	  Required: true
	  In: path
	*/
	UserID string
}

SubscribeUserParams contains all the bound params for the subscribe user operation typically these are obtained from a http.Request

swagger:parameters subscribeUser

func NewSubscribeUserParams

func NewSubscribeUserParams() SubscribeUserParams

NewSubscribeUserParams creates a new SubscribeUserParams object

There are no default values defined in the spec.

func (*SubscribeUserParams) BindRequest

func (o *SubscribeUserParams) 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 NewSubscribeUserParams() beforehand.

type SubscribeUserURL

type SubscribeUserURL struct {
	EventID string
	UserID  string
	// contains filtered or unexported fields
}

SubscribeUserURL generates an URL for the subscribe user operation

func (*SubscribeUserURL) Build

func (o *SubscribeUserURL) Build() (*url.URL, error)

Build a url path and query string

func (*SubscribeUserURL) BuildFull

func (o *SubscribeUserURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*SubscribeUserURL) Must

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

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

func (*SubscribeUserURL) SetBasePath

func (o *SubscribeUserURL) 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 (*SubscribeUserURL) String

func (o *SubscribeUserURL) String() string

String returns the string representation of the path with query string

func (*SubscribeUserURL) StringFull

func (o *SubscribeUserURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*SubscribeUserURL) WithBasePath

func (o *SubscribeUserURL) WithBasePath(bp string) *SubscribeUserURL

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 SubscribeUserUnauthorized

type SubscribeUserUnauthorized struct {

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

SubscribeUserUnauthorized Unauthorized

swagger:response subscribeUserUnauthorized

func NewSubscribeUserUnauthorized

func NewSubscribeUserUnauthorized() *SubscribeUserUnauthorized

NewSubscribeUserUnauthorized creates SubscribeUserUnauthorized with default headers values

func (*SubscribeUserUnauthorized) SetPayload

func (o *SubscribeUserUnauthorized) SetPayload(payload *models.Error)

SetPayload sets the payload to the subscribe user unauthorized response

func (*SubscribeUserUnauthorized) WithPayload

WithPayload adds the payload to the subscribe user unauthorized response

func (*SubscribeUserUnauthorized) WriteResponse

func (o *SubscribeUserUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UnsubscribeMe

type UnsubscribeMe struct {
	Context *middleware.Context
	Handler UnsubscribeMeHandler
}
UnsubscribeMe swagger:route DELETE /users/me/events/{id} User unsubscribeMe

Unsubscribe authenticated user

Unsubscribe an authenticated user to an event.

func NewUnsubscribeMe

func NewUnsubscribeMe(ctx *middleware.Context, handler UnsubscribeMeHandler) *UnsubscribeMe

NewUnsubscribeMe creates a new http.Handler for the unsubscribe me operation

func (*UnsubscribeMe) ServeHTTP

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

type UnsubscribeMeBadRequest

type UnsubscribeMeBadRequest struct {

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

UnsubscribeMeBadRequest Bad request

swagger:response unsubscribeMeBadRequest

func NewUnsubscribeMeBadRequest

func NewUnsubscribeMeBadRequest() *UnsubscribeMeBadRequest

NewUnsubscribeMeBadRequest creates UnsubscribeMeBadRequest with default headers values

func (*UnsubscribeMeBadRequest) SetPayload

func (o *UnsubscribeMeBadRequest) SetPayload(payload *models.Error)

SetPayload sets the payload to the unsubscribe me bad request response

func (*UnsubscribeMeBadRequest) WithPayload

func (o *UnsubscribeMeBadRequest) WithPayload(payload *models.Error) *UnsubscribeMeBadRequest

WithPayload adds the payload to the unsubscribe me bad request response

func (*UnsubscribeMeBadRequest) WriteResponse

func (o *UnsubscribeMeBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UnsubscribeMeForbidden

type UnsubscribeMeForbidden struct {

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

UnsubscribeMeForbidden Forbidden

swagger:response unsubscribeMeForbidden

func NewUnsubscribeMeForbidden

func NewUnsubscribeMeForbidden() *UnsubscribeMeForbidden

NewUnsubscribeMeForbidden creates UnsubscribeMeForbidden with default headers values

func (*UnsubscribeMeForbidden) SetPayload

func (o *UnsubscribeMeForbidden) SetPayload(payload *models.Error)

SetPayload sets the payload to the unsubscribe me forbidden response

func (*UnsubscribeMeForbidden) WithPayload

func (o *UnsubscribeMeForbidden) WithPayload(payload *models.Error) *UnsubscribeMeForbidden

WithPayload adds the payload to the unsubscribe me forbidden response

func (*UnsubscribeMeForbidden) WriteResponse

func (o *UnsubscribeMeForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UnsubscribeMeHandler

type UnsubscribeMeHandler interface {
	Handle(UnsubscribeMeParams, *models.Principal) middleware.Responder
}

UnsubscribeMeHandler interface for that can handle valid unsubscribe me params

type UnsubscribeMeHandlerFunc

type UnsubscribeMeHandlerFunc func(UnsubscribeMeParams, *models.Principal) middleware.Responder

UnsubscribeMeHandlerFunc turns a function with the right signature into a unsubscribe me handler

func (UnsubscribeMeHandlerFunc) Handle

Handle executing the request and returning a response

type UnsubscribeMeInternalServerError

type UnsubscribeMeInternalServerError struct {

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

UnsubscribeMeInternalServerError Internal Server Error

swagger:response unsubscribeMeInternalServerError

func NewUnsubscribeMeInternalServerError

func NewUnsubscribeMeInternalServerError() *UnsubscribeMeInternalServerError

NewUnsubscribeMeInternalServerError creates UnsubscribeMeInternalServerError with default headers values

func (*UnsubscribeMeInternalServerError) SetPayload

func (o *UnsubscribeMeInternalServerError) SetPayload(payload *models.Error)

SetPayload sets the payload to the unsubscribe me internal server error response

func (*UnsubscribeMeInternalServerError) WithPayload

WithPayload adds the payload to the unsubscribe me internal server error response

func (*UnsubscribeMeInternalServerError) WriteResponse

func (o *UnsubscribeMeInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UnsubscribeMeNoContent

type UnsubscribeMeNoContent struct {
}

UnsubscribeMeNoContent No Content

swagger:response unsubscribeMeNoContent

func NewUnsubscribeMeNoContent

func NewUnsubscribeMeNoContent() *UnsubscribeMeNoContent

NewUnsubscribeMeNoContent creates UnsubscribeMeNoContent with default headers values

func (*UnsubscribeMeNoContent) WriteResponse

func (o *UnsubscribeMeNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UnsubscribeMeNotFound

type UnsubscribeMeNotFound struct {

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

UnsubscribeMeNotFound Not Found

swagger:response unsubscribeMeNotFound

func NewUnsubscribeMeNotFound

func NewUnsubscribeMeNotFound() *UnsubscribeMeNotFound

NewUnsubscribeMeNotFound creates UnsubscribeMeNotFound with default headers values

func (*UnsubscribeMeNotFound) SetPayload

func (o *UnsubscribeMeNotFound) SetPayload(payload *models.Error)

SetPayload sets the payload to the unsubscribe me not found response

func (*UnsubscribeMeNotFound) WithPayload

func (o *UnsubscribeMeNotFound) WithPayload(payload *models.Error) *UnsubscribeMeNotFound

WithPayload adds the payload to the unsubscribe me not found response

func (*UnsubscribeMeNotFound) WriteResponse

func (o *UnsubscribeMeNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UnsubscribeMeParams

type UnsubscribeMeParams struct {

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

	/*Event ID.
	  Required: true
	  In: path
	*/
	ID string
}

UnsubscribeMeParams contains all the bound params for the unsubscribe me operation typically these are obtained from a http.Request

swagger:parameters unsubscribeMe

func NewUnsubscribeMeParams

func NewUnsubscribeMeParams() UnsubscribeMeParams

NewUnsubscribeMeParams creates a new UnsubscribeMeParams object

There are no default values defined in the spec.

func (*UnsubscribeMeParams) BindRequest

func (o *UnsubscribeMeParams) 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 NewUnsubscribeMeParams() beforehand.

type UnsubscribeMeURL

type UnsubscribeMeURL struct {
	ID string
	// contains filtered or unexported fields
}

UnsubscribeMeURL generates an URL for the unsubscribe me operation

func (*UnsubscribeMeURL) Build

func (o *UnsubscribeMeURL) Build() (*url.URL, error)

Build a url path and query string

func (*UnsubscribeMeURL) BuildFull

func (o *UnsubscribeMeURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*UnsubscribeMeURL) Must

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

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

func (*UnsubscribeMeURL) SetBasePath

func (o *UnsubscribeMeURL) 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 (*UnsubscribeMeURL) String

func (o *UnsubscribeMeURL) String() string

String returns the string representation of the path with query string

func (*UnsubscribeMeURL) StringFull

func (o *UnsubscribeMeURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*UnsubscribeMeURL) WithBasePath

func (o *UnsubscribeMeURL) WithBasePath(bp string) *UnsubscribeMeURL

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 UnsubscribeMeUnauthorized

type UnsubscribeMeUnauthorized struct {

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

UnsubscribeMeUnauthorized Unauthorized

swagger:response unsubscribeMeUnauthorized

func NewUnsubscribeMeUnauthorized

func NewUnsubscribeMeUnauthorized() *UnsubscribeMeUnauthorized

NewUnsubscribeMeUnauthorized creates UnsubscribeMeUnauthorized with default headers values

func (*UnsubscribeMeUnauthorized) SetPayload

func (o *UnsubscribeMeUnauthorized) SetPayload(payload *models.Error)

SetPayload sets the payload to the unsubscribe me unauthorized response

func (*UnsubscribeMeUnauthorized) WithPayload

WithPayload adds the payload to the unsubscribe me unauthorized response

func (*UnsubscribeMeUnauthorized) WriteResponse

func (o *UnsubscribeMeUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UnsubscribeUser

type UnsubscribeUser struct {
	Context *middleware.Context
	Handler UnsubscribeUserHandler
}
UnsubscribeUser swagger:route DELETE /users/{userId}/events/{eventId} User unsubscribeUser

Unsubscribe user

Unsubscribe a user to an event.

func NewUnsubscribeUser

func NewUnsubscribeUser(ctx *middleware.Context, handler UnsubscribeUserHandler) *UnsubscribeUser

NewUnsubscribeUser creates a new http.Handler for the unsubscribe user operation

func (*UnsubscribeUser) ServeHTTP

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

type UnsubscribeUserBadRequest

type UnsubscribeUserBadRequest struct {

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

UnsubscribeUserBadRequest Bad request

swagger:response unsubscribeUserBadRequest

func NewUnsubscribeUserBadRequest

func NewUnsubscribeUserBadRequest() *UnsubscribeUserBadRequest

NewUnsubscribeUserBadRequest creates UnsubscribeUserBadRequest with default headers values

func (*UnsubscribeUserBadRequest) SetPayload

func (o *UnsubscribeUserBadRequest) SetPayload(payload *models.Error)

SetPayload sets the payload to the unsubscribe user bad request response

func (*UnsubscribeUserBadRequest) WithPayload

WithPayload adds the payload to the unsubscribe user bad request response

func (*UnsubscribeUserBadRequest) WriteResponse

func (o *UnsubscribeUserBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UnsubscribeUserForbidden

type UnsubscribeUserForbidden struct {

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

UnsubscribeUserForbidden Forbidden

swagger:response unsubscribeUserForbidden

func NewUnsubscribeUserForbidden

func NewUnsubscribeUserForbidden() *UnsubscribeUserForbidden

NewUnsubscribeUserForbidden creates UnsubscribeUserForbidden with default headers values

func (*UnsubscribeUserForbidden) SetPayload

func (o *UnsubscribeUserForbidden) SetPayload(payload *models.Error)

SetPayload sets the payload to the unsubscribe user forbidden response

func (*UnsubscribeUserForbidden) WithPayload

WithPayload adds the payload to the unsubscribe user forbidden response

func (*UnsubscribeUserForbidden) WriteResponse

func (o *UnsubscribeUserForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UnsubscribeUserHandler

type UnsubscribeUserHandler interface {
	Handle(UnsubscribeUserParams, *models.Principal) middleware.Responder
}

UnsubscribeUserHandler interface for that can handle valid unsubscribe user params

type UnsubscribeUserHandlerFunc

type UnsubscribeUserHandlerFunc func(UnsubscribeUserParams, *models.Principal) middleware.Responder

UnsubscribeUserHandlerFunc turns a function with the right signature into a unsubscribe user handler

func (UnsubscribeUserHandlerFunc) Handle

Handle executing the request and returning a response

type UnsubscribeUserInternalServerError

type UnsubscribeUserInternalServerError struct {

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

UnsubscribeUserInternalServerError Internal Server Error

swagger:response unsubscribeUserInternalServerError

func NewUnsubscribeUserInternalServerError

func NewUnsubscribeUserInternalServerError() *UnsubscribeUserInternalServerError

NewUnsubscribeUserInternalServerError creates UnsubscribeUserInternalServerError with default headers values

func (*UnsubscribeUserInternalServerError) SetPayload

func (o *UnsubscribeUserInternalServerError) SetPayload(payload *models.Error)

SetPayload sets the payload to the unsubscribe user internal server error response

func (*UnsubscribeUserInternalServerError) WithPayload

WithPayload adds the payload to the unsubscribe user internal server error response

func (*UnsubscribeUserInternalServerError) WriteResponse

WriteResponse to the client

type UnsubscribeUserNoContent

type UnsubscribeUserNoContent struct {
}

UnsubscribeUserNoContent No Content

swagger:response unsubscribeUserNoContent

func NewUnsubscribeUserNoContent

func NewUnsubscribeUserNoContent() *UnsubscribeUserNoContent

NewUnsubscribeUserNoContent creates UnsubscribeUserNoContent with default headers values

func (*UnsubscribeUserNoContent) WriteResponse

func (o *UnsubscribeUserNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UnsubscribeUserNotFound

type UnsubscribeUserNotFound struct {

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

UnsubscribeUserNotFound Not Found

swagger:response unsubscribeUserNotFound

func NewUnsubscribeUserNotFound

func NewUnsubscribeUserNotFound() *UnsubscribeUserNotFound

NewUnsubscribeUserNotFound creates UnsubscribeUserNotFound with default headers values

func (*UnsubscribeUserNotFound) SetPayload

func (o *UnsubscribeUserNotFound) SetPayload(payload *models.Error)

SetPayload sets the payload to the unsubscribe user not found response

func (*UnsubscribeUserNotFound) WithPayload

func (o *UnsubscribeUserNotFound) WithPayload(payload *models.Error) *UnsubscribeUserNotFound

WithPayload adds the payload to the unsubscribe user not found response

func (*UnsubscribeUserNotFound) WriteResponse

func (o *UnsubscribeUserNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UnsubscribeUserParams

type UnsubscribeUserParams struct {

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

	/*Event ID.
	  Required: true
	  In: path
	*/
	EventID string
	/*User ID.
	  Required: true
	  In: path
	*/
	UserID string
}

UnsubscribeUserParams contains all the bound params for the unsubscribe user operation typically these are obtained from a http.Request

swagger:parameters unsubscribeUser

func NewUnsubscribeUserParams

func NewUnsubscribeUserParams() UnsubscribeUserParams

NewUnsubscribeUserParams creates a new UnsubscribeUserParams object

There are no default values defined in the spec.

func (*UnsubscribeUserParams) BindRequest

func (o *UnsubscribeUserParams) 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 NewUnsubscribeUserParams() beforehand.

type UnsubscribeUserURL

type UnsubscribeUserURL struct {
	EventID string
	UserID  string
	// contains filtered or unexported fields
}

UnsubscribeUserURL generates an URL for the unsubscribe user operation

func (*UnsubscribeUserURL) Build

func (o *UnsubscribeUserURL) Build() (*url.URL, error)

Build a url path and query string

func (*UnsubscribeUserURL) BuildFull

func (o *UnsubscribeUserURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*UnsubscribeUserURL) Must

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

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

func (*UnsubscribeUserURL) SetBasePath

func (o *UnsubscribeUserURL) 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 (*UnsubscribeUserURL) String

func (o *UnsubscribeUserURL) String() string

String returns the string representation of the path with query string

func (*UnsubscribeUserURL) StringFull

func (o *UnsubscribeUserURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*UnsubscribeUserURL) WithBasePath

func (o *UnsubscribeUserURL) WithBasePath(bp string) *UnsubscribeUserURL

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 UnsubscribeUserUnauthorized

type UnsubscribeUserUnauthorized struct {

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

UnsubscribeUserUnauthorized Unauthorized

swagger:response unsubscribeUserUnauthorized

func NewUnsubscribeUserUnauthorized

func NewUnsubscribeUserUnauthorized() *UnsubscribeUserUnauthorized

NewUnsubscribeUserUnauthorized creates UnsubscribeUserUnauthorized with default headers values

func (*UnsubscribeUserUnauthorized) SetPayload

func (o *UnsubscribeUserUnauthorized) SetPayload(payload *models.Error)

SetPayload sets the payload to the unsubscribe user unauthorized response

func (*UnsubscribeUserUnauthorized) WithPayload

WithPayload adds the payload to the unsubscribe user unauthorized response

func (*UnsubscribeUserUnauthorized) WriteResponse

func (o *UnsubscribeUserUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateMe

type UpdateMe struct {
	Context *middleware.Context
	Handler UpdateMeHandler
}
UpdateMe swagger:route PATCH /users/me User updateMe

Update authenticated user

Update the authenticated user.

func NewUpdateMe

func NewUpdateMe(ctx *middleware.Context, handler UpdateMeHandler) *UpdateMe

NewUpdateMe creates a new http.Handler for the update me operation

func (*UpdateMe) ServeHTTP

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

type UpdateMeBadRequest

type UpdateMeBadRequest struct {

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

UpdateMeBadRequest Bad request

swagger:response updateMeBadRequest

func NewUpdateMeBadRequest

func NewUpdateMeBadRequest() *UpdateMeBadRequest

NewUpdateMeBadRequest creates UpdateMeBadRequest with default headers values

func (*UpdateMeBadRequest) SetPayload

func (o *UpdateMeBadRequest) SetPayload(payload *models.Error)

SetPayload sets the payload to the update me bad request response

func (*UpdateMeBadRequest) WithPayload

func (o *UpdateMeBadRequest) WithPayload(payload *models.Error) *UpdateMeBadRequest

WithPayload adds the payload to the update me bad request response

func (*UpdateMeBadRequest) WriteResponse

func (o *UpdateMeBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateMeHandler

type UpdateMeHandler interface {
	Handle(UpdateMeParams, *models.Principal) middleware.Responder
}

UpdateMeHandler interface for that can handle valid update me params

type UpdateMeHandlerFunc

type UpdateMeHandlerFunc func(UpdateMeParams, *models.Principal) middleware.Responder

UpdateMeHandlerFunc turns a function with the right signature into a update me handler

func (UpdateMeHandlerFunc) Handle

Handle executing the request and returning a response

type UpdateMeInternalServerError

type UpdateMeInternalServerError struct {

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

UpdateMeInternalServerError Internal Server Error

swagger:response updateMeInternalServerError

func NewUpdateMeInternalServerError

func NewUpdateMeInternalServerError() *UpdateMeInternalServerError

NewUpdateMeInternalServerError creates UpdateMeInternalServerError with default headers values

func (*UpdateMeInternalServerError) SetPayload

func (o *UpdateMeInternalServerError) SetPayload(payload *models.Error)

SetPayload sets the payload to the update me internal server error response

func (*UpdateMeInternalServerError) WithPayload

WithPayload adds the payload to the update me internal server error response

func (*UpdateMeInternalServerError) WriteResponse

func (o *UpdateMeInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateMeOK

type UpdateMeOK struct {

	/*
	  In: Body
	*/
	Payload *ent.User `json:"body,omitempty"`
}

UpdateMeOK OK

swagger:response updateMeOK

func NewUpdateMeOK

func NewUpdateMeOK() *UpdateMeOK

NewUpdateMeOK creates UpdateMeOK with default headers values

func (*UpdateMeOK) SetPayload

func (o *UpdateMeOK) SetPayload(payload *ent.User)

SetPayload sets the payload to the update me o k response

func (*UpdateMeOK) WithPayload

func (o *UpdateMeOK) WithPayload(payload *ent.User) *UpdateMeOK

WithPayload adds the payload to the update me o k response

func (*UpdateMeOK) WriteResponse

func (o *UpdateMeOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateMeParams

type UpdateMeParams struct {

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

	/*User to update.
	  Required: true
	  In: body
	*/
	User *ent.User
}

UpdateMeParams contains all the bound params for the update me operation typically these are obtained from a http.Request

swagger:parameters updateMe

func NewUpdateMeParams

func NewUpdateMeParams() UpdateMeParams

NewUpdateMeParams creates a new UpdateMeParams object

There are no default values defined in the spec.

func (*UpdateMeParams) BindRequest

func (o *UpdateMeParams) 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 NewUpdateMeParams() beforehand.

type UpdateMeURL

type UpdateMeURL struct {
	// contains filtered or unexported fields
}

UpdateMeURL generates an URL for the update me operation

func (*UpdateMeURL) Build

func (o *UpdateMeURL) Build() (*url.URL, error)

Build a url path and query string

func (*UpdateMeURL) BuildFull

func (o *UpdateMeURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*UpdateMeURL) Must

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

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

func (*UpdateMeURL) SetBasePath

func (o *UpdateMeURL) 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 (*UpdateMeURL) String

func (o *UpdateMeURL) String() string

String returns the string representation of the path with query string

func (*UpdateMeURL) StringFull

func (o *UpdateMeURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*UpdateMeURL) WithBasePath

func (o *UpdateMeURL) WithBasePath(bp string) *UpdateMeURL

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 UpdateMeUnauthorized

type UpdateMeUnauthorized struct {

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

UpdateMeUnauthorized Unauthorized

swagger:response updateMeUnauthorized

func NewUpdateMeUnauthorized

func NewUpdateMeUnauthorized() *UpdateMeUnauthorized

NewUpdateMeUnauthorized creates UpdateMeUnauthorized with default headers values

func (*UpdateMeUnauthorized) SetPayload

func (o *UpdateMeUnauthorized) SetPayload(payload *models.Error)

SetPayload sets the payload to the update me unauthorized response

func (*UpdateMeUnauthorized) WithPayload

func (o *UpdateMeUnauthorized) WithPayload(payload *models.Error) *UpdateMeUnauthorized

WithPayload adds the payload to the update me unauthorized response

func (*UpdateMeUnauthorized) WriteResponse

func (o *UpdateMeUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateUser

type UpdateUser struct {
	Context *middleware.Context
	Handler UpdateUserHandler
}
UpdateUser swagger:route PATCH /users/{id} User updateUser

Update user

Update an user by ID.

func NewUpdateUser

func NewUpdateUser(ctx *middleware.Context, handler UpdateUserHandler) *UpdateUser

NewUpdateUser creates a new http.Handler for the update user operation

func (*UpdateUser) ServeHTTP

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

type UpdateUserBadRequest

type UpdateUserBadRequest struct {

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

UpdateUserBadRequest Bad request

swagger:response updateUserBadRequest

func NewUpdateUserBadRequest

func NewUpdateUserBadRequest() *UpdateUserBadRequest

NewUpdateUserBadRequest creates UpdateUserBadRequest with default headers values

func (*UpdateUserBadRequest) SetPayload

func (o *UpdateUserBadRequest) SetPayload(payload *models.Error)

SetPayload sets the payload to the update user bad request response

func (*UpdateUserBadRequest) WithPayload

func (o *UpdateUserBadRequest) WithPayload(payload *models.Error) *UpdateUserBadRequest

WithPayload adds the payload to the update user bad request response

func (*UpdateUserBadRequest) WriteResponse

func (o *UpdateUserBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateUserForbidden

type UpdateUserForbidden struct {

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

UpdateUserForbidden Forbidden

swagger:response updateUserForbidden

func NewUpdateUserForbidden

func NewUpdateUserForbidden() *UpdateUserForbidden

NewUpdateUserForbidden creates UpdateUserForbidden with default headers values

func (*UpdateUserForbidden) SetPayload

func (o *UpdateUserForbidden) SetPayload(payload *models.Error)

SetPayload sets the payload to the update user forbidden response

func (*UpdateUserForbidden) WithPayload

func (o *UpdateUserForbidden) WithPayload(payload *models.Error) *UpdateUserForbidden

WithPayload adds the payload to the update user forbidden response

func (*UpdateUserForbidden) WriteResponse

func (o *UpdateUserForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateUserHandler

type UpdateUserHandler interface {
	Handle(UpdateUserParams, *models.Principal) middleware.Responder
}

UpdateUserHandler interface for that can handle valid update user params

type UpdateUserHandlerFunc

type UpdateUserHandlerFunc func(UpdateUserParams, *models.Principal) middleware.Responder

UpdateUserHandlerFunc turns a function with the right signature into a update user handler

func (UpdateUserHandlerFunc) Handle

Handle executing the request and returning a response

type UpdateUserInternalServerError

type UpdateUserInternalServerError struct {

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

UpdateUserInternalServerError Internal Server Error

swagger:response updateUserInternalServerError

func NewUpdateUserInternalServerError

func NewUpdateUserInternalServerError() *UpdateUserInternalServerError

NewUpdateUserInternalServerError creates UpdateUserInternalServerError with default headers values

func (*UpdateUserInternalServerError) SetPayload

func (o *UpdateUserInternalServerError) SetPayload(payload *models.Error)

SetPayload sets the payload to the update user internal server error response

func (*UpdateUserInternalServerError) WithPayload

WithPayload adds the payload to the update user internal server error response

func (*UpdateUserInternalServerError) WriteResponse

func (o *UpdateUserInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateUserNotFound

type UpdateUserNotFound struct {

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

UpdateUserNotFound Not Found

swagger:response updateUserNotFound

func NewUpdateUserNotFound

func NewUpdateUserNotFound() *UpdateUserNotFound

NewUpdateUserNotFound creates UpdateUserNotFound with default headers values

func (*UpdateUserNotFound) SetPayload

func (o *UpdateUserNotFound) SetPayload(payload *models.Error)

SetPayload sets the payload to the update user not found response

func (*UpdateUserNotFound) WithPayload

func (o *UpdateUserNotFound) WithPayload(payload *models.Error) *UpdateUserNotFound

WithPayload adds the payload to the update user not found response

func (*UpdateUserNotFound) WriteResponse

func (o *UpdateUserNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateUserOK

type UpdateUserOK struct {

	/*
	  In: Body
	*/
	Payload *ent.User `json:"body,omitempty"`
}

UpdateUserOK OK

swagger:response updateUserOK

func NewUpdateUserOK

func NewUpdateUserOK() *UpdateUserOK

NewUpdateUserOK creates UpdateUserOK with default headers values

func (*UpdateUserOK) SetPayload

func (o *UpdateUserOK) SetPayload(payload *ent.User)

SetPayload sets the payload to the update user o k response

func (*UpdateUserOK) WithPayload

func (o *UpdateUserOK) WithPayload(payload *ent.User) *UpdateUserOK

WithPayload adds the payload to the update user o k response

func (*UpdateUserOK) WriteResponse

func (o *UpdateUserOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateUserParams

type UpdateUserParams struct {

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

	/*User ID.
	  Required: true
	  In: path
	*/
	ID string
	/*User to update.
	  Required: true
	  In: body
	*/
	User *ent.User
}

UpdateUserParams contains all the bound params for the update user operation typically these are obtained from a http.Request

swagger:parameters updateUser

func NewUpdateUserParams

func NewUpdateUserParams() UpdateUserParams

NewUpdateUserParams creates a new UpdateUserParams object

There are no default values defined in the spec.

func (*UpdateUserParams) BindRequest

func (o *UpdateUserParams) 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 NewUpdateUserParams() beforehand.

type UpdateUserURL

type UpdateUserURL struct {
	ID string
	// contains filtered or unexported fields
}

UpdateUserURL generates an URL for the update user operation

func (*UpdateUserURL) Build

func (o *UpdateUserURL) Build() (*url.URL, error)

Build a url path and query string

func (*UpdateUserURL) BuildFull

func (o *UpdateUserURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*UpdateUserURL) Must

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

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

func (*UpdateUserURL) SetBasePath

func (o *UpdateUserURL) 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 (*UpdateUserURL) String

func (o *UpdateUserURL) String() string

String returns the string representation of the path with query string

func (*UpdateUserURL) StringFull

func (o *UpdateUserURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*UpdateUserURL) WithBasePath

func (o *UpdateUserURL) WithBasePath(bp string) *UpdateUserURL

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 UpdateUserUnauthorized

type UpdateUserUnauthorized struct {

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

UpdateUserUnauthorized Unauthorized

swagger:response updateUserUnauthorized

func NewUpdateUserUnauthorized

func NewUpdateUserUnauthorized() *UpdateUserUnauthorized

NewUpdateUserUnauthorized creates UpdateUserUnauthorized with default headers values

func (*UpdateUserUnauthorized) SetPayload

func (o *UpdateUserUnauthorized) SetPayload(payload *models.Error)

SetPayload sets the payload to the update user unauthorized response

func (*UpdateUserUnauthorized) WithPayload

func (o *UpdateUserUnauthorized) WithPayload(payload *models.Error) *UpdateUserUnauthorized

WithPayload adds the payload to the update user unauthorized response

func (*UpdateUserUnauthorized) WriteResponse

func (o *UpdateUserUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

Source Files

Jump to

Keyboard shortcuts

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