Documentation ¶
Index ¶
- Constants
- type AddAdmin
- type AddAdminBadRequest
- type AddAdminCreated
- type AddAdminHandler
- type AddAdminHandlerFunc
- type AddAdminInternalServerError
- type AddAdminNotFound
- type AddAdminParams
- type AddAdminURL
- func (o *AddAdminURL) Build() (*url.URL, error)
- func (o *AddAdminURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *AddAdminURL) Must(u *url.URL, err error) *url.URL
- func (o *AddAdminURL) SetBasePath(bp string)
- func (o *AddAdminURL) String() string
- func (o *AddAdminURL) StringFull(scheme, host string) string
- func (o *AddAdminURL) WithBasePath(bp string) *AddAdminURL
- type AddCalendar
- type AddCalendarBadRequest
- type AddCalendarCreated
- type AddCalendarHandler
- type AddCalendarHandlerFunc
- type AddCalendarInternalServerError
- type AddCalendarNotFound
- type AddCalendarParams
- type AddCalendarURL
- func (o *AddCalendarURL) Build() (*url.URL, error)
- func (o *AddCalendarURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *AddCalendarURL) Must(u *url.URL, err error) *url.URL
- func (o *AddCalendarURL) SetBasePath(bp string)
- func (o *AddCalendarURL) String() string
- func (o *AddCalendarURL) StringFull(scheme, host string) string
- func (o *AddCalendarURL) WithBasePath(bp string) *AddCalendarURL
- type AddRole
- type AddRoleBadRequest
- type AddRoleCreated
- type AddRoleHandler
- type AddRoleHandlerFunc
- type AddRoleInternalServerError
- type AddRoleNotFound
- type AddRoleParams
- type AddRoleURL
- func (o *AddRoleURL) Build() (*url.URL, error)
- func (o *AddRoleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *AddRoleURL) Must(u *url.URL, err error) *url.URL
- func (o *AddRoleURL) SetBasePath(bp string)
- func (o *AddRoleURL) String() string
- func (o *AddRoleURL) StringFull(scheme, host string) string
- func (o *AddRoleURL) WithBasePath(bp string) *AddRoleURL
- type AddTutor
- type AddTutorBadRequest
- type AddTutorCreated
- type AddTutorHandler
- type AddTutorHandlerFunc
- type AddTutorInternalServerError
- type AddTutorNotFound
- type AddTutorParams
- type AddTutorURL
- func (o *AddTutorURL) Build() (*url.URL, error)
- func (o *AddTutorURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *AddTutorURL) Must(u *url.URL, err error) *url.URL
- func (o *AddTutorURL) SetBasePath(bp string)
- func (o *AddTutorURL) String() string
- func (o *AddTutorURL) StringFull(scheme, host string) string
- func (o *AddTutorURL) WithBasePath(bp string) *AddTutorURL
- type CreateUser
- type CreateUserBadRequest
- type CreateUserCreated
- type CreateUserForbidden
- type CreateUserHandler
- type CreateUserHandlerFunc
- type CreateUserInternalServerError
- type CreateUserParams
- type CreateUserURL
- func (o *CreateUserURL) Build() (*url.URL, error)
- func (o *CreateUserURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateUserURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateUserURL) SetBasePath(bp string)
- func (o *CreateUserURL) String() string
- func (o *CreateUserURL) StringFull(scheme, host string) string
- func (o *CreateUserURL) WithBasePath(bp string) *CreateUserURL
- type CreateUserUnauthorized
- type DeleteMe
- type DeleteMeHandler
- type DeleteMeHandlerFunc
- type DeleteMeInternalServerError
- type DeleteMeNoContent
- type DeleteMeParams
- type DeleteMeURL
- func (o *DeleteMeURL) Build() (*url.URL, error)
- func (o *DeleteMeURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteMeURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteMeURL) SetBasePath(bp string)
- func (o *DeleteMeURL) String() string
- func (o *DeleteMeURL) StringFull(scheme, host string) string
- func (o *DeleteMeURL) WithBasePath(bp string) *DeleteMeURL
- type DeleteMeUnauthorized
- type DeleteUser
- type DeleteUserBadRequest
- type DeleteUserForbidden
- type DeleteUserHandler
- type DeleteUserHandlerFunc
- type DeleteUserInternalServerError
- type DeleteUserNoContent
- type DeleteUserNotFound
- type DeleteUserParams
- type DeleteUserURL
- func (o *DeleteUserURL) Build() (*url.URL, error)
- func (o *DeleteUserURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteUserURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteUserURL) SetBasePath(bp string)
- func (o *DeleteUserURL) String() string
- func (o *DeleteUserURL) StringFull(scheme, host string) string
- func (o *DeleteUserURL) WithBasePath(bp string) *DeleteUserURL
- type DeleteUserUnauthorized
- type ListMeEvents
- type ListMeEventsForbidden
- type ListMeEventsHandler
- type ListMeEventsHandlerFunc
- type ListMeEventsInternalServerError
- type ListMeEventsOK
- type ListMeEventsParams
- type ListMeEventsURL
- func (o *ListMeEventsURL) Build() (*url.URL, error)
- func (o *ListMeEventsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListMeEventsURL) Must(u *url.URL, err error) *url.URL
- func (o *ListMeEventsURL) SetBasePath(bp string)
- func (o *ListMeEventsURL) String() string
- func (o *ListMeEventsURL) StringFull(scheme, host string) string
- func (o *ListMeEventsURL) WithBasePath(bp string) *ListMeEventsURL
- type ListMeEventsUnauthorized
- type ListMeRoles
- type ListMeRolesForbidden
- type ListMeRolesHandler
- type ListMeRolesHandlerFunc
- type ListMeRolesInternalServerError
- type ListMeRolesOK
- type ListMeRolesParams
- type ListMeRolesURL
- func (o *ListMeRolesURL) Build() (*url.URL, error)
- func (o *ListMeRolesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListMeRolesURL) Must(u *url.URL, err error) *url.URL
- func (o *ListMeRolesURL) SetBasePath(bp string)
- func (o *ListMeRolesURL) String() string
- func (o *ListMeRolesURL) StringFull(scheme, host string) string
- func (o *ListMeRolesURL) WithBasePath(bp string) *ListMeRolesURL
- type ListMeRolesUnauthorized
- type ListUser
- type ListUserEvents
- type ListUserEventsBadRequest
- type ListUserEventsForbidden
- type ListUserEventsHandler
- type ListUserEventsHandlerFunc
- type ListUserEventsInternalServerError
- func (o *ListUserEventsInternalServerError) SetPayload(payload *models.Error)
- func (o *ListUserEventsInternalServerError) WithPayload(payload *models.Error) *ListUserEventsInternalServerError
- func (o *ListUserEventsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListUserEventsNotFound
- type ListUserEventsOK
- type ListUserEventsParams
- type ListUserEventsURL
- func (o *ListUserEventsURL) Build() (*url.URL, error)
- func (o *ListUserEventsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListUserEventsURL) Must(u *url.URL, err error) *url.URL
- func (o *ListUserEventsURL) SetBasePath(bp string)
- func (o *ListUserEventsURL) String() string
- func (o *ListUserEventsURL) StringFull(scheme, host string) string
- func (o *ListUserEventsURL) WithBasePath(bp string) *ListUserEventsURL
- type ListUserEventsUnauthorized
- type ListUserHandler
- type ListUserHandlerFunc
- type ListUserInternalServerError
- type ListUserOK
- type ListUserParams
- type ListUserRoles
- type ListUserRolesBadRequest
- type ListUserRolesForbidden
- type ListUserRolesHandler
- type ListUserRolesHandlerFunc
- type ListUserRolesInternalServerError
- type ListUserRolesNotFound
- type ListUserRolesOK
- type ListUserRolesParams
- type ListUserRolesURL
- func (o *ListUserRolesURL) Build() (*url.URL, error)
- func (o *ListUserRolesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListUserRolesURL) Must(u *url.URL, err error) *url.URL
- func (o *ListUserRolesURL) SetBasePath(bp string)
- func (o *ListUserRolesURL) String() string
- func (o *ListUserRolesURL) StringFull(scheme, host string) string
- func (o *ListUserRolesURL) WithBasePath(bp string) *ListUserRolesURL
- type ListUserRolesUnauthorized
- type ListUserURL
- func (o *ListUserURL) Build() (*url.URL, error)
- func (o *ListUserURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListUserURL) Must(u *url.URL, err error) *url.URL
- func (o *ListUserURL) SetBasePath(bp string)
- func (o *ListUserURL) String() string
- func (o *ListUserURL) StringFull(scheme, host string) string
- func (o *ListUserURL) WithBasePath(bp string) *ListUserURL
- type ListUserUnauthorized
- type ReadMe
- type ReadMeHandler
- type ReadMeHandlerFunc
- type ReadMeInternalServerError
- type ReadMeOK
- type ReadMeParams
- type ReadMeURL
- func (o *ReadMeURL) Build() (*url.URL, error)
- func (o *ReadMeURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ReadMeURL) Must(u *url.URL, err error) *url.URL
- func (o *ReadMeURL) SetBasePath(bp string)
- func (o *ReadMeURL) String() string
- func (o *ReadMeURL) StringFull(scheme, host string) string
- func (o *ReadMeURL) WithBasePath(bp string) *ReadMeURL
- type ReadMeUnauthorized
- type ReadUser
- type ReadUserBadRequest
- type ReadUserForbidden
- type ReadUserHandler
- type ReadUserHandlerFunc
- type ReadUserInternalServerError
- type ReadUserNotFound
- type ReadUserOK
- type ReadUserParams
- type ReadUserURL
- func (o *ReadUserURL) Build() (*url.URL, error)
- func (o *ReadUserURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ReadUserURL) Must(u *url.URL, err error) *url.URL
- func (o *ReadUserURL) SetBasePath(bp string)
- func (o *ReadUserURL) String() string
- func (o *ReadUserURL) StringFull(scheme, host string) string
- func (o *ReadUserURL) WithBasePath(bp string) *ReadUserURL
- type ReadUserUnauthorized
- type RemoveAdmin
- type RemoveAdminBadRequest
- type RemoveAdminHandler
- type RemoveAdminHandlerFunc
- type RemoveAdminInternalServerError
- type RemoveAdminNoContent
- type RemoveAdminNotFound
- type RemoveAdminParams
- type RemoveAdminURL
- func (o *RemoveAdminURL) Build() (*url.URL, error)
- func (o *RemoveAdminURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *RemoveAdminURL) Must(u *url.URL, err error) *url.URL
- func (o *RemoveAdminURL) SetBasePath(bp string)
- func (o *RemoveAdminURL) String() string
- func (o *RemoveAdminURL) StringFull(scheme, host string) string
- func (o *RemoveAdminURL) WithBasePath(bp string) *RemoveAdminURL
- type RemoveCalendar
- type RemoveCalendarBadRequest
- type RemoveCalendarHandler
- type RemoveCalendarHandlerFunc
- type RemoveCalendarInternalServerError
- func (o *RemoveCalendarInternalServerError) SetPayload(payload *models.Error)
- func (o *RemoveCalendarInternalServerError) WithPayload(payload *models.Error) *RemoveCalendarInternalServerError
- func (o *RemoveCalendarInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type RemoveCalendarNoContent
- type RemoveCalendarNotFound
- type RemoveCalendarParams
- type RemoveCalendarURL
- func (o *RemoveCalendarURL) Build() (*url.URL, error)
- func (o *RemoveCalendarURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *RemoveCalendarURL) Must(u *url.URL, err error) *url.URL
- func (o *RemoveCalendarURL) SetBasePath(bp string)
- func (o *RemoveCalendarURL) String() string
- func (o *RemoveCalendarURL) StringFull(scheme, host string) string
- func (o *RemoveCalendarURL) WithBasePath(bp string) *RemoveCalendarURL
- type RemoveRole
- type RemoveRoleBadRequest
- type RemoveRoleHandler
- type RemoveRoleHandlerFunc
- type RemoveRoleInternalServerError
- type RemoveRoleNoContent
- type RemoveRoleNotFound
- type RemoveRoleParams
- type RemoveRoleURL
- func (o *RemoveRoleURL) Build() (*url.URL, error)
- func (o *RemoveRoleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *RemoveRoleURL) Must(u *url.URL, err error) *url.URL
- func (o *RemoveRoleURL) SetBasePath(bp string)
- func (o *RemoveRoleURL) String() string
- func (o *RemoveRoleURL) StringFull(scheme, host string) string
- func (o *RemoveRoleURL) WithBasePath(bp string) *RemoveRoleURL
- type RemoveTutor
- type RemoveTutorBadRequest
- type RemoveTutorHandler
- type RemoveTutorHandlerFunc
- type RemoveTutorInternalServerError
- type RemoveTutorNoContent
- type RemoveTutorNotFound
- type RemoveTutorParams
- type RemoveTutorURL
- func (o *RemoveTutorURL) Build() (*url.URL, error)
- func (o *RemoveTutorURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *RemoveTutorURL) Must(u *url.URL, err error) *url.URL
- func (o *RemoveTutorURL) SetBasePath(bp string)
- func (o *RemoveTutorURL) String() string
- func (o *RemoveTutorURL) StringFull(scheme, host string) string
- func (o *RemoveTutorURL) WithBasePath(bp string) *RemoveTutorURL
- type SubscribeMe
- type SubscribeMeBadRequest
- type SubscribeMeCreated
- type SubscribeMeForbidden
- type SubscribeMeHandler
- type SubscribeMeHandlerFunc
- type SubscribeMeInternalServerError
- type SubscribeMeNotFound
- type SubscribeMeParams
- type SubscribeMeURL
- func (o *SubscribeMeURL) Build() (*url.URL, error)
- func (o *SubscribeMeURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *SubscribeMeURL) Must(u *url.URL, err error) *url.URL
- func (o *SubscribeMeURL) SetBasePath(bp string)
- func (o *SubscribeMeURL) String() string
- func (o *SubscribeMeURL) StringFull(scheme, host string) string
- func (o *SubscribeMeURL) WithBasePath(bp string) *SubscribeMeURL
- type SubscribeMeUnauthorized
- type SubscribeUser
- type SubscribeUserBadRequest
- type SubscribeUserCreated
- type SubscribeUserForbidden
- type SubscribeUserHandler
- type SubscribeUserHandlerFunc
- type SubscribeUserInternalServerError
- type SubscribeUserNotFound
- type SubscribeUserParams
- type SubscribeUserURL
- func (o *SubscribeUserURL) Build() (*url.URL, error)
- func (o *SubscribeUserURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *SubscribeUserURL) Must(u *url.URL, err error) *url.URL
- func (o *SubscribeUserURL) SetBasePath(bp string)
- func (o *SubscribeUserURL) String() string
- func (o *SubscribeUserURL) StringFull(scheme, host string) string
- func (o *SubscribeUserURL) WithBasePath(bp string) *SubscribeUserURL
- type SubscribeUserUnauthorized
- type UnsubscribeMe
- type UnsubscribeMeBadRequest
- type UnsubscribeMeForbidden
- type UnsubscribeMeHandler
- type UnsubscribeMeHandlerFunc
- type UnsubscribeMeInternalServerError
- type UnsubscribeMeNoContent
- type UnsubscribeMeNotFound
- type UnsubscribeMeParams
- type UnsubscribeMeURL
- func (o *UnsubscribeMeURL) Build() (*url.URL, error)
- func (o *UnsubscribeMeURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UnsubscribeMeURL) Must(u *url.URL, err error) *url.URL
- func (o *UnsubscribeMeURL) SetBasePath(bp string)
- func (o *UnsubscribeMeURL) String() string
- func (o *UnsubscribeMeURL) StringFull(scheme, host string) string
- func (o *UnsubscribeMeURL) WithBasePath(bp string) *UnsubscribeMeURL
- type UnsubscribeMeUnauthorized
- type UnsubscribeUser
- type UnsubscribeUserBadRequest
- type UnsubscribeUserForbidden
- type UnsubscribeUserHandler
- type UnsubscribeUserHandlerFunc
- type UnsubscribeUserInternalServerError
- func (o *UnsubscribeUserInternalServerError) SetPayload(payload *models.Error)
- func (o *UnsubscribeUserInternalServerError) WithPayload(payload *models.Error) *UnsubscribeUserInternalServerError
- func (o *UnsubscribeUserInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UnsubscribeUserNoContent
- type UnsubscribeUserNotFound
- type UnsubscribeUserParams
- type UnsubscribeUserURL
- func (o *UnsubscribeUserURL) Build() (*url.URL, error)
- func (o *UnsubscribeUserURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UnsubscribeUserURL) Must(u *url.URL, err error) *url.URL
- func (o *UnsubscribeUserURL) SetBasePath(bp string)
- func (o *UnsubscribeUserURL) String() string
- func (o *UnsubscribeUserURL) StringFull(scheme, host string) string
- func (o *UnsubscribeUserURL) WithBasePath(bp string) *UnsubscribeUserURL
- type UnsubscribeUserUnauthorized
- type UpdateMe
- type UpdateMeBadRequest
- type UpdateMeHandler
- type UpdateMeHandlerFunc
- type UpdateMeInternalServerError
- type UpdateMeOK
- type UpdateMeParams
- type UpdateMeURL
- func (o *UpdateMeURL) Build() (*url.URL, error)
- func (o *UpdateMeURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateMeURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateMeURL) SetBasePath(bp string)
- func (o *UpdateMeURL) String() string
- func (o *UpdateMeURL) StringFull(scheme, host string) string
- func (o *UpdateMeURL) WithBasePath(bp string) *UpdateMeURL
- type UpdateMeUnauthorized
- type UpdateUser
- type UpdateUserBadRequest
- type UpdateUserForbidden
- type UpdateUserHandler
- type UpdateUserHandlerFunc
- type UpdateUserInternalServerError
- type UpdateUserNotFound
- type UpdateUserOK
- type UpdateUserParams
- type UpdateUserURL
- func (o *UpdateUserURL) Build() (*url.URL, error)
- func (o *UpdateUserURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateUserURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateUserURL) SetBasePath(bp string)
- func (o *UpdateUserURL) String() string
- func (o *UpdateUserURL) StringFull(scheme, host string) string
- func (o *UpdateUserURL) WithBasePath(bp string) *UpdateUserURL
- type UpdateUserUnauthorized
Constants ¶
const AddAdminBadRequestCode int = 400
AddAdminBadRequestCode is the HTTP code returned for type AddAdminBadRequest
const AddAdminCreatedCode int = 201
AddAdminCreatedCode is the HTTP code returned for type AddAdminCreated
const AddAdminInternalServerErrorCode int = 500
AddAdminInternalServerErrorCode is the HTTP code returned for type AddAdminInternalServerError
const AddAdminNotFoundCode int = 404
AddAdminNotFoundCode is the HTTP code returned for type AddAdminNotFound
const AddCalendarBadRequestCode int = 400
AddCalendarBadRequestCode is the HTTP code returned for type AddCalendarBadRequest
const AddCalendarCreatedCode int = 201
AddCalendarCreatedCode is the HTTP code returned for type AddCalendarCreated
const AddCalendarInternalServerErrorCode int = 500
AddCalendarInternalServerErrorCode is the HTTP code returned for type AddCalendarInternalServerError
const AddCalendarNotFoundCode int = 404
AddCalendarNotFoundCode is the HTTP code returned for type AddCalendarNotFound
const AddRoleBadRequestCode int = 400
AddRoleBadRequestCode is the HTTP code returned for type AddRoleBadRequest
const AddRoleCreatedCode int = 201
AddRoleCreatedCode is the HTTP code returned for type AddRoleCreated
const AddRoleInternalServerErrorCode int = 500
AddRoleInternalServerErrorCode is the HTTP code returned for type AddRoleInternalServerError
const AddRoleNotFoundCode int = 404
AddRoleNotFoundCode is the HTTP code returned for type AddRoleNotFound
const AddTutorBadRequestCode int = 400
AddTutorBadRequestCode is the HTTP code returned for type AddTutorBadRequest
const AddTutorCreatedCode int = 201
AddTutorCreatedCode is the HTTP code returned for type AddTutorCreated
const AddTutorInternalServerErrorCode int = 500
AddTutorInternalServerErrorCode is the HTTP code returned for type AddTutorInternalServerError
const AddTutorNotFoundCode int = 404
AddTutorNotFoundCode is the HTTP code returned for type AddTutorNotFound
const CreateUserBadRequestCode int = 400
CreateUserBadRequestCode is the HTTP code returned for type CreateUserBadRequest
const CreateUserCreatedCode int = 201
CreateUserCreatedCode is the HTTP code returned for type CreateUserCreated
const CreateUserForbiddenCode int = 403
CreateUserForbiddenCode is the HTTP code returned for type CreateUserForbidden
const CreateUserInternalServerErrorCode int = 500
CreateUserInternalServerErrorCode is the HTTP code returned for type CreateUserInternalServerError
CreateUserUnauthorizedCode is the HTTP code returned for type CreateUserUnauthorized
const DeleteMeInternalServerErrorCode int = 500
DeleteMeInternalServerErrorCode is the HTTP code returned for type DeleteMeInternalServerError
const DeleteMeNoContentCode int = 204
DeleteMeNoContentCode is the HTTP code returned for type DeleteMeNoContent
DeleteMeUnauthorizedCode is the HTTP code returned for type DeleteMeUnauthorized
const DeleteUserBadRequestCode int = 400
DeleteUserBadRequestCode is the HTTP code returned for type DeleteUserBadRequest
const DeleteUserForbiddenCode int = 403
DeleteUserForbiddenCode is the HTTP code returned for type DeleteUserForbidden
const DeleteUserInternalServerErrorCode int = 500
DeleteUserInternalServerErrorCode is the HTTP code returned for type DeleteUserInternalServerError
const DeleteUserNoContentCode int = 204
DeleteUserNoContentCode is the HTTP code returned for type DeleteUserNoContent
const DeleteUserNotFoundCode int = 404
DeleteUserNotFoundCode is the HTTP code returned for type DeleteUserNotFound
DeleteUserUnauthorizedCode is the HTTP code returned for type DeleteUserUnauthorized
const ListMeEventsForbiddenCode int = 403
ListMeEventsForbiddenCode is the HTTP code returned for type ListMeEventsForbidden
const ListMeEventsInternalServerErrorCode int = 500
ListMeEventsInternalServerErrorCode is the HTTP code returned for type ListMeEventsInternalServerError
const ListMeEventsOKCode int = 200
ListMeEventsOKCode is the HTTP code returned for type ListMeEventsOK
ListMeEventsUnauthorizedCode is the HTTP code returned for type ListMeEventsUnauthorized
const ListMeRolesForbiddenCode int = 403
ListMeRolesForbiddenCode is the HTTP code returned for type ListMeRolesForbidden
const ListMeRolesInternalServerErrorCode int = 500
ListMeRolesInternalServerErrorCode is the HTTP code returned for type ListMeRolesInternalServerError
const ListMeRolesOKCode int = 200
ListMeRolesOKCode is the HTTP code returned for type ListMeRolesOK
ListMeRolesUnauthorizedCode is the HTTP code returned for type ListMeRolesUnauthorized
const ListUserEventsBadRequestCode int = 400
ListUserEventsBadRequestCode is the HTTP code returned for type ListUserEventsBadRequest
const ListUserEventsForbiddenCode int = 403
ListUserEventsForbiddenCode is the HTTP code returned for type ListUserEventsForbidden
const ListUserEventsInternalServerErrorCode int = 500
ListUserEventsInternalServerErrorCode is the HTTP code returned for type ListUserEventsInternalServerError
const ListUserEventsNotFoundCode int = 404
ListUserEventsNotFoundCode is the HTTP code returned for type ListUserEventsNotFound
const ListUserEventsOKCode int = 200
ListUserEventsOKCode is the HTTP code returned for type ListUserEventsOK
ListUserEventsUnauthorizedCode is the HTTP code returned for type ListUserEventsUnauthorized
const ListUserInternalServerErrorCode int = 500
ListUserInternalServerErrorCode is the HTTP code returned for type ListUserInternalServerError
const ListUserOKCode int = 200
ListUserOKCode is the HTTP code returned for type ListUserOK
const ListUserRolesBadRequestCode int = 400
ListUserRolesBadRequestCode is the HTTP code returned for type ListUserRolesBadRequest
const ListUserRolesForbiddenCode int = 403
ListUserRolesForbiddenCode is the HTTP code returned for type ListUserRolesForbidden
const ListUserRolesInternalServerErrorCode int = 500
ListUserRolesInternalServerErrorCode is the HTTP code returned for type ListUserRolesInternalServerError
const ListUserRolesNotFoundCode int = 404
ListUserRolesNotFoundCode is the HTTP code returned for type ListUserRolesNotFound
const ListUserRolesOKCode int = 200
ListUserRolesOKCode is the HTTP code returned for type ListUserRolesOK
ListUserRolesUnauthorizedCode is the HTTP code returned for type ListUserRolesUnauthorized
ListUserUnauthorizedCode is the HTTP code returned for type ListUserUnauthorized
const ReadMeInternalServerErrorCode int = 500
ReadMeInternalServerErrorCode is the HTTP code returned for type ReadMeInternalServerError
const ReadMeOKCode int = 200
ReadMeOKCode is the HTTP code returned for type ReadMeOK
ReadMeUnauthorizedCode is the HTTP code returned for type ReadMeUnauthorized
const ReadUserBadRequestCode int = 400
ReadUserBadRequestCode is the HTTP code returned for type ReadUserBadRequest
const ReadUserForbiddenCode int = 403
ReadUserForbiddenCode is the HTTP code returned for type ReadUserForbidden
const ReadUserInternalServerErrorCode int = 500
ReadUserInternalServerErrorCode is the HTTP code returned for type ReadUserInternalServerError
const ReadUserNotFoundCode int = 404
ReadUserNotFoundCode is the HTTP code returned for type ReadUserNotFound
const ReadUserOKCode int = 200
ReadUserOKCode is the HTTP code returned for type ReadUserOK
ReadUserUnauthorizedCode is the HTTP code returned for type ReadUserUnauthorized
const RemoveAdminBadRequestCode int = 400
RemoveAdminBadRequestCode is the HTTP code returned for type RemoveAdminBadRequest
const RemoveAdminInternalServerErrorCode int = 500
RemoveAdminInternalServerErrorCode is the HTTP code returned for type RemoveAdminInternalServerError
const RemoveAdminNoContentCode int = 204
RemoveAdminNoContentCode is the HTTP code returned for type RemoveAdminNoContent
const RemoveAdminNotFoundCode int = 404
RemoveAdminNotFoundCode is the HTTP code returned for type RemoveAdminNotFound
const RemoveCalendarBadRequestCode int = 400
RemoveCalendarBadRequestCode is the HTTP code returned for type RemoveCalendarBadRequest
const RemoveCalendarInternalServerErrorCode int = 500
RemoveCalendarInternalServerErrorCode is the HTTP code returned for type RemoveCalendarInternalServerError
const RemoveCalendarNoContentCode int = 204
RemoveCalendarNoContentCode is the HTTP code returned for type RemoveCalendarNoContent
const RemoveCalendarNotFoundCode int = 404
RemoveCalendarNotFoundCode is the HTTP code returned for type RemoveCalendarNotFound
const RemoveRoleBadRequestCode int = 400
RemoveRoleBadRequestCode is the HTTP code returned for type RemoveRoleBadRequest
const RemoveRoleInternalServerErrorCode int = 500
RemoveRoleInternalServerErrorCode is the HTTP code returned for type RemoveRoleInternalServerError
const RemoveRoleNoContentCode int = 204
RemoveRoleNoContentCode is the HTTP code returned for type RemoveRoleNoContent
const RemoveRoleNotFoundCode int = 404
RemoveRoleNotFoundCode is the HTTP code returned for type RemoveRoleNotFound
const RemoveTutorBadRequestCode int = 400
RemoveTutorBadRequestCode is the HTTP code returned for type RemoveTutorBadRequest
const RemoveTutorInternalServerErrorCode int = 500
RemoveTutorInternalServerErrorCode is the HTTP code returned for type RemoveTutorInternalServerError
const RemoveTutorNoContentCode int = 204
RemoveTutorNoContentCode is the HTTP code returned for type RemoveTutorNoContent
const RemoveTutorNotFoundCode int = 404
RemoveTutorNotFoundCode is the HTTP code returned for type RemoveTutorNotFound
const SubscribeMeBadRequestCode int = 400
SubscribeMeBadRequestCode is the HTTP code returned for type SubscribeMeBadRequest
const SubscribeMeCreatedCode int = 201
SubscribeMeCreatedCode is the HTTP code returned for type SubscribeMeCreated
const SubscribeMeForbiddenCode int = 403
SubscribeMeForbiddenCode is the HTTP code returned for type SubscribeMeForbidden
const SubscribeMeInternalServerErrorCode int = 500
SubscribeMeInternalServerErrorCode is the HTTP code returned for type SubscribeMeInternalServerError
const SubscribeMeNotFoundCode int = 404
SubscribeMeNotFoundCode is the HTTP code returned for type SubscribeMeNotFound
SubscribeMeUnauthorizedCode is the HTTP code returned for type SubscribeMeUnauthorized
const SubscribeUserBadRequestCode int = 400
SubscribeUserBadRequestCode is the HTTP code returned for type SubscribeUserBadRequest
const SubscribeUserCreatedCode int = 201
SubscribeUserCreatedCode is the HTTP code returned for type SubscribeUserCreated
const SubscribeUserForbiddenCode int = 403
SubscribeUserForbiddenCode is the HTTP code returned for type SubscribeUserForbidden
const SubscribeUserInternalServerErrorCode int = 500
SubscribeUserInternalServerErrorCode is the HTTP code returned for type SubscribeUserInternalServerError
const SubscribeUserNotFoundCode int = 404
SubscribeUserNotFoundCode is the HTTP code returned for type SubscribeUserNotFound
SubscribeUserUnauthorizedCode is the HTTP code returned for type SubscribeUserUnauthorized
const UnsubscribeMeBadRequestCode int = 400
UnsubscribeMeBadRequestCode is the HTTP code returned for type UnsubscribeMeBadRequest
const UnsubscribeMeForbiddenCode int = 403
UnsubscribeMeForbiddenCode is the HTTP code returned for type UnsubscribeMeForbidden
const UnsubscribeMeInternalServerErrorCode int = 500
UnsubscribeMeInternalServerErrorCode is the HTTP code returned for type UnsubscribeMeInternalServerError
const UnsubscribeMeNoContentCode int = 204
UnsubscribeMeNoContentCode is the HTTP code returned for type UnsubscribeMeNoContent
const UnsubscribeMeNotFoundCode int = 404
UnsubscribeMeNotFoundCode is the HTTP code returned for type UnsubscribeMeNotFound
UnsubscribeMeUnauthorizedCode is the HTTP code returned for type UnsubscribeMeUnauthorized
const UnsubscribeUserBadRequestCode int = 400
UnsubscribeUserBadRequestCode is the HTTP code returned for type UnsubscribeUserBadRequest
const UnsubscribeUserForbiddenCode int = 403
UnsubscribeUserForbiddenCode is the HTTP code returned for type UnsubscribeUserForbidden
const UnsubscribeUserInternalServerErrorCode int = 500
UnsubscribeUserInternalServerErrorCode is the HTTP code returned for type UnsubscribeUserInternalServerError
const UnsubscribeUserNoContentCode int = 204
UnsubscribeUserNoContentCode is the HTTP code returned for type UnsubscribeUserNoContent
const UnsubscribeUserNotFoundCode int = 404
UnsubscribeUserNotFoundCode is the HTTP code returned for type UnsubscribeUserNotFound
UnsubscribeUserUnauthorizedCode is the HTTP code returned for type UnsubscribeUserUnauthorized
const UpdateMeBadRequestCode int = 400
UpdateMeBadRequestCode is the HTTP code returned for type UpdateMeBadRequest
const UpdateMeInternalServerErrorCode int = 500
UpdateMeInternalServerErrorCode is the HTTP code returned for type UpdateMeInternalServerError
const UpdateMeOKCode int = 200
UpdateMeOKCode is the HTTP code returned for type UpdateMeOK
UpdateMeUnauthorizedCode is the HTTP code returned for type UpdateMeUnauthorized
const UpdateUserBadRequestCode int = 400
UpdateUserBadRequestCode is the HTTP code returned for type UpdateUserBadRequest
const UpdateUserForbiddenCode int = 403
UpdateUserForbiddenCode is the HTTP code returned for type UpdateUserForbidden
const UpdateUserInternalServerErrorCode int = 500
UpdateUserInternalServerErrorCode is the HTTP code returned for type UpdateUserInternalServerError
const UpdateUserNotFoundCode int = 404
UpdateUserNotFoundCode is the HTTP code returned for type UpdateUserNotFound
const UpdateUserOKCode int = 200
UpdateUserOKCode is the HTTP code returned for type UpdateUserOK
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
type AddAdminBadRequest ¶
AddAdminBadRequest Bad request
swagger:response addAdminBadRequest
func NewAddAdminBadRequest ¶
func NewAddAdminBadRequest() *AddAdminBadRequest
NewAddAdminBadRequest creates AddAdminBadRequest with default headers values
func (*AddAdminBadRequest) SetPayload ¶
func (o *AddAdminBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the add admin bad request response
func (*AddAdminBadRequest) WithPayload ¶
func (o *AddAdminBadRequest) WithPayload(payload *models.Error) *AddAdminBadRequest
WithPayload adds the payload to the add admin bad request response
func (*AddAdminBadRequest) WriteResponse ¶
func (o *AddAdminBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddAdminCreated ¶
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 ¶
func (fn AddAdminHandlerFunc) Handle(params AddAdminParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type AddAdminInternalServerError ¶
type AddAdminInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
AddAdminInternalServerError Internal Server Error
swagger:response addAdminInternalServerError
func NewAddAdminInternalServerError ¶
func NewAddAdminInternalServerError() *AddAdminInternalServerError
NewAddAdminInternalServerError creates AddAdminInternalServerError with default headers values
func (*AddAdminInternalServerError) SetPayload ¶
func (o *AddAdminInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the add admin internal server error response
func (*AddAdminInternalServerError) WithPayload ¶
func (o *AddAdminInternalServerError) WithPayload(payload *models.Error) *AddAdminInternalServerError
WithPayload adds the payload to the add admin internal server error response
func (*AddAdminInternalServerError) WriteResponse ¶
func (o *AddAdminInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddAdminNotFound ¶
AddAdminNotFound Not Found
swagger:response addAdminNotFound
func NewAddAdminNotFound ¶
func NewAddAdminNotFound() *AddAdminNotFound
NewAddAdminNotFound creates AddAdminNotFound with default headers values
func (*AddAdminNotFound) SetPayload ¶
func (o *AddAdminNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the add admin not found response
func (*AddAdminNotFound) WithPayload ¶
func (o *AddAdminNotFound) WithPayload(payload *models.Error) *AddAdminNotFound
WithPayload adds the payload to the add admin not found response
func (*AddAdminNotFound) WriteResponse ¶
func (o *AddAdminNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddAdminParams ¶
type AddAdminParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*User ID. Required: true In: path */ ID string }
AddAdminParams contains all the bound params for the add admin operation typically these are obtained from a http.Request
swagger:parameters addAdmin
func NewAddAdminParams ¶
func NewAddAdminParams() AddAdminParams
NewAddAdminParams creates a new AddAdminParams object
There are no default values defined in the spec.
func (*AddAdminParams) BindRequest ¶
func (o *AddAdminParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewAddAdminParams() beforehand.
type AddAdminURL ¶
type AddAdminURL struct { ID string // contains filtered or unexported fields }
AddAdminURL generates an URL for the add admin operation
func (*AddAdminURL) Build ¶
func (o *AddAdminURL) Build() (*url.URL, error)
Build a url path and query string
func (*AddAdminURL) BuildFull ¶
func (o *AddAdminURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*AddAdminURL) SetBasePath ¶
func (o *AddAdminURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*AddAdminURL) String ¶
func (o *AddAdminURL) String() string
String returns the string representation of the path with query string
func (*AddAdminURL) StringFull ¶
func (o *AddAdminURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*AddAdminURL) WithBasePath ¶
func (o *AddAdminURL) WithBasePath(bp string) *AddAdminURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type 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 ¶
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 ¶
func (fn AddCalendarHandlerFunc) Handle(params AddCalendarParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type AddCalendarInternalServerError ¶
type AddCalendarInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
AddCalendarInternalServerError Internal Server Error
swagger:response addCalendarInternalServerError
func NewAddCalendarInternalServerError ¶
func NewAddCalendarInternalServerError() *AddCalendarInternalServerError
NewAddCalendarInternalServerError creates AddCalendarInternalServerError with default headers values
func (*AddCalendarInternalServerError) SetPayload ¶
func (o *AddCalendarInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the add calendar internal server error response
func (*AddCalendarInternalServerError) WithPayload ¶
func (o *AddCalendarInternalServerError) WithPayload(payload *models.Error) *AddCalendarInternalServerError
WithPayload adds the payload to the add calendar internal server error response
func (*AddCalendarInternalServerError) WriteResponse ¶
func (o *AddCalendarInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddCalendarNotFound ¶
AddCalendarNotFound Not Found
swagger:response addCalendarNotFound
func NewAddCalendarNotFound ¶
func NewAddCalendarNotFound() *AddCalendarNotFound
NewAddCalendarNotFound creates AddCalendarNotFound with default headers values
func (*AddCalendarNotFound) SetPayload ¶
func (o *AddCalendarNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the add calendar not found response
func (*AddCalendarNotFound) WithPayload ¶
func (o *AddCalendarNotFound) WithPayload(payload *models.Error) *AddCalendarNotFound
WithPayload adds the payload to the add calendar not found response
func (*AddCalendarNotFound) WriteResponse ¶
func (o *AddCalendarNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddCalendarParams ¶
type AddCalendarParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*User ID. Required: true In: path */ ID string }
AddCalendarParams contains all the bound params for the add calendar operation typically these are obtained from a http.Request
swagger:parameters addCalendar
func NewAddCalendarParams ¶
func NewAddCalendarParams() AddCalendarParams
NewAddCalendarParams creates a new AddCalendarParams object
There are no default values defined in the spec.
func (*AddCalendarParams) BindRequest ¶
func (o *AddCalendarParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewAddCalendarParams() beforehand.
type AddCalendarURL ¶
type AddCalendarURL struct { ID string // contains filtered or unexported fields }
AddCalendarURL generates an URL for the add calendar operation
func (*AddCalendarURL) Build ¶
func (o *AddCalendarURL) Build() (*url.URL, error)
Build a url path and query string
func (*AddCalendarURL) BuildFull ¶
func (o *AddCalendarURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*AddCalendarURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*AddCalendarURL) SetBasePath ¶
func (o *AddCalendarURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*AddCalendarURL) String ¶
func (o *AddCalendarURL) String() string
String returns the string representation of the path with query string
func (*AddCalendarURL) StringFull ¶
func (o *AddCalendarURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*AddCalendarURL) WithBasePath ¶
func (o *AddCalendarURL) WithBasePath(bp string) *AddCalendarURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type 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
type AddRoleBadRequest ¶
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 ¶
func (o *AddRoleInternalServerError) WithPayload(payload *models.Error) *AddRoleInternalServerError
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 ¶
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 ¶
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) 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
type AddTutorBadRequest ¶
AddTutorBadRequest Bad request
swagger:response addTutorBadRequest
func NewAddTutorBadRequest ¶
func NewAddTutorBadRequest() *AddTutorBadRequest
NewAddTutorBadRequest creates AddTutorBadRequest with default headers values
func (*AddTutorBadRequest) SetPayload ¶
func (o *AddTutorBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the add tutor bad request response
func (*AddTutorBadRequest) WithPayload ¶
func (o *AddTutorBadRequest) WithPayload(payload *models.Error) *AddTutorBadRequest
WithPayload adds the payload to the add tutor bad request response
func (*AddTutorBadRequest) WriteResponse ¶
func (o *AddTutorBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddTutorCreated ¶
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 ¶
func (fn AddTutorHandlerFunc) Handle(params AddTutorParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type AddTutorInternalServerError ¶
type AddTutorInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
AddTutorInternalServerError Internal Server Error
swagger:response addTutorInternalServerError
func NewAddTutorInternalServerError ¶
func NewAddTutorInternalServerError() *AddTutorInternalServerError
NewAddTutorInternalServerError creates AddTutorInternalServerError with default headers values
func (*AddTutorInternalServerError) SetPayload ¶
func (o *AddTutorInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the add tutor internal server error response
func (*AddTutorInternalServerError) WithPayload ¶
func (o *AddTutorInternalServerError) WithPayload(payload *models.Error) *AddTutorInternalServerError
WithPayload adds the payload to the add tutor internal server error response
func (*AddTutorInternalServerError) WriteResponse ¶
func (o *AddTutorInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddTutorNotFound ¶
AddTutorNotFound Not Found
swagger:response addTutorNotFound
func NewAddTutorNotFound ¶
func NewAddTutorNotFound() *AddTutorNotFound
NewAddTutorNotFound creates AddTutorNotFound with default headers values
func (*AddTutorNotFound) SetPayload ¶
func (o *AddTutorNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the add tutor not found response
func (*AddTutorNotFound) WithPayload ¶
func (o *AddTutorNotFound) WithPayload(payload *models.Error) *AddTutorNotFound
WithPayload adds the payload to the add tutor not found response
func (*AddTutorNotFound) WriteResponse ¶
func (o *AddTutorNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddTutorParams ¶
type AddTutorParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*User ID. Required: true In: path */ ID string }
AddTutorParams contains all the bound params for the add tutor operation typically these are obtained from a http.Request
swagger:parameters addTutor
func NewAddTutorParams ¶
func NewAddTutorParams() AddTutorParams
NewAddTutorParams creates a new AddTutorParams object
There are no default values defined in the spec.
func (*AddTutorParams) BindRequest ¶
func (o *AddTutorParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewAddTutorParams() beforehand.
type AddTutorURL ¶
type AddTutorURL struct { ID string // contains filtered or unexported fields }
AddTutorURL generates an URL for the add tutor operation
func (*AddTutorURL) Build ¶
func (o *AddTutorURL) Build() (*url.URL, error)
Build a url path and query string
func (*AddTutorURL) BuildFull ¶
func (o *AddTutorURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*AddTutorURL) SetBasePath ¶
func (o *AddTutorURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*AddTutorURL) String ¶
func (o *AddTutorURL) String() string
String returns the string representation of the path with query string
func (*AddTutorURL) StringFull ¶
func (o *AddTutorURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*AddTutorURL) WithBasePath ¶
func (o *AddTutorURL) WithBasePath(bp string) *AddTutorURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type 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 ¶
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 ¶
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 ¶
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 ¶
func (fn CreateUserHandlerFunc) Handle(params CreateUserParams, principal *models.Principal) middleware.Responder
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 ¶
func (o *CreateUserInternalServerError) WithPayload(payload *models.Error) *CreateUserInternalServerError
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 ¶
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 ¶
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
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 ¶
func (fn DeleteMeHandlerFunc) Handle(params DeleteMeParams, principal *models.Principal) middleware.Responder
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 ¶
func (o *DeleteMeInternalServerError) WithPayload(payload *models.Error) *DeleteMeInternalServerError
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 ¶
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) 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 ¶
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 ¶
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 ¶
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 ¶
func (fn DeleteUserHandlerFunc) Handle(params DeleteUserParams, principal *models.Principal) middleware.Responder
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 ¶
func (o *DeleteUserInternalServerError) WithPayload(payload *models.Error) *DeleteUserInternalServerError
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (fn ListMeEventsHandlerFunc) Handle(params ListMeEventsParams, principal *models.Principal) middleware.Responder
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 ¶
func (o *ListMeEventsInternalServerError) WithPayload(payload *models.Error) *ListMeEventsInternalServerError
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (o *ListMeEventsUnauthorized) WithPayload(payload *models.Error) *ListMeEventsUnauthorized
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 ¶
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 ¶
func (fn ListMeRolesHandlerFunc) Handle(params ListMeRolesParams, principal *models.Principal) middleware.Responder
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 ¶
func (o *ListMeRolesInternalServerError) WithPayload(payload *models.Error) *ListMeRolesInternalServerError
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 ¶
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 ¶
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 ¶
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 ¶
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
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 ¶
func (o *ListUserEventsBadRequest) WithPayload(payload *models.Error) *ListUserEventsBadRequest
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 ¶
func (fn ListUserEventsHandlerFunc) Handle(params ListUserEventsParams, principal *models.Principal) middleware.Responder
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 ¶
func (o *ListUserEventsInternalServerError) WithPayload(payload *models.Error) *ListUserEventsInternalServerError
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (o *ListUserEventsUnauthorized) WithPayload(payload *models.Error) *ListUserEventsUnauthorized
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 ¶
func (fn ListUserHandlerFunc) Handle(params ListUserParams, principal *models.Principal) middleware.Responder
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 ¶
func (o *ListUserInternalServerError) WithPayload(payload *models.Error) *ListUserInternalServerError
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 ¶
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 ¶
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 ¶
func (fn ListUserRolesHandlerFunc) Handle(params ListUserRolesParams, principal *models.Principal) middleware.Responder
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 ¶
func (o *ListUserRolesInternalServerError) WithPayload(payload *models.Error) *ListUserRolesInternalServerError
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (o *ListUserRolesUnauthorized) WithPayload(payload *models.Error) *ListUserRolesUnauthorized
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) 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 ¶
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
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 ¶
func (o *ReadMeInternalServerError) WithPayload(payload *models.Error) *ReadMeInternalServerError
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 ¶
ReadMeOK OK
swagger:response readMeOK
func NewReadMeOK ¶
func NewReadMeOK() *ReadMeOK
NewReadMeOK creates ReadMeOK with default headers values
func (*ReadMeOK) SetPayload ¶
SetPayload sets the payload to the read me o k response
func (*ReadMeOK) WithPayload ¶
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 ¶
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) SetBasePath ¶
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) StringFull ¶
StringFull returns the string representation of a complete url
func (*ReadMeURL) WithBasePath ¶
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 ¶
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
type ReadUserBadRequest ¶
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 ¶
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 ¶
func (fn ReadUserHandlerFunc) Handle(params ReadUserParams, principal *models.Principal) middleware.Responder
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 ¶
func (o *ReadUserInternalServerError) WithPayload(payload *models.Error) *ReadUserInternalServerError
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 ¶
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 ¶
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) 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 ¶
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 ¶
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 ¶
func (fn RemoveAdminHandlerFunc) Handle(params RemoveAdminParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type RemoveAdminInternalServerError ¶
type RemoveAdminInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
RemoveAdminInternalServerError Internal Server Error
swagger:response removeAdminInternalServerError
func NewRemoveAdminInternalServerError ¶
func NewRemoveAdminInternalServerError() *RemoveAdminInternalServerError
NewRemoveAdminInternalServerError creates RemoveAdminInternalServerError with default headers values
func (*RemoveAdminInternalServerError) SetPayload ¶
func (o *RemoveAdminInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the remove admin internal server error response
func (*RemoveAdminInternalServerError) WithPayload ¶
func (o *RemoveAdminInternalServerError) WithPayload(payload *models.Error) *RemoveAdminInternalServerError
WithPayload adds the payload to the remove admin internal server error response
func (*RemoveAdminInternalServerError) WriteResponse ¶
func (o *RemoveAdminInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RemoveAdminNoContent ¶
type RemoveAdminNoContent struct { }
RemoveAdminNoContent No Content
swagger:response removeAdminNoContent
func NewRemoveAdminNoContent ¶
func NewRemoveAdminNoContent() *RemoveAdminNoContent
NewRemoveAdminNoContent creates RemoveAdminNoContent with default headers values
func (*RemoveAdminNoContent) WriteResponse ¶
func (o *RemoveAdminNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RemoveAdminNotFound ¶
RemoveAdminNotFound Not Found
swagger:response removeAdminNotFound
func NewRemoveAdminNotFound ¶
func NewRemoveAdminNotFound() *RemoveAdminNotFound
NewRemoveAdminNotFound creates RemoveAdminNotFound with default headers values
func (*RemoveAdminNotFound) SetPayload ¶
func (o *RemoveAdminNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the remove admin not found response
func (*RemoveAdminNotFound) WithPayload ¶
func (o *RemoveAdminNotFound) WithPayload(payload *models.Error) *RemoveAdminNotFound
WithPayload adds the payload to the remove admin not found response
func (*RemoveAdminNotFound) WriteResponse ¶
func (o *RemoveAdminNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RemoveAdminParams ¶
type RemoveAdminParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*User ID. Required: true In: path */ ID string }
RemoveAdminParams contains all the bound params for the remove admin operation typically these are obtained from a http.Request
swagger:parameters removeAdmin
func NewRemoveAdminParams ¶
func NewRemoveAdminParams() RemoveAdminParams
NewRemoveAdminParams creates a new RemoveAdminParams object
There are no default values defined in the spec.
func (*RemoveAdminParams) BindRequest ¶
func (o *RemoveAdminParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewRemoveAdminParams() beforehand.
type RemoveAdminURL ¶
type RemoveAdminURL struct { ID string // contains filtered or unexported fields }
RemoveAdminURL generates an URL for the remove admin operation
func (*RemoveAdminURL) Build ¶
func (o *RemoveAdminURL) Build() (*url.URL, error)
Build a url path and query string
func (*RemoveAdminURL) BuildFull ¶
func (o *RemoveAdminURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*RemoveAdminURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*RemoveAdminURL) SetBasePath ¶
func (o *RemoveAdminURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*RemoveAdminURL) String ¶
func (o *RemoveAdminURL) String() string
String returns the string representation of the path with query string
func (*RemoveAdminURL) StringFull ¶
func (o *RemoveAdminURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*RemoveAdminURL) WithBasePath ¶
func (o *RemoveAdminURL) WithBasePath(bp string) *RemoveAdminURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type 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 ¶
func (o *RemoveCalendarBadRequest) WithPayload(payload *models.Error) *RemoveCalendarBadRequest
WithPayload adds the payload to the remove calendar bad request response
func (*RemoveCalendarBadRequest) WriteResponse ¶
func (o *RemoveCalendarBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RemoveCalendarHandler ¶
type RemoveCalendarHandler interface {
Handle(RemoveCalendarParams, *models.Principal) middleware.Responder
}
RemoveCalendarHandler interface for that can handle valid remove calendar params
type RemoveCalendarHandlerFunc ¶
type RemoveCalendarHandlerFunc func(RemoveCalendarParams, *models.Principal) middleware.Responder
RemoveCalendarHandlerFunc turns a function with the right signature into a remove calendar handler
func (RemoveCalendarHandlerFunc) Handle ¶
func (fn RemoveCalendarHandlerFunc) Handle(params RemoveCalendarParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type RemoveCalendarInternalServerError ¶
type RemoveCalendarInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
RemoveCalendarInternalServerError Internal Server Error
swagger:response removeCalendarInternalServerError
func NewRemoveCalendarInternalServerError ¶
func NewRemoveCalendarInternalServerError() *RemoveCalendarInternalServerError
NewRemoveCalendarInternalServerError creates RemoveCalendarInternalServerError with default headers values
func (*RemoveCalendarInternalServerError) SetPayload ¶
func (o *RemoveCalendarInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the remove calendar internal server error response
func (*RemoveCalendarInternalServerError) WithPayload ¶
func (o *RemoveCalendarInternalServerError) WithPayload(payload *models.Error) *RemoveCalendarInternalServerError
WithPayload adds the payload to the remove calendar internal server error response
func (*RemoveCalendarInternalServerError) WriteResponse ¶
func (o *RemoveCalendarInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RemoveCalendarNoContent ¶
type RemoveCalendarNoContent struct { }
RemoveCalendarNoContent No Content
swagger:response removeCalendarNoContent
func NewRemoveCalendarNoContent ¶
func NewRemoveCalendarNoContent() *RemoveCalendarNoContent
NewRemoveCalendarNoContent creates RemoveCalendarNoContent with default headers values
func (*RemoveCalendarNoContent) WriteResponse ¶
func (o *RemoveCalendarNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RemoveCalendarNotFound ¶
RemoveCalendarNotFound Not Found
swagger:response removeCalendarNotFound
func NewRemoveCalendarNotFound ¶
func NewRemoveCalendarNotFound() *RemoveCalendarNotFound
NewRemoveCalendarNotFound creates RemoveCalendarNotFound with default headers values
func (*RemoveCalendarNotFound) SetPayload ¶
func (o *RemoveCalendarNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the remove calendar not found response
func (*RemoveCalendarNotFound) WithPayload ¶
func (o *RemoveCalendarNotFound) WithPayload(payload *models.Error) *RemoveCalendarNotFound
WithPayload adds the payload to the remove calendar not found response
func (*RemoveCalendarNotFound) WriteResponse ¶
func (o *RemoveCalendarNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RemoveCalendarParams ¶
type RemoveCalendarParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*User ID. Required: true In: path */ ID string }
RemoveCalendarParams contains all the bound params for the remove calendar operation typically these are obtained from a http.Request
swagger:parameters removeCalendar
func NewRemoveCalendarParams ¶
func NewRemoveCalendarParams() RemoveCalendarParams
NewRemoveCalendarParams creates a new RemoveCalendarParams object
There are no default values defined in the spec.
func (*RemoveCalendarParams) BindRequest ¶
func (o *RemoveCalendarParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewRemoveCalendarParams() beforehand.
type RemoveCalendarURL ¶
type RemoveCalendarURL struct { ID string // contains filtered or unexported fields }
RemoveCalendarURL generates an URL for the remove calendar operation
func (*RemoveCalendarURL) Build ¶
func (o *RemoveCalendarURL) Build() (*url.URL, error)
Build a url path and query string
func (*RemoveCalendarURL) BuildFull ¶
func (o *RemoveCalendarURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*RemoveCalendarURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*RemoveCalendarURL) SetBasePath ¶
func (o *RemoveCalendarURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*RemoveCalendarURL) String ¶
func (o *RemoveCalendarURL) String() string
String returns the string representation of the path with query string
func (*RemoveCalendarURL) StringFull ¶
func (o *RemoveCalendarURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*RemoveCalendarURL) WithBasePath ¶
func (o *RemoveCalendarURL) WithBasePath(bp string) *RemoveCalendarURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type 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 ¶
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 ¶
func (fn RemoveRoleHandlerFunc) Handle(params RemoveRoleParams, principal *models.Principal) middleware.Responder
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 ¶
func (o *RemoveRoleInternalServerError) WithPayload(payload *models.Error) *RemoveRoleInternalServerError
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (fn RemoveTutorHandlerFunc) Handle(params RemoveTutorParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type RemoveTutorInternalServerError ¶
type RemoveTutorInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
RemoveTutorInternalServerError Internal Server Error
swagger:response removeTutorInternalServerError
func NewRemoveTutorInternalServerError ¶
func NewRemoveTutorInternalServerError() *RemoveTutorInternalServerError
NewRemoveTutorInternalServerError creates RemoveTutorInternalServerError with default headers values
func (*RemoveTutorInternalServerError) SetPayload ¶
func (o *RemoveTutorInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the remove tutor internal server error response
func (*RemoveTutorInternalServerError) WithPayload ¶
func (o *RemoveTutorInternalServerError) WithPayload(payload *models.Error) *RemoveTutorInternalServerError
WithPayload adds the payload to the remove tutor internal server error response
func (*RemoveTutorInternalServerError) WriteResponse ¶
func (o *RemoveTutorInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RemoveTutorNoContent ¶
type RemoveTutorNoContent struct { }
RemoveTutorNoContent No Content
swagger:response removeTutorNoContent
func NewRemoveTutorNoContent ¶
func NewRemoveTutorNoContent() *RemoveTutorNoContent
NewRemoveTutorNoContent creates RemoveTutorNoContent with default headers values
func (*RemoveTutorNoContent) WriteResponse ¶
func (o *RemoveTutorNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RemoveTutorNotFound ¶
RemoveTutorNotFound Not Found
swagger:response removeTutorNotFound
func NewRemoveTutorNotFound ¶
func NewRemoveTutorNotFound() *RemoveTutorNotFound
NewRemoveTutorNotFound creates RemoveTutorNotFound with default headers values
func (*RemoveTutorNotFound) SetPayload ¶
func (o *RemoveTutorNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the remove tutor not found response
func (*RemoveTutorNotFound) WithPayload ¶
func (o *RemoveTutorNotFound) WithPayload(payload *models.Error) *RemoveTutorNotFound
WithPayload adds the payload to the remove tutor not found response
func (*RemoveTutorNotFound) WriteResponse ¶
func (o *RemoveTutorNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RemoveTutorParams ¶
type RemoveTutorParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*User ID. Required: true In: path */ ID string }
RemoveTutorParams contains all the bound params for the remove tutor operation typically these are obtained from a http.Request
swagger:parameters removeTutor
func NewRemoveTutorParams ¶
func NewRemoveTutorParams() RemoveTutorParams
NewRemoveTutorParams creates a new RemoveTutorParams object
There are no default values defined in the spec.
func (*RemoveTutorParams) BindRequest ¶
func (o *RemoveTutorParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewRemoveTutorParams() beforehand.
type RemoveTutorURL ¶
type RemoveTutorURL struct { ID string // contains filtered or unexported fields }
RemoveTutorURL generates an URL for the remove tutor operation
func (*RemoveTutorURL) Build ¶
func (o *RemoveTutorURL) Build() (*url.URL, error)
Build a url path and query string
func (*RemoveTutorURL) BuildFull ¶
func (o *RemoveTutorURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*RemoveTutorURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*RemoveTutorURL) SetBasePath ¶
func (o *RemoveTutorURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*RemoveTutorURL) String ¶
func (o *RemoveTutorURL) String() string
String returns the string representation of the path with query string
func (*RemoveTutorURL) StringFull ¶
func (o *RemoveTutorURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*RemoveTutorURL) WithBasePath ¶
func (o *RemoveTutorURL) WithBasePath(bp string) *RemoveTutorURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type 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 ¶
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 ¶
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 ¶
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 ¶
func (fn SubscribeMeHandlerFunc) Handle(params SubscribeMeParams, principal *models.Principal) middleware.Responder
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 ¶
func (o *SubscribeMeInternalServerError) WithPayload(payload *models.Error) *SubscribeMeInternalServerError
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (fn SubscribeUserHandlerFunc) Handle(params SubscribeUserParams, principal *models.Principal) middleware.Responder
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 ¶
func (o *SubscribeUserInternalServerError) WithPayload(payload *models.Error) *SubscribeUserInternalServerError
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 ¶
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 ¶
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 ¶
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 ¶
func (o *SubscribeUserUnauthorized) WithPayload(payload *models.Error) *SubscribeUserUnauthorized
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 ¶
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 ¶
func (fn UnsubscribeMeHandlerFunc) Handle(params UnsubscribeMeParams, principal *models.Principal) middleware.Responder
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 ¶
func (o *UnsubscribeMeInternalServerError) WithPayload(payload *models.Error) *UnsubscribeMeInternalServerError
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 ¶
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 ¶
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 ¶
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 ¶
func (o *UnsubscribeMeUnauthorized) WithPayload(payload *models.Error) *UnsubscribeMeUnauthorized
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 ¶
func (o *UnsubscribeUserBadRequest) WithPayload(payload *models.Error) *UnsubscribeUserBadRequest
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 ¶
func (o *UnsubscribeUserForbidden) WithPayload(payload *models.Error) *UnsubscribeUserForbidden
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 ¶
func (fn UnsubscribeUserHandlerFunc) Handle(params UnsubscribeUserParams, principal *models.Principal) middleware.Responder
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 ¶
func (o *UnsubscribeUserInternalServerError) WithPayload(payload *models.Error) *UnsubscribeUserInternalServerError
WithPayload adds the payload to the unsubscribe user internal server error response
func (*UnsubscribeUserInternalServerError) WriteResponse ¶
func (o *UnsubscribeUserInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
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 ¶
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 ¶
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 ¶
func (o *UnsubscribeUserUnauthorized) WithPayload(payload *models.Error) *UnsubscribeUserUnauthorized
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
type UpdateMeBadRequest ¶
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 ¶
func (fn UpdateMeHandlerFunc) Handle(params UpdateMeParams, principal *models.Principal) middleware.Responder
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 ¶
func (o *UpdateMeInternalServerError) WithPayload(payload *models.Error) *UpdateMeInternalServerError
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 ¶
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) 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 ¶
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 ¶
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 ¶
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 ¶
func (fn UpdateUserHandlerFunc) Handle(params UpdateUserParams, principal *models.Principal) middleware.Responder
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 ¶
func (o *UpdateUserInternalServerError) WithPayload(payload *models.Error) *UpdateUserInternalServerError
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
- add_admin.go
- add_admin_parameters.go
- add_admin_responses.go
- add_admin_urlbuilder.go
- add_calendar.go
- add_calendar_parameters.go
- add_calendar_responses.go
- add_calendar_urlbuilder.go
- add_role.go
- add_role_parameters.go
- add_role_responses.go
- add_role_urlbuilder.go
- add_tutor.go
- add_tutor_parameters.go
- add_tutor_responses.go
- add_tutor_urlbuilder.go
- create_user.go
- create_user_parameters.go
- create_user_responses.go
- create_user_urlbuilder.go
- delete_me.go
- delete_me_parameters.go
- delete_me_responses.go
- delete_me_urlbuilder.go
- delete_user.go
- delete_user_parameters.go
- delete_user_responses.go
- delete_user_urlbuilder.go
- list_me_events.go
- list_me_events_parameters.go
- list_me_events_responses.go
- list_me_events_urlbuilder.go
- list_me_roles.go
- list_me_roles_parameters.go
- list_me_roles_responses.go
- list_me_roles_urlbuilder.go
- list_user.go
- list_user_events.go
- list_user_events_parameters.go
- list_user_events_responses.go
- list_user_events_urlbuilder.go
- list_user_parameters.go
- list_user_responses.go
- list_user_roles.go
- list_user_roles_parameters.go
- list_user_roles_responses.go
- list_user_roles_urlbuilder.go
- list_user_urlbuilder.go
- read_me.go
- read_me_parameters.go
- read_me_responses.go
- read_me_urlbuilder.go
- read_user.go
- read_user_parameters.go
- read_user_responses.go
- read_user_urlbuilder.go
- remove_admin.go
- remove_admin_parameters.go
- remove_admin_responses.go
- remove_admin_urlbuilder.go
- remove_calendar.go
- remove_calendar_parameters.go
- remove_calendar_responses.go
- remove_calendar_urlbuilder.go
- remove_role.go
- remove_role_parameters.go
- remove_role_responses.go
- remove_role_urlbuilder.go
- remove_tutor.go
- remove_tutor_parameters.go
- remove_tutor_responses.go
- remove_tutor_urlbuilder.go
- subscribe_me.go
- subscribe_me_parameters.go
- subscribe_me_responses.go
- subscribe_me_urlbuilder.go
- subscribe_user.go
- subscribe_user_parameters.go
- subscribe_user_responses.go
- subscribe_user_urlbuilder.go
- unsubscribe_me.go
- unsubscribe_me_parameters.go
- unsubscribe_me_responses.go
- unsubscribe_me_urlbuilder.go
- unsubscribe_user.go
- unsubscribe_user_parameters.go
- unsubscribe_user_responses.go
- unsubscribe_user_urlbuilder.go
- update_me.go
- update_me_parameters.go
- update_me_responses.go
- update_me_urlbuilder.go
- update_user.go
- update_user_parameters.go
- update_user_responses.go
- update_user_urlbuilder.go