Documentation ¶
Index ¶
- Constants
- type CreateEvent
- type CreateEventBadRequest
- type CreateEventCreated
- type CreateEventForbidden
- type CreateEventHandler
- type CreateEventHandlerFunc
- type CreateEventInternalServerError
- type CreateEventParams
- type CreateEventURL
- func (o *CreateEventURL) Build() (*url.URL, error)
- func (o *CreateEventURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateEventURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateEventURL) SetBasePath(bp string)
- func (o *CreateEventURL) String() string
- func (o *CreateEventURL) StringFull(scheme, host string) string
- func (o *CreateEventURL) WithBasePath(bp string) *CreateEventURL
- type CreateEventUnauthorized
- type CreateType
- type CreateTypeBadRequest
- type CreateTypeCreated
- type CreateTypeHandler
- type CreateTypeHandlerFunc
- type CreateTypeInternalServerError
- type CreateTypeParams
- type CreateTypeURL
- func (o *CreateTypeURL) Build() (*url.URL, error)
- func (o *CreateTypeURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateTypeURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateTypeURL) SetBasePath(bp string)
- func (o *CreateTypeURL) String() string
- func (o *CreateTypeURL) StringFull(scheme, host string) string
- func (o *CreateTypeURL) WithBasePath(bp string) *CreateTypeURL
- type DeleteEvent
- type DeleteEventBadRequest
- type DeleteEventForbidden
- type DeleteEventHandler
- type DeleteEventHandlerFunc
- type DeleteEventInternalServerError
- type DeleteEventNoContent
- type DeleteEventNotFound
- type DeleteEventParams
- type DeleteEventURL
- func (o *DeleteEventURL) Build() (*url.URL, error)
- func (o *DeleteEventURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteEventURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteEventURL) SetBasePath(bp string)
- func (o *DeleteEventURL) String() string
- func (o *DeleteEventURL) StringFull(scheme, host string) string
- func (o *DeleteEventURL) WithBasePath(bp string) *DeleteEventURL
- type DeleteEventUnauthorized
- type DeleteType
- type DeleteTypeBadRequest
- type DeleteTypeHandler
- type DeleteTypeHandlerFunc
- type DeleteTypeInternalServerError
- type DeleteTypeNoContent
- type DeleteTypeNotFound
- type DeleteTypeParams
- type DeleteTypeURL
- func (o *DeleteTypeURL) Build() (*url.URL, error)
- func (o *DeleteTypeURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteTypeURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteTypeURL) SetBasePath(bp string)
- func (o *DeleteTypeURL) String() string
- func (o *DeleteTypeURL) StringFull(scheme, host string) string
- func (o *DeleteTypeURL) WithBasePath(bp string) *DeleteTypeURL
- type EventType
- type EventTypeBadRequest
- type EventTypeForbidden
- type EventTypeHandler
- type EventTypeHandlerFunc
- type EventTypeInternalServerError
- type EventTypeNotFound
- type EventTypeOK
- type EventTypeParams
- type EventTypeURL
- func (o *EventTypeURL) Build() (*url.URL, error)
- func (o *EventTypeURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *EventTypeURL) Must(u *url.URL, err error) *url.URL
- func (o *EventTypeURL) SetBasePath(bp string)
- func (o *EventTypeURL) String() string
- func (o *EventTypeURL) StringFull(scheme, host string) string
- func (o *EventTypeURL) WithBasePath(bp string) *EventTypeURL
- type EventTypeUnauthorized
- type GetEventType
- type GetEventTypeBadRequest
- type GetEventTypeForbidden
- type GetEventTypeHandler
- type GetEventTypeHandlerFunc
- type GetEventTypeInternalServerError
- type GetEventTypeNotFound
- type GetEventTypeOK
- type GetEventTypeParams
- type GetEventTypeURL
- func (o *GetEventTypeURL) Build() (*url.URL, error)
- func (o *GetEventTypeURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetEventTypeURL) Must(u *url.URL, err error) *url.URL
- func (o *GetEventTypeURL) SetBasePath(bp string)
- func (o *GetEventTypeURL) String() string
- func (o *GetEventTypeURL) StringFull(scheme, host string) string
- func (o *GetEventTypeURL) WithBasePath(bp string) *GetEventTypeURL
- type GetEventTypeUnauthorized
- type ListEvent
- type ListEventForbidden
- type ListEventHandler
- type ListEventHandlerFunc
- type ListEventInternalServerError
- type ListEventOK
- type ListEventParams
- type ListEventURL
- func (o *ListEventURL) Build() (*url.URL, error)
- func (o *ListEventURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListEventURL) Must(u *url.URL, err error) *url.URL
- func (o *ListEventURL) SetBasePath(bp string)
- func (o *ListEventURL) String() string
- func (o *ListEventURL) StringFull(scheme, host string) string
- func (o *ListEventURL) WithBasePath(bp string) *ListEventURL
- type ListEventUnauthorized
- type ListEventUsers
- type ListEventUsersBadRequest
- type ListEventUsersForbidden
- type ListEventUsersHandler
- type ListEventUsersHandlerFunc
- type ListEventUsersInternalServerError
- func (o *ListEventUsersInternalServerError) SetPayload(payload *models.Error)
- func (o *ListEventUsersInternalServerError) WithPayload(payload *models.Error) *ListEventUsersInternalServerError
- func (o *ListEventUsersInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListEventUsersNotFound
- type ListEventUsersOK
- type ListEventUsersParams
- type ListEventUsersURL
- func (o *ListEventUsersURL) Build() (*url.URL, error)
- func (o *ListEventUsersURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListEventUsersURL) Must(u *url.URL, err error) *url.URL
- func (o *ListEventUsersURL) SetBasePath(bp string)
- func (o *ListEventUsersURL) String() string
- func (o *ListEventUsersURL) StringFull(scheme, host string) string
- func (o *ListEventUsersURL) WithBasePath(bp string) *ListEventUsersURL
- type ListEventUsersUnauthorized
- type ListEventWithUsers
- type ListEventWithUsersForbidden
- type ListEventWithUsersHandler
- type ListEventWithUsersHandlerFunc
- type ListEventWithUsersInternalServerError
- func (o *ListEventWithUsersInternalServerError) SetPayload(payload *models.Error)
- func (o *ListEventWithUsersInternalServerError) WithPayload(payload *models.Error) *ListEventWithUsersInternalServerError
- func (o *ListEventWithUsersInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListEventWithUsersOK
- type ListEventWithUsersParams
- type ListEventWithUsersURL
- func (o *ListEventWithUsersURL) Build() (*url.URL, error)
- func (o *ListEventWithUsersURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListEventWithUsersURL) Must(u *url.URL, err error) *url.URL
- func (o *ListEventWithUsersURL) SetBasePath(bp string)
- func (o *ListEventWithUsersURL) String() string
- func (o *ListEventWithUsersURL) StringFull(scheme, host string) string
- func (o *ListEventWithUsersURL) WithBasePath(bp string) *ListEventWithUsersURL
- type ListEventWithUsersUnauthorized
- type ListType
- type ListTypeHandler
- type ListTypeHandlerFunc
- type ListTypeInternalServerError
- type ListTypeOK
- type ListTypeParams
- type ListTypeURL
- func (o *ListTypeURL) Build() (*url.URL, error)
- func (o *ListTypeURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListTypeURL) Must(u *url.URL, err error) *url.URL
- func (o *ListTypeURL) SetBasePath(bp string)
- func (o *ListTypeURL) String() string
- func (o *ListTypeURL) StringFull(scheme, host string) string
- func (o *ListTypeURL) WithBasePath(bp string) *ListTypeURL
- type ReadEvent
- type ReadEventBadRequest
- type ReadEventForbidden
- type ReadEventHandler
- type ReadEventHandlerFunc
- type ReadEventInternalServerError
- type ReadEventNotFound
- type ReadEventOK
- type ReadEventParams
- type ReadEventURL
- func (o *ReadEventURL) Build() (*url.URL, error)
- func (o *ReadEventURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ReadEventURL) Must(u *url.URL, err error) *url.URL
- func (o *ReadEventURL) SetBasePath(bp string)
- func (o *ReadEventURL) String() string
- func (o *ReadEventURL) StringFull(scheme, host string) string
- func (o *ReadEventURL) WithBasePath(bp string) *ReadEventURL
- type ReadEventUnauthorized
- type ReadType
- type ReadTypeBadRequest
- type ReadTypeHandler
- type ReadTypeHandlerFunc
- type ReadTypeInternalServerError
- type ReadTypeNotFound
- type ReadTypeOK
- type ReadTypeParams
- type ReadTypeURL
- func (o *ReadTypeURL) Build() (*url.URL, error)
- func (o *ReadTypeURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ReadTypeURL) Must(u *url.URL, err error) *url.URL
- func (o *ReadTypeURL) SetBasePath(bp string)
- func (o *ReadTypeURL) String() string
- func (o *ReadTypeURL) StringFull(scheme, host string) string
- func (o *ReadTypeURL) WithBasePath(bp string) *ReadTypeURL
- type SetEventType
- type SetEventTypeBadRequest
- type SetEventTypeForbidden
- type SetEventTypeHandler
- type SetEventTypeHandlerFunc
- type SetEventTypeInternalServerError
- type SetEventTypeNotFound
- type SetEventTypeOK
- type SetEventTypeParams
- type SetEventTypeURL
- func (o *SetEventTypeURL) Build() (*url.URL, error)
- func (o *SetEventTypeURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *SetEventTypeURL) Must(u *url.URL, err error) *url.URL
- func (o *SetEventTypeURL) SetBasePath(bp string)
- func (o *SetEventTypeURL) String() string
- func (o *SetEventTypeURL) StringFull(scheme, host string) string
- func (o *SetEventTypeURL) WithBasePath(bp string) *SetEventTypeURL
- type SetEventTypeUnauthorized
- type UpdateEvent
- type UpdateEventBadRequest
- type UpdateEventForbidden
- type UpdateEventHandler
- type UpdateEventHandlerFunc
- type UpdateEventInternalServerError
- type UpdateEventNotFound
- type UpdateEventOK
- type UpdateEventParams
- type UpdateEventURL
- func (o *UpdateEventURL) Build() (*url.URL, error)
- func (o *UpdateEventURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateEventURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateEventURL) SetBasePath(bp string)
- func (o *UpdateEventURL) String() string
- func (o *UpdateEventURL) StringFull(scheme, host string) string
- func (o *UpdateEventURL) WithBasePath(bp string) *UpdateEventURL
- type UpdateEventUnauthorized
- type UpdateType
- type UpdateTypeBadRequest
- type UpdateTypeHandler
- type UpdateTypeHandlerFunc
- type UpdateTypeInternalServerError
- type UpdateTypeNotFound
- type UpdateTypeOK
- type UpdateTypeParams
- type UpdateTypeURL
- func (o *UpdateTypeURL) Build() (*url.URL, error)
- func (o *UpdateTypeURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateTypeURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateTypeURL) SetBasePath(bp string)
- func (o *UpdateTypeURL) String() string
- func (o *UpdateTypeURL) StringFull(scheme, host string) string
- func (o *UpdateTypeURL) WithBasePath(bp string) *UpdateTypeURL
Constants ¶
const CreateEventBadRequestCode int = 400
CreateEventBadRequestCode is the HTTP code returned for type CreateEventBadRequest
const CreateEventCreatedCode int = 201
CreateEventCreatedCode is the HTTP code returned for type CreateEventCreated
const CreateEventForbiddenCode int = 403
CreateEventForbiddenCode is the HTTP code returned for type CreateEventForbidden
const CreateEventInternalServerErrorCode int = 500
CreateEventInternalServerErrorCode is the HTTP code returned for type CreateEventInternalServerError
CreateEventUnauthorizedCode is the HTTP code returned for type CreateEventUnauthorized
const CreateTypeBadRequestCode int = 400
CreateTypeBadRequestCode is the HTTP code returned for type CreateTypeBadRequest
const CreateTypeCreatedCode int = 201
CreateTypeCreatedCode is the HTTP code returned for type CreateTypeCreated
const CreateTypeInternalServerErrorCode int = 500
CreateTypeInternalServerErrorCode is the HTTP code returned for type CreateTypeInternalServerError
const DeleteEventBadRequestCode int = 400
DeleteEventBadRequestCode is the HTTP code returned for type DeleteEventBadRequest
const DeleteEventForbiddenCode int = 403
DeleteEventForbiddenCode is the HTTP code returned for type DeleteEventForbidden
const DeleteEventInternalServerErrorCode int = 500
DeleteEventInternalServerErrorCode is the HTTP code returned for type DeleteEventInternalServerError
const DeleteEventNoContentCode int = 204
DeleteEventNoContentCode is the HTTP code returned for type DeleteEventNoContent
const DeleteEventNotFoundCode int = 404
DeleteEventNotFoundCode is the HTTP code returned for type DeleteEventNotFound
DeleteEventUnauthorizedCode is the HTTP code returned for type DeleteEventUnauthorized
const DeleteTypeBadRequestCode int = 400
DeleteTypeBadRequestCode is the HTTP code returned for type DeleteTypeBadRequest
const DeleteTypeInternalServerErrorCode int = 500
DeleteTypeInternalServerErrorCode is the HTTP code returned for type DeleteTypeInternalServerError
const DeleteTypeNoContentCode int = 204
DeleteTypeNoContentCode is the HTTP code returned for type DeleteTypeNoContent
const DeleteTypeNotFoundCode int = 404
DeleteTypeNotFoundCode is the HTTP code returned for type DeleteTypeNotFound
const EventTypeBadRequestCode int = 400
EventTypeBadRequestCode is the HTTP code returned for type EventTypeBadRequest
const EventTypeForbiddenCode int = 403
EventTypeForbiddenCode is the HTTP code returned for type EventTypeForbidden
const EventTypeInternalServerErrorCode int = 500
EventTypeInternalServerErrorCode is the HTTP code returned for type EventTypeInternalServerError
const EventTypeNotFoundCode int = 404
EventTypeNotFoundCode is the HTTP code returned for type EventTypeNotFound
const EventTypeOKCode int = 200
EventTypeOKCode is the HTTP code returned for type EventTypeOK
EventTypeUnauthorizedCode is the HTTP code returned for type EventTypeUnauthorized
const GetEventTypeBadRequestCode int = 400
GetEventTypeBadRequestCode is the HTTP code returned for type GetEventTypeBadRequest
const GetEventTypeForbiddenCode int = 403
GetEventTypeForbiddenCode is the HTTP code returned for type GetEventTypeForbidden
const GetEventTypeInternalServerErrorCode int = 500
GetEventTypeInternalServerErrorCode is the HTTP code returned for type GetEventTypeInternalServerError
const GetEventTypeNotFoundCode int = 404
GetEventTypeNotFoundCode is the HTTP code returned for type GetEventTypeNotFound
const GetEventTypeOKCode int = 200
GetEventTypeOKCode is the HTTP code returned for type GetEventTypeOK
GetEventTypeUnauthorizedCode is the HTTP code returned for type GetEventTypeUnauthorized
const ListEventForbiddenCode int = 403
ListEventForbiddenCode is the HTTP code returned for type ListEventForbidden
const ListEventInternalServerErrorCode int = 500
ListEventInternalServerErrorCode is the HTTP code returned for type ListEventInternalServerError
const ListEventOKCode int = 200
ListEventOKCode is the HTTP code returned for type ListEventOK
ListEventUnauthorizedCode is the HTTP code returned for type ListEventUnauthorized
const ListEventUsersBadRequestCode int = 400
ListEventUsersBadRequestCode is the HTTP code returned for type ListEventUsersBadRequest
const ListEventUsersForbiddenCode int = 403
ListEventUsersForbiddenCode is the HTTP code returned for type ListEventUsersForbidden
const ListEventUsersInternalServerErrorCode int = 500
ListEventUsersInternalServerErrorCode is the HTTP code returned for type ListEventUsersInternalServerError
const ListEventUsersNotFoundCode int = 404
ListEventUsersNotFoundCode is the HTTP code returned for type ListEventUsersNotFound
const ListEventUsersOKCode int = 200
ListEventUsersOKCode is the HTTP code returned for type ListEventUsersOK
ListEventUsersUnauthorizedCode is the HTTP code returned for type ListEventUsersUnauthorized
const ListEventWithUsersForbiddenCode int = 403
ListEventWithUsersForbiddenCode is the HTTP code returned for type ListEventWithUsersForbidden
const ListEventWithUsersInternalServerErrorCode int = 500
ListEventWithUsersInternalServerErrorCode is the HTTP code returned for type ListEventWithUsersInternalServerError
const ListEventWithUsersOKCode int = 200
ListEventWithUsersOKCode is the HTTP code returned for type ListEventWithUsersOK
ListEventWithUsersUnauthorizedCode is the HTTP code returned for type ListEventWithUsersUnauthorized
const ListTypeInternalServerErrorCode int = 500
ListTypeInternalServerErrorCode is the HTTP code returned for type ListTypeInternalServerError
const ListTypeOKCode int = 200
ListTypeOKCode is the HTTP code returned for type ListTypeOK
const ReadEventBadRequestCode int = 400
ReadEventBadRequestCode is the HTTP code returned for type ReadEventBadRequest
const ReadEventForbiddenCode int = 403
ReadEventForbiddenCode is the HTTP code returned for type ReadEventForbidden
const ReadEventInternalServerErrorCode int = 500
ReadEventInternalServerErrorCode is the HTTP code returned for type ReadEventInternalServerError
const ReadEventNotFoundCode int = 404
ReadEventNotFoundCode is the HTTP code returned for type ReadEventNotFound
const ReadEventOKCode int = 200
ReadEventOKCode is the HTTP code returned for type ReadEventOK
ReadEventUnauthorizedCode is the HTTP code returned for type ReadEventUnauthorized
const ReadTypeBadRequestCode int = 400
ReadTypeBadRequestCode is the HTTP code returned for type ReadTypeBadRequest
const ReadTypeInternalServerErrorCode int = 500
ReadTypeInternalServerErrorCode is the HTTP code returned for type ReadTypeInternalServerError
const ReadTypeNotFoundCode int = 404
ReadTypeNotFoundCode is the HTTP code returned for type ReadTypeNotFound
const ReadTypeOKCode int = 200
ReadTypeOKCode is the HTTP code returned for type ReadTypeOK
const SetEventTypeBadRequestCode int = 400
SetEventTypeBadRequestCode is the HTTP code returned for type SetEventTypeBadRequest
const SetEventTypeForbiddenCode int = 403
SetEventTypeForbiddenCode is the HTTP code returned for type SetEventTypeForbidden
const SetEventTypeInternalServerErrorCode int = 500
SetEventTypeInternalServerErrorCode is the HTTP code returned for type SetEventTypeInternalServerError
const SetEventTypeNotFoundCode int = 404
SetEventTypeNotFoundCode is the HTTP code returned for type SetEventTypeNotFound
const SetEventTypeOKCode int = 200
SetEventTypeOKCode is the HTTP code returned for type SetEventTypeOK
SetEventTypeUnauthorizedCode is the HTTP code returned for type SetEventTypeUnauthorized
const UpdateEventBadRequestCode int = 400
UpdateEventBadRequestCode is the HTTP code returned for type UpdateEventBadRequest
const UpdateEventForbiddenCode int = 403
UpdateEventForbiddenCode is the HTTP code returned for type UpdateEventForbidden
const UpdateEventInternalServerErrorCode int = 500
UpdateEventInternalServerErrorCode is the HTTP code returned for type UpdateEventInternalServerError
const UpdateEventNotFoundCode int = 404
UpdateEventNotFoundCode is the HTTP code returned for type UpdateEventNotFound
const UpdateEventOKCode int = 200
UpdateEventOKCode is the HTTP code returned for type UpdateEventOK
UpdateEventUnauthorizedCode is the HTTP code returned for type UpdateEventUnauthorized
const UpdateTypeBadRequestCode int = 400
UpdateTypeBadRequestCode is the HTTP code returned for type UpdateTypeBadRequest
const UpdateTypeInternalServerErrorCode int = 500
UpdateTypeInternalServerErrorCode is the HTTP code returned for type UpdateTypeInternalServerError
const UpdateTypeNotFoundCode int = 404
UpdateTypeNotFoundCode is the HTTP code returned for type UpdateTypeNotFound
const UpdateTypeOKCode int = 200
UpdateTypeOKCode is the HTTP code returned for type UpdateTypeOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateEvent ¶
type CreateEvent struct { Context *middleware.Context Handler CreateEventHandler }
CreateEvent swagger:route POST /events Event createEvent
Create event ¶
Create a new event.
func NewCreateEvent ¶
func NewCreateEvent(ctx *middleware.Context, handler CreateEventHandler) *CreateEvent
NewCreateEvent creates a new http.Handler for the create event operation
func (*CreateEvent) ServeHTTP ¶
func (o *CreateEvent) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateEventBadRequest ¶
CreateEventBadRequest Bad request
swagger:response createEventBadRequest
func NewCreateEventBadRequest ¶
func NewCreateEventBadRequest() *CreateEventBadRequest
NewCreateEventBadRequest creates CreateEventBadRequest with default headers values
func (*CreateEventBadRequest) SetPayload ¶
func (o *CreateEventBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the create event bad request response
func (*CreateEventBadRequest) WithPayload ¶
func (o *CreateEventBadRequest) WithPayload(payload *models.Error) *CreateEventBadRequest
WithPayload adds the payload to the create event bad request response
func (*CreateEventBadRequest) WriteResponse ¶
func (o *CreateEventBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateEventCreated ¶
CreateEventCreated Created
swagger:response createEventCreated
func NewCreateEventCreated ¶
func NewCreateEventCreated() *CreateEventCreated
NewCreateEventCreated creates CreateEventCreated with default headers values
func (*CreateEventCreated) SetPayload ¶
func (o *CreateEventCreated) SetPayload(payload *ent.Event)
SetPayload sets the payload to the create event created response
func (*CreateEventCreated) WithPayload ¶
func (o *CreateEventCreated) WithPayload(payload *ent.Event) *CreateEventCreated
WithPayload adds the payload to the create event created response
func (*CreateEventCreated) WriteResponse ¶
func (o *CreateEventCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateEventForbidden ¶
CreateEventForbidden Forbidden
swagger:response createEventForbidden
func NewCreateEventForbidden ¶
func NewCreateEventForbidden() *CreateEventForbidden
NewCreateEventForbidden creates CreateEventForbidden with default headers values
func (*CreateEventForbidden) SetPayload ¶
func (o *CreateEventForbidden) SetPayload(payload *models.Error)
SetPayload sets the payload to the create event forbidden response
func (*CreateEventForbidden) WithPayload ¶
func (o *CreateEventForbidden) WithPayload(payload *models.Error) *CreateEventForbidden
WithPayload adds the payload to the create event forbidden response
func (*CreateEventForbidden) WriteResponse ¶
func (o *CreateEventForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateEventHandler ¶
type CreateEventHandler interface {
Handle(CreateEventParams, *models.Principal) middleware.Responder
}
CreateEventHandler interface for that can handle valid create event params
type CreateEventHandlerFunc ¶
type CreateEventHandlerFunc func(CreateEventParams, *models.Principal) middleware.Responder
CreateEventHandlerFunc turns a function with the right signature into a create event handler
func (CreateEventHandlerFunc) Handle ¶
func (fn CreateEventHandlerFunc) Handle(params CreateEventParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type CreateEventInternalServerError ¶
type CreateEventInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
CreateEventInternalServerError Internal Server Error
swagger:response createEventInternalServerError
func NewCreateEventInternalServerError ¶
func NewCreateEventInternalServerError() *CreateEventInternalServerError
NewCreateEventInternalServerError creates CreateEventInternalServerError with default headers values
func (*CreateEventInternalServerError) SetPayload ¶
func (o *CreateEventInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the create event internal server error response
func (*CreateEventInternalServerError) WithPayload ¶
func (o *CreateEventInternalServerError) WithPayload(payload *models.Error) *CreateEventInternalServerError
WithPayload adds the payload to the create event internal server error response
func (*CreateEventInternalServerError) WriteResponse ¶
func (o *CreateEventInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateEventParams ¶
type CreateEventParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Event to create. Required: true In: body */ Event *ent.Event /*Event repetition count. In: query */ RepeatCount *int64 /*Event repetition type. In: query */ RepeatType *string }
CreateEventParams contains all the bound params for the create event operation typically these are obtained from a http.Request
swagger:parameters createEvent
func NewCreateEventParams ¶
func NewCreateEventParams() CreateEventParams
NewCreateEventParams creates a new CreateEventParams object
There are no default values defined in the spec.
func (*CreateEventParams) BindRequest ¶
func (o *CreateEventParams) 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 NewCreateEventParams() beforehand.
type CreateEventURL ¶
type CreateEventURL struct { RepeatCount *int64 RepeatType *string // contains filtered or unexported fields }
CreateEventURL generates an URL for the create event operation
func (*CreateEventURL) Build ¶
func (o *CreateEventURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateEventURL) BuildFull ¶
func (o *CreateEventURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateEventURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreateEventURL) SetBasePath ¶
func (o *CreateEventURL) 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 (*CreateEventURL) String ¶
func (o *CreateEventURL) String() string
String returns the string representation of the path with query string
func (*CreateEventURL) StringFull ¶
func (o *CreateEventURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateEventURL) WithBasePath ¶
func (o *CreateEventURL) WithBasePath(bp string) *CreateEventURL
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 CreateEventUnauthorized ¶
CreateEventUnauthorized Unauthorized
swagger:response createEventUnauthorized
func NewCreateEventUnauthorized ¶
func NewCreateEventUnauthorized() *CreateEventUnauthorized
NewCreateEventUnauthorized creates CreateEventUnauthorized with default headers values
func (*CreateEventUnauthorized) SetPayload ¶
func (o *CreateEventUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the create event unauthorized response
func (*CreateEventUnauthorized) WithPayload ¶
func (o *CreateEventUnauthorized) WithPayload(payload *models.Error) *CreateEventUnauthorized
WithPayload adds the payload to the create event unauthorized response
func (*CreateEventUnauthorized) WriteResponse ¶
func (o *CreateEventUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateType ¶
type CreateType struct { Context *middleware.Context Handler CreateTypeHandler }
CreateType swagger:route POST /events/types Event createType
Create event type ¶
Create a new event category.
func NewCreateType ¶
func NewCreateType(ctx *middleware.Context, handler CreateTypeHandler) *CreateType
NewCreateType creates a new http.Handler for the create type operation
func (*CreateType) ServeHTTP ¶
func (o *CreateType) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateTypeBadRequest ¶
CreateTypeBadRequest Bad request
swagger:response createTypeBadRequest
func NewCreateTypeBadRequest ¶
func NewCreateTypeBadRequest() *CreateTypeBadRequest
NewCreateTypeBadRequest creates CreateTypeBadRequest with default headers values
func (*CreateTypeBadRequest) SetPayload ¶
func (o *CreateTypeBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the create type bad request response
func (*CreateTypeBadRequest) WithPayload ¶
func (o *CreateTypeBadRequest) WithPayload(payload *models.Error) *CreateTypeBadRequest
WithPayload adds the payload to the create type bad request response
func (*CreateTypeBadRequest) WriteResponse ¶
func (o *CreateTypeBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateTypeCreated ¶
CreateTypeCreated Created
swagger:response createTypeCreated
func NewCreateTypeCreated ¶
func NewCreateTypeCreated() *CreateTypeCreated
NewCreateTypeCreated creates CreateTypeCreated with default headers values
func (*CreateTypeCreated) SetPayload ¶
func (o *CreateTypeCreated) SetPayload(payload *ent.EventType)
SetPayload sets the payload to the create type created response
func (*CreateTypeCreated) WithPayload ¶
func (o *CreateTypeCreated) WithPayload(payload *ent.EventType) *CreateTypeCreated
WithPayload adds the payload to the create type created response
func (*CreateTypeCreated) WriteResponse ¶
func (o *CreateTypeCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateTypeHandler ¶
type CreateTypeHandler interface {
Handle(CreateTypeParams, *models.Principal) middleware.Responder
}
CreateTypeHandler interface for that can handle valid create type params
type CreateTypeHandlerFunc ¶
type CreateTypeHandlerFunc func(CreateTypeParams, *models.Principal) middleware.Responder
CreateTypeHandlerFunc turns a function with the right signature into a create type handler
func (CreateTypeHandlerFunc) Handle ¶
func (fn CreateTypeHandlerFunc) Handle(params CreateTypeParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type CreateTypeInternalServerError ¶
type CreateTypeInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
CreateTypeInternalServerError Internal Server Error
swagger:response createTypeInternalServerError
func NewCreateTypeInternalServerError ¶
func NewCreateTypeInternalServerError() *CreateTypeInternalServerError
NewCreateTypeInternalServerError creates CreateTypeInternalServerError with default headers values
func (*CreateTypeInternalServerError) SetPayload ¶
func (o *CreateTypeInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the create type internal server error response
func (*CreateTypeInternalServerError) WithPayload ¶
func (o *CreateTypeInternalServerError) WithPayload(payload *models.Error) *CreateTypeInternalServerError
WithPayload adds the payload to the create type internal server error response
func (*CreateTypeInternalServerError) WriteResponse ¶
func (o *CreateTypeInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateTypeParams ¶
type CreateTypeParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Event category to create. Required: true In: body */ Type *ent.EventType }
CreateTypeParams contains all the bound params for the create type operation typically these are obtained from a http.Request
swagger:parameters createType
func NewCreateTypeParams ¶
func NewCreateTypeParams() CreateTypeParams
NewCreateTypeParams creates a new CreateTypeParams object
There are no default values defined in the spec.
func (*CreateTypeParams) BindRequest ¶
func (o *CreateTypeParams) 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 NewCreateTypeParams() beforehand.
type CreateTypeURL ¶
type CreateTypeURL struct {
// contains filtered or unexported fields
}
CreateTypeURL generates an URL for the create type operation
func (*CreateTypeURL) Build ¶
func (o *CreateTypeURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateTypeURL) BuildFull ¶
func (o *CreateTypeURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateTypeURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreateTypeURL) SetBasePath ¶
func (o *CreateTypeURL) 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 (*CreateTypeURL) String ¶
func (o *CreateTypeURL) String() string
String returns the string representation of the path with query string
func (*CreateTypeURL) StringFull ¶
func (o *CreateTypeURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateTypeURL) WithBasePath ¶
func (o *CreateTypeURL) WithBasePath(bp string) *CreateTypeURL
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 DeleteEvent ¶
type DeleteEvent struct { Context *middleware.Context Handler DeleteEventHandler }
DeleteEvent swagger:route DELETE /events/{id} Event deleteEvent
Delete event ¶
Delete an event by ID.
func NewDeleteEvent ¶
func NewDeleteEvent(ctx *middleware.Context, handler DeleteEventHandler) *DeleteEvent
NewDeleteEvent creates a new http.Handler for the delete event operation
func (*DeleteEvent) ServeHTTP ¶
func (o *DeleteEvent) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteEventBadRequest ¶
DeleteEventBadRequest Bad request
swagger:response deleteEventBadRequest
func NewDeleteEventBadRequest ¶
func NewDeleteEventBadRequest() *DeleteEventBadRequest
NewDeleteEventBadRequest creates DeleteEventBadRequest with default headers values
func (*DeleteEventBadRequest) SetPayload ¶
func (o *DeleteEventBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete event bad request response
func (*DeleteEventBadRequest) WithPayload ¶
func (o *DeleteEventBadRequest) WithPayload(payload *models.Error) *DeleteEventBadRequest
WithPayload adds the payload to the delete event bad request response
func (*DeleteEventBadRequest) WriteResponse ¶
func (o *DeleteEventBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteEventForbidden ¶
DeleteEventForbidden Forbidden
swagger:response deleteEventForbidden
func NewDeleteEventForbidden ¶
func NewDeleteEventForbidden() *DeleteEventForbidden
NewDeleteEventForbidden creates DeleteEventForbidden with default headers values
func (*DeleteEventForbidden) SetPayload ¶
func (o *DeleteEventForbidden) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete event forbidden response
func (*DeleteEventForbidden) WithPayload ¶
func (o *DeleteEventForbidden) WithPayload(payload *models.Error) *DeleteEventForbidden
WithPayload adds the payload to the delete event forbidden response
func (*DeleteEventForbidden) WriteResponse ¶
func (o *DeleteEventForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteEventHandler ¶
type DeleteEventHandler interface {
Handle(DeleteEventParams, *models.Principal) middleware.Responder
}
DeleteEventHandler interface for that can handle valid delete event params
type DeleteEventHandlerFunc ¶
type DeleteEventHandlerFunc func(DeleteEventParams, *models.Principal) middleware.Responder
DeleteEventHandlerFunc turns a function with the right signature into a delete event handler
func (DeleteEventHandlerFunc) Handle ¶
func (fn DeleteEventHandlerFunc) Handle(params DeleteEventParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type DeleteEventInternalServerError ¶
type DeleteEventInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
DeleteEventInternalServerError Internal Server Error
swagger:response deleteEventInternalServerError
func NewDeleteEventInternalServerError ¶
func NewDeleteEventInternalServerError() *DeleteEventInternalServerError
NewDeleteEventInternalServerError creates DeleteEventInternalServerError with default headers values
func (*DeleteEventInternalServerError) SetPayload ¶
func (o *DeleteEventInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete event internal server error response
func (*DeleteEventInternalServerError) WithPayload ¶
func (o *DeleteEventInternalServerError) WithPayload(payload *models.Error) *DeleteEventInternalServerError
WithPayload adds the payload to the delete event internal server error response
func (*DeleteEventInternalServerError) WriteResponse ¶
func (o *DeleteEventInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteEventNoContent ¶
type DeleteEventNoContent struct { }
DeleteEventNoContent No Content
swagger:response deleteEventNoContent
func NewDeleteEventNoContent ¶
func NewDeleteEventNoContent() *DeleteEventNoContent
NewDeleteEventNoContent creates DeleteEventNoContent with default headers values
func (*DeleteEventNoContent) WriteResponse ¶
func (o *DeleteEventNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteEventNotFound ¶
DeleteEventNotFound Not Found
swagger:response deleteEventNotFound
func NewDeleteEventNotFound ¶
func NewDeleteEventNotFound() *DeleteEventNotFound
NewDeleteEventNotFound creates DeleteEventNotFound with default headers values
func (*DeleteEventNotFound) SetPayload ¶
func (o *DeleteEventNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete event not found response
func (*DeleteEventNotFound) WithPayload ¶
func (o *DeleteEventNotFound) WithPayload(payload *models.Error) *DeleteEventNotFound
WithPayload adds the payload to the delete event not found response
func (*DeleteEventNotFound) WriteResponse ¶
func (o *DeleteEventNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteEventParams ¶
type DeleteEventParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Event ID. Required: true In: path */ ID string }
DeleteEventParams contains all the bound params for the delete event operation typically these are obtained from a http.Request
swagger:parameters deleteEvent
func NewDeleteEventParams ¶
func NewDeleteEventParams() DeleteEventParams
NewDeleteEventParams creates a new DeleteEventParams object
There are no default values defined in the spec.
func (*DeleteEventParams) BindRequest ¶
func (o *DeleteEventParams) 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 NewDeleteEventParams() beforehand.
type DeleteEventURL ¶
type DeleteEventURL struct { ID string // contains filtered or unexported fields }
DeleteEventURL generates an URL for the delete event operation
func (*DeleteEventURL) Build ¶
func (o *DeleteEventURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteEventURL) BuildFull ¶
func (o *DeleteEventURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteEventURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteEventURL) SetBasePath ¶
func (o *DeleteEventURL) 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 (*DeleteEventURL) String ¶
func (o *DeleteEventURL) String() string
String returns the string representation of the path with query string
func (*DeleteEventURL) StringFull ¶
func (o *DeleteEventURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteEventURL) WithBasePath ¶
func (o *DeleteEventURL) WithBasePath(bp string) *DeleteEventURL
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 DeleteEventUnauthorized ¶
DeleteEventUnauthorized Unauthorized
swagger:response deleteEventUnauthorized
func NewDeleteEventUnauthorized ¶
func NewDeleteEventUnauthorized() *DeleteEventUnauthorized
NewDeleteEventUnauthorized creates DeleteEventUnauthorized with default headers values
func (*DeleteEventUnauthorized) SetPayload ¶
func (o *DeleteEventUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete event unauthorized response
func (*DeleteEventUnauthorized) WithPayload ¶
func (o *DeleteEventUnauthorized) WithPayload(payload *models.Error) *DeleteEventUnauthorized
WithPayload adds the payload to the delete event unauthorized response
func (*DeleteEventUnauthorized) WriteResponse ¶
func (o *DeleteEventUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteType ¶
type DeleteType struct { Context *middleware.Context Handler DeleteTypeHandler }
DeleteType swagger:route DELETE /events/types/{id} Event deleteType
Delete event type ¶
Update an event category.
func NewDeleteType ¶
func NewDeleteType(ctx *middleware.Context, handler DeleteTypeHandler) *DeleteType
NewDeleteType creates a new http.Handler for the delete type operation
func (*DeleteType) ServeHTTP ¶
func (o *DeleteType) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteTypeBadRequest ¶
DeleteTypeBadRequest Bad request
swagger:response deleteTypeBadRequest
func NewDeleteTypeBadRequest ¶
func NewDeleteTypeBadRequest() *DeleteTypeBadRequest
NewDeleteTypeBadRequest creates DeleteTypeBadRequest with default headers values
func (*DeleteTypeBadRequest) SetPayload ¶
func (o *DeleteTypeBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete type bad request response
func (*DeleteTypeBadRequest) WithPayload ¶
func (o *DeleteTypeBadRequest) WithPayload(payload *models.Error) *DeleteTypeBadRequest
WithPayload adds the payload to the delete type bad request response
func (*DeleteTypeBadRequest) WriteResponse ¶
func (o *DeleteTypeBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteTypeHandler ¶
type DeleteTypeHandler interface {
Handle(DeleteTypeParams, *models.Principal) middleware.Responder
}
DeleteTypeHandler interface for that can handle valid delete type params
type DeleteTypeHandlerFunc ¶
type DeleteTypeHandlerFunc func(DeleteTypeParams, *models.Principal) middleware.Responder
DeleteTypeHandlerFunc turns a function with the right signature into a delete type handler
func (DeleteTypeHandlerFunc) Handle ¶
func (fn DeleteTypeHandlerFunc) Handle(params DeleteTypeParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type DeleteTypeInternalServerError ¶
type DeleteTypeInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
DeleteTypeInternalServerError Internal Server Error
swagger:response deleteTypeInternalServerError
func NewDeleteTypeInternalServerError ¶
func NewDeleteTypeInternalServerError() *DeleteTypeInternalServerError
NewDeleteTypeInternalServerError creates DeleteTypeInternalServerError with default headers values
func (*DeleteTypeInternalServerError) SetPayload ¶
func (o *DeleteTypeInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete type internal server error response
func (*DeleteTypeInternalServerError) WithPayload ¶
func (o *DeleteTypeInternalServerError) WithPayload(payload *models.Error) *DeleteTypeInternalServerError
WithPayload adds the payload to the delete type internal server error response
func (*DeleteTypeInternalServerError) WriteResponse ¶
func (o *DeleteTypeInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteTypeNoContent ¶
type DeleteTypeNoContent struct { }
DeleteTypeNoContent No content
swagger:response deleteTypeNoContent
func NewDeleteTypeNoContent ¶
func NewDeleteTypeNoContent() *DeleteTypeNoContent
NewDeleteTypeNoContent creates DeleteTypeNoContent with default headers values
func (*DeleteTypeNoContent) WriteResponse ¶
func (o *DeleteTypeNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteTypeNotFound ¶
DeleteTypeNotFound Not Found
swagger:response deleteTypeNotFound
func NewDeleteTypeNotFound ¶
func NewDeleteTypeNotFound() *DeleteTypeNotFound
NewDeleteTypeNotFound creates DeleteTypeNotFound with default headers values
func (*DeleteTypeNotFound) SetPayload ¶
func (o *DeleteTypeNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete type not found response
func (*DeleteTypeNotFound) WithPayload ¶
func (o *DeleteTypeNotFound) WithPayload(payload *models.Error) *DeleteTypeNotFound
WithPayload adds the payload to the delete type not found response
func (*DeleteTypeNotFound) WriteResponse ¶
func (o *DeleteTypeNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteTypeParams ¶
type DeleteTypeParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*ID of event category. Required: true In: path */ ID string }
DeleteTypeParams contains all the bound params for the delete type operation typically these are obtained from a http.Request
swagger:parameters deleteType
func NewDeleteTypeParams ¶
func NewDeleteTypeParams() DeleteTypeParams
NewDeleteTypeParams creates a new DeleteTypeParams object
There are no default values defined in the spec.
func (*DeleteTypeParams) BindRequest ¶
func (o *DeleteTypeParams) 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 NewDeleteTypeParams() beforehand.
type DeleteTypeURL ¶
type DeleteTypeURL struct { ID string // contains filtered or unexported fields }
DeleteTypeURL generates an URL for the delete type operation
func (*DeleteTypeURL) Build ¶
func (o *DeleteTypeURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteTypeURL) BuildFull ¶
func (o *DeleteTypeURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteTypeURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteTypeURL) SetBasePath ¶
func (o *DeleteTypeURL) 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 (*DeleteTypeURL) String ¶
func (o *DeleteTypeURL) String() string
String returns the string representation of the path with query string
func (*DeleteTypeURL) StringFull ¶
func (o *DeleteTypeURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteTypeURL) WithBasePath ¶
func (o *DeleteTypeURL) WithBasePath(bp string) *DeleteTypeURL
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 EventType ¶
type EventType struct { Context *middleware.Context Handler EventTypeHandler }
EventType swagger:route GET /events/{id}/types Event eventType
Event type ¶
Retrieve event type.
func NewEventType ¶
func NewEventType(ctx *middleware.Context, handler EventTypeHandler) *EventType
NewEventType creates a new http.Handler for the event type operation
type EventTypeBadRequest ¶
EventTypeBadRequest Bad request
swagger:response eventTypeBadRequest
func NewEventTypeBadRequest ¶
func NewEventTypeBadRequest() *EventTypeBadRequest
NewEventTypeBadRequest creates EventTypeBadRequest with default headers values
func (*EventTypeBadRequest) SetPayload ¶
func (o *EventTypeBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the event type bad request response
func (*EventTypeBadRequest) WithPayload ¶
func (o *EventTypeBadRequest) WithPayload(payload *models.Error) *EventTypeBadRequest
WithPayload adds the payload to the event type bad request response
func (*EventTypeBadRequest) WriteResponse ¶
func (o *EventTypeBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type EventTypeForbidden ¶
EventTypeForbidden Forbidden
swagger:response eventTypeForbidden
func NewEventTypeForbidden ¶
func NewEventTypeForbidden() *EventTypeForbidden
NewEventTypeForbidden creates EventTypeForbidden with default headers values
func (*EventTypeForbidden) SetPayload ¶
func (o *EventTypeForbidden) SetPayload(payload *models.Error)
SetPayload sets the payload to the event type forbidden response
func (*EventTypeForbidden) WithPayload ¶
func (o *EventTypeForbidden) WithPayload(payload *models.Error) *EventTypeForbidden
WithPayload adds the payload to the event type forbidden response
func (*EventTypeForbidden) WriteResponse ¶
func (o *EventTypeForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type EventTypeHandler ¶
type EventTypeHandler interface {
Handle(EventTypeParams, *models.Principal) middleware.Responder
}
EventTypeHandler interface for that can handle valid event type params
type EventTypeHandlerFunc ¶
type EventTypeHandlerFunc func(EventTypeParams, *models.Principal) middleware.Responder
EventTypeHandlerFunc turns a function with the right signature into a event type handler
func (EventTypeHandlerFunc) Handle ¶
func (fn EventTypeHandlerFunc) Handle(params EventTypeParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type EventTypeInternalServerError ¶
type EventTypeInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
EventTypeInternalServerError Internal Server Error
swagger:response eventTypeInternalServerError
func NewEventTypeInternalServerError ¶
func NewEventTypeInternalServerError() *EventTypeInternalServerError
NewEventTypeInternalServerError creates EventTypeInternalServerError with default headers values
func (*EventTypeInternalServerError) SetPayload ¶
func (o *EventTypeInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the event type internal server error response
func (*EventTypeInternalServerError) WithPayload ¶
func (o *EventTypeInternalServerError) WithPayload(payload *models.Error) *EventTypeInternalServerError
WithPayload adds the payload to the event type internal server error response
func (*EventTypeInternalServerError) WriteResponse ¶
func (o *EventTypeInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type EventTypeNotFound ¶
EventTypeNotFound Not Found
swagger:response eventTypeNotFound
func NewEventTypeNotFound ¶
func NewEventTypeNotFound() *EventTypeNotFound
NewEventTypeNotFound creates EventTypeNotFound with default headers values
func (*EventTypeNotFound) SetPayload ¶
func (o *EventTypeNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the event type not found response
func (*EventTypeNotFound) WithPayload ¶
func (o *EventTypeNotFound) WithPayload(payload *models.Error) *EventTypeNotFound
WithPayload adds the payload to the event type not found response
func (*EventTypeNotFound) WriteResponse ¶
func (o *EventTypeNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type EventTypeOK ¶
EventTypeOK OK
swagger:response eventTypeOK
func NewEventTypeOK ¶
func NewEventTypeOK() *EventTypeOK
NewEventTypeOK creates EventTypeOK with default headers values
func (*EventTypeOK) SetPayload ¶
func (o *EventTypeOK) SetPayload(payload *ent.EventType)
SetPayload sets the payload to the event type o k response
func (*EventTypeOK) WithPayload ¶
func (o *EventTypeOK) WithPayload(payload *ent.EventType) *EventTypeOK
WithPayload adds the payload to the event type o k response
func (*EventTypeOK) WriteResponse ¶
func (o *EventTypeOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type EventTypeParams ¶
type EventTypeParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Event ID. Required: true In: path */ ID string }
EventTypeParams contains all the bound params for the event type operation typically these are obtained from a http.Request
swagger:parameters eventType
func NewEventTypeParams ¶
func NewEventTypeParams() EventTypeParams
NewEventTypeParams creates a new EventTypeParams object
There are no default values defined in the spec.
func (*EventTypeParams) BindRequest ¶
func (o *EventTypeParams) 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 NewEventTypeParams() beforehand.
type EventTypeURL ¶
type EventTypeURL struct { ID string // contains filtered or unexported fields }
EventTypeURL generates an URL for the event type operation
func (*EventTypeURL) Build ¶
func (o *EventTypeURL) Build() (*url.URL, error)
Build a url path and query string
func (*EventTypeURL) BuildFull ¶
func (o *EventTypeURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*EventTypeURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*EventTypeURL) SetBasePath ¶
func (o *EventTypeURL) 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 (*EventTypeURL) String ¶
func (o *EventTypeURL) String() string
String returns the string representation of the path with query string
func (*EventTypeURL) StringFull ¶
func (o *EventTypeURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*EventTypeURL) WithBasePath ¶
func (o *EventTypeURL) WithBasePath(bp string) *EventTypeURL
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 EventTypeUnauthorized ¶
EventTypeUnauthorized Unauthorized
swagger:response eventTypeUnauthorized
func NewEventTypeUnauthorized ¶
func NewEventTypeUnauthorized() *EventTypeUnauthorized
NewEventTypeUnauthorized creates EventTypeUnauthorized with default headers values
func (*EventTypeUnauthorized) SetPayload ¶
func (o *EventTypeUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the event type unauthorized response
func (*EventTypeUnauthorized) WithPayload ¶
func (o *EventTypeUnauthorized) WithPayload(payload *models.Error) *EventTypeUnauthorized
WithPayload adds the payload to the event type unauthorized response
func (*EventTypeUnauthorized) WriteResponse ¶
func (o *EventTypeUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetEventType ¶
type GetEventType struct { Context *middleware.Context Handler GetEventTypeHandler }
GetEventType swagger:route GET /events/{id}/types Event getEventType
Get event type ¶
Get event type value.
func NewGetEventType ¶
func NewGetEventType(ctx *middleware.Context, handler GetEventTypeHandler) *GetEventType
NewGetEventType creates a new http.Handler for the get event type operation
func (*GetEventType) ServeHTTP ¶
func (o *GetEventType) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetEventTypeBadRequest ¶
GetEventTypeBadRequest Bad request
swagger:response getEventTypeBadRequest
func NewGetEventTypeBadRequest ¶
func NewGetEventTypeBadRequest() *GetEventTypeBadRequest
NewGetEventTypeBadRequest creates GetEventTypeBadRequest with default headers values
func (*GetEventTypeBadRequest) SetPayload ¶
func (o *GetEventTypeBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the get event type bad request response
func (*GetEventTypeBadRequest) WithPayload ¶
func (o *GetEventTypeBadRequest) WithPayload(payload *models.Error) *GetEventTypeBadRequest
WithPayload adds the payload to the get event type bad request response
func (*GetEventTypeBadRequest) WriteResponse ¶
func (o *GetEventTypeBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetEventTypeForbidden ¶
GetEventTypeForbidden Forbidden
swagger:response getEventTypeForbidden
func NewGetEventTypeForbidden ¶
func NewGetEventTypeForbidden() *GetEventTypeForbidden
NewGetEventTypeForbidden creates GetEventTypeForbidden with default headers values
func (*GetEventTypeForbidden) SetPayload ¶
func (o *GetEventTypeForbidden) SetPayload(payload *models.Error)
SetPayload sets the payload to the get event type forbidden response
func (*GetEventTypeForbidden) WithPayload ¶
func (o *GetEventTypeForbidden) WithPayload(payload *models.Error) *GetEventTypeForbidden
WithPayload adds the payload to the get event type forbidden response
func (*GetEventTypeForbidden) WriteResponse ¶
func (o *GetEventTypeForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetEventTypeHandler ¶
type GetEventTypeHandler interface {
Handle(GetEventTypeParams, *models.Principal) middleware.Responder
}
GetEventTypeHandler interface for that can handle valid get event type params
type GetEventTypeHandlerFunc ¶
type GetEventTypeHandlerFunc func(GetEventTypeParams, *models.Principal) middleware.Responder
GetEventTypeHandlerFunc turns a function with the right signature into a get event type handler
func (GetEventTypeHandlerFunc) Handle ¶
func (fn GetEventTypeHandlerFunc) Handle(params GetEventTypeParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type GetEventTypeInternalServerError ¶
type GetEventTypeInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetEventTypeInternalServerError Internal Server Error
swagger:response getEventTypeInternalServerError
func NewGetEventTypeInternalServerError ¶
func NewGetEventTypeInternalServerError() *GetEventTypeInternalServerError
NewGetEventTypeInternalServerError creates GetEventTypeInternalServerError with default headers values
func (*GetEventTypeInternalServerError) SetPayload ¶
func (o *GetEventTypeInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the get event type internal server error response
func (*GetEventTypeInternalServerError) WithPayload ¶
func (o *GetEventTypeInternalServerError) WithPayload(payload *models.Error) *GetEventTypeInternalServerError
WithPayload adds the payload to the get event type internal server error response
func (*GetEventTypeInternalServerError) WriteResponse ¶
func (o *GetEventTypeInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetEventTypeNotFound ¶
GetEventTypeNotFound Not Found
swagger:response getEventTypeNotFound
func NewGetEventTypeNotFound ¶
func NewGetEventTypeNotFound() *GetEventTypeNotFound
NewGetEventTypeNotFound creates GetEventTypeNotFound with default headers values
func (*GetEventTypeNotFound) SetPayload ¶
func (o *GetEventTypeNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the get event type not found response
func (*GetEventTypeNotFound) WithPayload ¶
func (o *GetEventTypeNotFound) WithPayload(payload *models.Error) *GetEventTypeNotFound
WithPayload adds the payload to the get event type not found response
func (*GetEventTypeNotFound) WriteResponse ¶
func (o *GetEventTypeNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetEventTypeOK ¶
GetEventTypeOK OK
swagger:response getEventTypeOK
func NewGetEventTypeOK ¶
func NewGetEventTypeOK() *GetEventTypeOK
NewGetEventTypeOK creates GetEventTypeOK with default headers values
func (*GetEventTypeOK) SetPayload ¶
func (o *GetEventTypeOK) SetPayload(payload *ent.EventType)
SetPayload sets the payload to the get event type o k response
func (*GetEventTypeOK) WithPayload ¶
func (o *GetEventTypeOK) WithPayload(payload *ent.EventType) *GetEventTypeOK
WithPayload adds the payload to the get event type o k response
func (*GetEventTypeOK) WriteResponse ¶
func (o *GetEventTypeOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetEventTypeParams ¶
type GetEventTypeParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Event ID. Required: true In: path */ ID string }
GetEventTypeParams contains all the bound params for the get event type operation typically these are obtained from a http.Request
swagger:parameters getEventType
func NewGetEventTypeParams ¶
func NewGetEventTypeParams() GetEventTypeParams
NewGetEventTypeParams creates a new GetEventTypeParams object
There are no default values defined in the spec.
func (*GetEventTypeParams) BindRequest ¶
func (o *GetEventTypeParams) 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 NewGetEventTypeParams() beforehand.
type GetEventTypeURL ¶
type GetEventTypeURL struct { ID string // contains filtered or unexported fields }
GetEventTypeURL generates an URL for the get event type operation
func (*GetEventTypeURL) Build ¶
func (o *GetEventTypeURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetEventTypeURL) BuildFull ¶
func (o *GetEventTypeURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetEventTypeURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetEventTypeURL) SetBasePath ¶
func (o *GetEventTypeURL) 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 (*GetEventTypeURL) String ¶
func (o *GetEventTypeURL) String() string
String returns the string representation of the path with query string
func (*GetEventTypeURL) StringFull ¶
func (o *GetEventTypeURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetEventTypeURL) WithBasePath ¶
func (o *GetEventTypeURL) WithBasePath(bp string) *GetEventTypeURL
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 GetEventTypeUnauthorized ¶
GetEventTypeUnauthorized Unauthorized
swagger:response getEventTypeUnauthorized
func NewGetEventTypeUnauthorized ¶
func NewGetEventTypeUnauthorized() *GetEventTypeUnauthorized
NewGetEventTypeUnauthorized creates GetEventTypeUnauthorized with default headers values
func (*GetEventTypeUnauthorized) SetPayload ¶
func (o *GetEventTypeUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the get event type unauthorized response
func (*GetEventTypeUnauthorized) WithPayload ¶
func (o *GetEventTypeUnauthorized) WithPayload(payload *models.Error) *GetEventTypeUnauthorized
WithPayload adds the payload to the get event type unauthorized response
func (*GetEventTypeUnauthorized) WriteResponse ¶
func (o *GetEventTypeUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListEvent ¶
type ListEvent struct { Context *middleware.Context Handler ListEventHandler }
ListEvent swagger:route GET /events Event listEvent
List events ¶
List all events.
func NewListEvent ¶
func NewListEvent(ctx *middleware.Context, handler ListEventHandler) *ListEvent
NewListEvent creates a new http.Handler for the list event operation
type ListEventForbidden ¶
ListEventForbidden Forbidden
swagger:response listEventForbidden
func NewListEventForbidden ¶
func NewListEventForbidden() *ListEventForbidden
NewListEventForbidden creates ListEventForbidden with default headers values
func (*ListEventForbidden) SetPayload ¶
func (o *ListEventForbidden) SetPayload(payload *models.Error)
SetPayload sets the payload to the list event forbidden response
func (*ListEventForbidden) WithPayload ¶
func (o *ListEventForbidden) WithPayload(payload *models.Error) *ListEventForbidden
WithPayload adds the payload to the list event forbidden response
func (*ListEventForbidden) WriteResponse ¶
func (o *ListEventForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListEventHandler ¶
type ListEventHandler interface {
Handle(ListEventParams, *models.Principal) middleware.Responder
}
ListEventHandler interface for that can handle valid list event params
type ListEventHandlerFunc ¶
type ListEventHandlerFunc func(ListEventParams, *models.Principal) middleware.Responder
ListEventHandlerFunc turns a function with the right signature into a list event handler
func (ListEventHandlerFunc) Handle ¶
func (fn ListEventHandlerFunc) Handle(params ListEventParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type ListEventInternalServerError ¶
type ListEventInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
ListEventInternalServerError Internal Server Error
swagger:response listEventInternalServerError
func NewListEventInternalServerError ¶
func NewListEventInternalServerError() *ListEventInternalServerError
NewListEventInternalServerError creates ListEventInternalServerError with default headers values
func (*ListEventInternalServerError) SetPayload ¶
func (o *ListEventInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the list event internal server error response
func (*ListEventInternalServerError) WithPayload ¶
func (o *ListEventInternalServerError) WithPayload(payload *models.Error) *ListEventInternalServerError
WithPayload adds the payload to the list event internal server error response
func (*ListEventInternalServerError) WriteResponse ¶
func (o *ListEventInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListEventOK ¶
ListEventOK OK
swagger:response listEventOK
func NewListEventOK ¶
func NewListEventOK() *ListEventOK
NewListEventOK creates ListEventOK with default headers values
func (*ListEventOK) SetPayload ¶
func (o *ListEventOK) SetPayload(payload []*ent.Event)
SetPayload sets the payload to the list event o k response
func (*ListEventOK) WithPayload ¶
func (o *ListEventOK) WithPayload(payload []*ent.Event) *ListEventOK
WithPayload adds the payload to the list event o k response
func (*ListEventOK) WriteResponse ¶
func (o *ListEventOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListEventParams ¶
type ListEventParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*To end day. In: query */ End *string /*From start day. In: query */ Start *string }
ListEventParams contains all the bound params for the list event operation typically these are obtained from a http.Request
swagger:parameters listEvent
func NewListEventParams ¶
func NewListEventParams() ListEventParams
NewListEventParams creates a new ListEventParams object
There are no default values defined in the spec.
func (*ListEventParams) BindRequest ¶
func (o *ListEventParams) 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 NewListEventParams() beforehand.
type ListEventURL ¶
ListEventURL generates an URL for the list event operation
func (*ListEventURL) Build ¶
func (o *ListEventURL) Build() (*url.URL, error)
Build a url path and query string
func (*ListEventURL) BuildFull ¶
func (o *ListEventURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ListEventURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ListEventURL) SetBasePath ¶
func (o *ListEventURL) 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 (*ListEventURL) String ¶
func (o *ListEventURL) String() string
String returns the string representation of the path with query string
func (*ListEventURL) StringFull ¶
func (o *ListEventURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ListEventURL) WithBasePath ¶
func (o *ListEventURL) WithBasePath(bp string) *ListEventURL
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 ListEventUnauthorized ¶
ListEventUnauthorized Unauthorized
swagger:response listEventUnauthorized
func NewListEventUnauthorized ¶
func NewListEventUnauthorized() *ListEventUnauthorized
NewListEventUnauthorized creates ListEventUnauthorized with default headers values
func (*ListEventUnauthorized) SetPayload ¶
func (o *ListEventUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the list event unauthorized response
func (*ListEventUnauthorized) WithPayload ¶
func (o *ListEventUnauthorized) WithPayload(payload *models.Error) *ListEventUnauthorized
WithPayload adds the payload to the list event unauthorized response
func (*ListEventUnauthorized) WriteResponse ¶
func (o *ListEventUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListEventUsers ¶
type ListEventUsers struct { Context *middleware.Context Handler ListEventUsersHandler }
ListEventUsers swagger:route GET /events/{id}/users Event listEventUsers
List event users ¶
List users subscribed to an event.
func NewListEventUsers ¶
func NewListEventUsers(ctx *middleware.Context, handler ListEventUsersHandler) *ListEventUsers
NewListEventUsers creates a new http.Handler for the list event users operation
func (*ListEventUsers) ServeHTTP ¶
func (o *ListEventUsers) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ListEventUsersBadRequest ¶
type ListEventUsersBadRequest struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
ListEventUsersBadRequest Bad request
swagger:response listEventUsersBadRequest
func NewListEventUsersBadRequest ¶
func NewListEventUsersBadRequest() *ListEventUsersBadRequest
NewListEventUsersBadRequest creates ListEventUsersBadRequest with default headers values
func (*ListEventUsersBadRequest) SetPayload ¶
func (o *ListEventUsersBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the list event users bad request response
func (*ListEventUsersBadRequest) WithPayload ¶
func (o *ListEventUsersBadRequest) WithPayload(payload *models.Error) *ListEventUsersBadRequest
WithPayload adds the payload to the list event users bad request response
func (*ListEventUsersBadRequest) WriteResponse ¶
func (o *ListEventUsersBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListEventUsersForbidden ¶
type ListEventUsersForbidden struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
ListEventUsersForbidden Forbidden
swagger:response listEventUsersForbidden
func NewListEventUsersForbidden ¶
func NewListEventUsersForbidden() *ListEventUsersForbidden
NewListEventUsersForbidden creates ListEventUsersForbidden with default headers values
func (*ListEventUsersForbidden) SetPayload ¶
func (o *ListEventUsersForbidden) SetPayload(payload *models.Error)
SetPayload sets the payload to the list event users forbidden response
func (*ListEventUsersForbidden) WithPayload ¶
func (o *ListEventUsersForbidden) WithPayload(payload *models.Error) *ListEventUsersForbidden
WithPayload adds the payload to the list event users forbidden response
func (*ListEventUsersForbidden) WriteResponse ¶
func (o *ListEventUsersForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListEventUsersHandler ¶
type ListEventUsersHandler interface {
Handle(ListEventUsersParams, *models.Principal) middleware.Responder
}
ListEventUsersHandler interface for that can handle valid list event users params
type ListEventUsersHandlerFunc ¶
type ListEventUsersHandlerFunc func(ListEventUsersParams, *models.Principal) middleware.Responder
ListEventUsersHandlerFunc turns a function with the right signature into a list event users handler
func (ListEventUsersHandlerFunc) Handle ¶
func (fn ListEventUsersHandlerFunc) Handle(params ListEventUsersParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type ListEventUsersInternalServerError ¶
type ListEventUsersInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
ListEventUsersInternalServerError Internal Server Error
swagger:response listEventUsersInternalServerError
func NewListEventUsersInternalServerError ¶
func NewListEventUsersInternalServerError() *ListEventUsersInternalServerError
NewListEventUsersInternalServerError creates ListEventUsersInternalServerError with default headers values
func (*ListEventUsersInternalServerError) SetPayload ¶
func (o *ListEventUsersInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the list event users internal server error response
func (*ListEventUsersInternalServerError) WithPayload ¶
func (o *ListEventUsersInternalServerError) WithPayload(payload *models.Error) *ListEventUsersInternalServerError
WithPayload adds the payload to the list event users internal server error response
func (*ListEventUsersInternalServerError) WriteResponse ¶
func (o *ListEventUsersInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListEventUsersNotFound ¶
ListEventUsersNotFound Not Found
swagger:response listEventUsersNotFound
func NewListEventUsersNotFound ¶
func NewListEventUsersNotFound() *ListEventUsersNotFound
NewListEventUsersNotFound creates ListEventUsersNotFound with default headers values
func (*ListEventUsersNotFound) SetPayload ¶
func (o *ListEventUsersNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the list event users not found response
func (*ListEventUsersNotFound) WithPayload ¶
func (o *ListEventUsersNotFound) WithPayload(payload *models.Error) *ListEventUsersNotFound
WithPayload adds the payload to the list event users not found response
func (*ListEventUsersNotFound) WriteResponse ¶
func (o *ListEventUsersNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListEventUsersOK ¶
ListEventUsersOK OK
swagger:response listEventUsersOK
func NewListEventUsersOK ¶
func NewListEventUsersOK() *ListEventUsersOK
NewListEventUsersOK creates ListEventUsersOK with default headers values
func (*ListEventUsersOK) SetPayload ¶
func (o *ListEventUsersOK) SetPayload(payload []*ent.User)
SetPayload sets the payload to the list event users o k response
func (*ListEventUsersOK) WithPayload ¶
func (o *ListEventUsersOK) WithPayload(payload []*ent.User) *ListEventUsersOK
WithPayload adds the payload to the list event users o k response
func (*ListEventUsersOK) WriteResponse ¶
func (o *ListEventUsersOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListEventUsersParams ¶
type ListEventUsersParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Event ID. Required: true In: path */ ID string }
ListEventUsersParams contains all the bound params for the list event users operation typically these are obtained from a http.Request
swagger:parameters listEventUsers
func NewListEventUsersParams ¶
func NewListEventUsersParams() ListEventUsersParams
NewListEventUsersParams creates a new ListEventUsersParams object
There are no default values defined in the spec.
func (*ListEventUsersParams) BindRequest ¶
func (o *ListEventUsersParams) 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 NewListEventUsersParams() beforehand.
type ListEventUsersURL ¶
type ListEventUsersURL struct { ID string // contains filtered or unexported fields }
ListEventUsersURL generates an URL for the list event users operation
func (*ListEventUsersURL) Build ¶
func (o *ListEventUsersURL) Build() (*url.URL, error)
Build a url path and query string
func (*ListEventUsersURL) BuildFull ¶
func (o *ListEventUsersURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ListEventUsersURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ListEventUsersURL) SetBasePath ¶
func (o *ListEventUsersURL) 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 (*ListEventUsersURL) String ¶
func (o *ListEventUsersURL) String() string
String returns the string representation of the path with query string
func (*ListEventUsersURL) StringFull ¶
func (o *ListEventUsersURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ListEventUsersURL) WithBasePath ¶
func (o *ListEventUsersURL) WithBasePath(bp string) *ListEventUsersURL
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 ListEventUsersUnauthorized ¶
ListEventUsersUnauthorized Unauthorized
swagger:response listEventUsersUnauthorized
func NewListEventUsersUnauthorized ¶
func NewListEventUsersUnauthorized() *ListEventUsersUnauthorized
NewListEventUsersUnauthorized creates ListEventUsersUnauthorized with default headers values
func (*ListEventUsersUnauthorized) SetPayload ¶
func (o *ListEventUsersUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the list event users unauthorized response
func (*ListEventUsersUnauthorized) WithPayload ¶
func (o *ListEventUsersUnauthorized) WithPayload(payload *models.Error) *ListEventUsersUnauthorized
WithPayload adds the payload to the list event users unauthorized response
func (*ListEventUsersUnauthorized) WriteResponse ¶
func (o *ListEventUsersUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListEventWithUsers ¶
type ListEventWithUsers struct { Context *middleware.Context Handler ListEventWithUsersHandler }
ListEventWithUsers swagger:route GET /events/users Event listEventWithUsers
List events with users.
List all events with all subscribed users.
func NewListEventWithUsers ¶
func NewListEventWithUsers(ctx *middleware.Context, handler ListEventWithUsersHandler) *ListEventWithUsers
NewListEventWithUsers creates a new http.Handler for the list event with users operation
func (*ListEventWithUsers) ServeHTTP ¶
func (o *ListEventWithUsers) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ListEventWithUsersForbidden ¶
type ListEventWithUsersForbidden struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
ListEventWithUsersForbidden Forbidden
swagger:response listEventWithUsersForbidden
func NewListEventWithUsersForbidden ¶
func NewListEventWithUsersForbidden() *ListEventWithUsersForbidden
NewListEventWithUsersForbidden creates ListEventWithUsersForbidden with default headers values
func (*ListEventWithUsersForbidden) SetPayload ¶
func (o *ListEventWithUsersForbidden) SetPayload(payload *models.Error)
SetPayload sets the payload to the list event with users forbidden response
func (*ListEventWithUsersForbidden) WithPayload ¶
func (o *ListEventWithUsersForbidden) WithPayload(payload *models.Error) *ListEventWithUsersForbidden
WithPayload adds the payload to the list event with users forbidden response
func (*ListEventWithUsersForbidden) WriteResponse ¶
func (o *ListEventWithUsersForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListEventWithUsersHandler ¶
type ListEventWithUsersHandler interface {
Handle(ListEventWithUsersParams, *models.Principal) middleware.Responder
}
ListEventWithUsersHandler interface for that can handle valid list event with users params
type ListEventWithUsersHandlerFunc ¶
type ListEventWithUsersHandlerFunc func(ListEventWithUsersParams, *models.Principal) middleware.Responder
ListEventWithUsersHandlerFunc turns a function with the right signature into a list event with users handler
func (ListEventWithUsersHandlerFunc) Handle ¶
func (fn ListEventWithUsersHandlerFunc) Handle(params ListEventWithUsersParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type ListEventWithUsersInternalServerError ¶
type ListEventWithUsersInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
ListEventWithUsersInternalServerError Internal Server Error
swagger:response listEventWithUsersInternalServerError
func NewListEventWithUsersInternalServerError ¶
func NewListEventWithUsersInternalServerError() *ListEventWithUsersInternalServerError
NewListEventWithUsersInternalServerError creates ListEventWithUsersInternalServerError with default headers values
func (*ListEventWithUsersInternalServerError) SetPayload ¶
func (o *ListEventWithUsersInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the list event with users internal server error response
func (*ListEventWithUsersInternalServerError) WithPayload ¶
func (o *ListEventWithUsersInternalServerError) WithPayload(payload *models.Error) *ListEventWithUsersInternalServerError
WithPayload adds the payload to the list event with users internal server error response
func (*ListEventWithUsersInternalServerError) WriteResponse ¶
func (o *ListEventWithUsersInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListEventWithUsersOK ¶
ListEventWithUsersOK OK
swagger:response listEventWithUsersOK
func NewListEventWithUsersOK ¶
func NewListEventWithUsersOK() *ListEventWithUsersOK
NewListEventWithUsersOK creates ListEventWithUsersOK with default headers values
func (*ListEventWithUsersOK) SetPayload ¶
func (o *ListEventWithUsersOK) SetPayload(payload []*ent.Event)
SetPayload sets the payload to the list event with users o k response
func (*ListEventWithUsersOK) WithPayload ¶
func (o *ListEventWithUsersOK) WithPayload(payload []*ent.Event) *ListEventWithUsersOK
WithPayload adds the payload to the list event with users o k response
func (*ListEventWithUsersOK) WriteResponse ¶
func (o *ListEventWithUsersOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListEventWithUsersParams ¶
type ListEventWithUsersParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*To end day. In: query */ End *string /*From start day. In: query */ Start *string }
ListEventWithUsersParams contains all the bound params for the list event with users operation typically these are obtained from a http.Request
swagger:parameters listEventWithUsers
func NewListEventWithUsersParams ¶
func NewListEventWithUsersParams() ListEventWithUsersParams
NewListEventWithUsersParams creates a new ListEventWithUsersParams object
There are no default values defined in the spec.
func (*ListEventWithUsersParams) BindRequest ¶
func (o *ListEventWithUsersParams) 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 NewListEventWithUsersParams() beforehand.
type ListEventWithUsersURL ¶
type ListEventWithUsersURL struct { End *string Start *string // contains filtered or unexported fields }
ListEventWithUsersURL generates an URL for the list event with users operation
func (*ListEventWithUsersURL) Build ¶
func (o *ListEventWithUsersURL) Build() (*url.URL, error)
Build a url path and query string
func (*ListEventWithUsersURL) BuildFull ¶
func (o *ListEventWithUsersURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ListEventWithUsersURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ListEventWithUsersURL) SetBasePath ¶
func (o *ListEventWithUsersURL) 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 (*ListEventWithUsersURL) String ¶
func (o *ListEventWithUsersURL) String() string
String returns the string representation of the path with query string
func (*ListEventWithUsersURL) StringFull ¶
func (o *ListEventWithUsersURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ListEventWithUsersURL) WithBasePath ¶
func (o *ListEventWithUsersURL) WithBasePath(bp string) *ListEventWithUsersURL
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 ListEventWithUsersUnauthorized ¶
ListEventWithUsersUnauthorized Unauthorized
swagger:response listEventWithUsersUnauthorized
func NewListEventWithUsersUnauthorized ¶
func NewListEventWithUsersUnauthorized() *ListEventWithUsersUnauthorized
NewListEventWithUsersUnauthorized creates ListEventWithUsersUnauthorized with default headers values
func (*ListEventWithUsersUnauthorized) SetPayload ¶
func (o *ListEventWithUsersUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the list event with users unauthorized response
func (*ListEventWithUsersUnauthorized) WithPayload ¶
func (o *ListEventWithUsersUnauthorized) WithPayload(payload *models.Error) *ListEventWithUsersUnauthorized
WithPayload adds the payload to the list event with users unauthorized response
func (*ListEventWithUsersUnauthorized) WriteResponse ¶
func (o *ListEventWithUsersUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListType ¶
type ListType struct { Context *middleware.Context Handler ListTypeHandler }
ListType swagger:route GET /events/types Event listType
List event types ¶
List all event categories.
func NewListType ¶
func NewListType(ctx *middleware.Context, handler ListTypeHandler) *ListType
NewListType creates a new http.Handler for the list type operation
type ListTypeHandler ¶
type ListTypeHandler interface {
Handle(ListTypeParams, *models.Principal) middleware.Responder
}
ListTypeHandler interface for that can handle valid list type params
type ListTypeHandlerFunc ¶
type ListTypeHandlerFunc func(ListTypeParams, *models.Principal) middleware.Responder
ListTypeHandlerFunc turns a function with the right signature into a list type handler
func (ListTypeHandlerFunc) Handle ¶
func (fn ListTypeHandlerFunc) Handle(params ListTypeParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type ListTypeInternalServerError ¶
type ListTypeInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
ListTypeInternalServerError Internal Server Error
swagger:response listTypeInternalServerError
func NewListTypeInternalServerError ¶
func NewListTypeInternalServerError() *ListTypeInternalServerError
NewListTypeInternalServerError creates ListTypeInternalServerError with default headers values
func (*ListTypeInternalServerError) SetPayload ¶
func (o *ListTypeInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the list type internal server error response
func (*ListTypeInternalServerError) WithPayload ¶
func (o *ListTypeInternalServerError) WithPayload(payload *models.Error) *ListTypeInternalServerError
WithPayload adds the payload to the list type internal server error response
func (*ListTypeInternalServerError) WriteResponse ¶
func (o *ListTypeInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListTypeOK ¶
ListTypeOK OK
swagger:response listTypeOK
func NewListTypeOK ¶
func NewListTypeOK() *ListTypeOK
NewListTypeOK creates ListTypeOK with default headers values
func (*ListTypeOK) SetPayload ¶
func (o *ListTypeOK) SetPayload(payload []*ent.EventType)
SetPayload sets the payload to the list type o k response
func (*ListTypeOK) WithPayload ¶
func (o *ListTypeOK) WithPayload(payload []*ent.EventType) *ListTypeOK
WithPayload adds the payload to the list type o k response
func (*ListTypeOK) WriteResponse ¶
func (o *ListTypeOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListTypeParams ¶
ListTypeParams contains all the bound params for the list type operation typically these are obtained from a http.Request
swagger:parameters listType
func NewListTypeParams ¶
func NewListTypeParams() ListTypeParams
NewListTypeParams creates a new ListTypeParams object
There are no default values defined in the spec.
func (*ListTypeParams) BindRequest ¶
func (o *ListTypeParams) 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 NewListTypeParams() beforehand.
type ListTypeURL ¶
type ListTypeURL struct {
// contains filtered or unexported fields
}
ListTypeURL generates an URL for the list type operation
func (*ListTypeURL) Build ¶
func (o *ListTypeURL) Build() (*url.URL, error)
Build a url path and query string
func (*ListTypeURL) BuildFull ¶
func (o *ListTypeURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ListTypeURL) SetBasePath ¶
func (o *ListTypeURL) 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 (*ListTypeURL) String ¶
func (o *ListTypeURL) String() string
String returns the string representation of the path with query string
func (*ListTypeURL) StringFull ¶
func (o *ListTypeURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ListTypeURL) WithBasePath ¶
func (o *ListTypeURL) WithBasePath(bp string) *ListTypeURL
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 ReadEvent ¶
type ReadEvent struct { Context *middleware.Context Handler ReadEventHandler }
ReadEvent swagger:route GET /events/{id} Event readEvent
Read event ¶
Read an event by ID.
func NewReadEvent ¶
func NewReadEvent(ctx *middleware.Context, handler ReadEventHandler) *ReadEvent
NewReadEvent creates a new http.Handler for the read event operation
type ReadEventBadRequest ¶
ReadEventBadRequest Bad request
swagger:response readEventBadRequest
func NewReadEventBadRequest ¶
func NewReadEventBadRequest() *ReadEventBadRequest
NewReadEventBadRequest creates ReadEventBadRequest with default headers values
func (*ReadEventBadRequest) SetPayload ¶
func (o *ReadEventBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the read event bad request response
func (*ReadEventBadRequest) WithPayload ¶
func (o *ReadEventBadRequest) WithPayload(payload *models.Error) *ReadEventBadRequest
WithPayload adds the payload to the read event bad request response
func (*ReadEventBadRequest) WriteResponse ¶
func (o *ReadEventBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReadEventForbidden ¶
ReadEventForbidden Forbidden
swagger:response readEventForbidden
func NewReadEventForbidden ¶
func NewReadEventForbidden() *ReadEventForbidden
NewReadEventForbidden creates ReadEventForbidden with default headers values
func (*ReadEventForbidden) SetPayload ¶
func (o *ReadEventForbidden) SetPayload(payload *models.Error)
SetPayload sets the payload to the read event forbidden response
func (*ReadEventForbidden) WithPayload ¶
func (o *ReadEventForbidden) WithPayload(payload *models.Error) *ReadEventForbidden
WithPayload adds the payload to the read event forbidden response
func (*ReadEventForbidden) WriteResponse ¶
func (o *ReadEventForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReadEventHandler ¶
type ReadEventHandler interface {
Handle(ReadEventParams, *models.Principal) middleware.Responder
}
ReadEventHandler interface for that can handle valid read event params
type ReadEventHandlerFunc ¶
type ReadEventHandlerFunc func(ReadEventParams, *models.Principal) middleware.Responder
ReadEventHandlerFunc turns a function with the right signature into a read event handler
func (ReadEventHandlerFunc) Handle ¶
func (fn ReadEventHandlerFunc) Handle(params ReadEventParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type ReadEventInternalServerError ¶
type ReadEventInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
ReadEventInternalServerError Internal Server Error
swagger:response readEventInternalServerError
func NewReadEventInternalServerError ¶
func NewReadEventInternalServerError() *ReadEventInternalServerError
NewReadEventInternalServerError creates ReadEventInternalServerError with default headers values
func (*ReadEventInternalServerError) SetPayload ¶
func (o *ReadEventInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the read event internal server error response
func (*ReadEventInternalServerError) WithPayload ¶
func (o *ReadEventInternalServerError) WithPayload(payload *models.Error) *ReadEventInternalServerError
WithPayload adds the payload to the read event internal server error response
func (*ReadEventInternalServerError) WriteResponse ¶
func (o *ReadEventInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReadEventNotFound ¶
ReadEventNotFound Not Found
swagger:response readEventNotFound
func NewReadEventNotFound ¶
func NewReadEventNotFound() *ReadEventNotFound
NewReadEventNotFound creates ReadEventNotFound with default headers values
func (*ReadEventNotFound) SetPayload ¶
func (o *ReadEventNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the read event not found response
func (*ReadEventNotFound) WithPayload ¶
func (o *ReadEventNotFound) WithPayload(payload *models.Error) *ReadEventNotFound
WithPayload adds the payload to the read event not found response
func (*ReadEventNotFound) WriteResponse ¶
func (o *ReadEventNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReadEventOK ¶
ReadEventOK OK
swagger:response readEventOK
func NewReadEventOK ¶
func NewReadEventOK() *ReadEventOK
NewReadEventOK creates ReadEventOK with default headers values
func (*ReadEventOK) SetPayload ¶
func (o *ReadEventOK) SetPayload(payload *ent.Event)
SetPayload sets the payload to the read event o k response
func (*ReadEventOK) WithPayload ¶
func (o *ReadEventOK) WithPayload(payload *ent.Event) *ReadEventOK
WithPayload adds the payload to the read event o k response
func (*ReadEventOK) WriteResponse ¶
func (o *ReadEventOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReadEventParams ¶
type ReadEventParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Event ID. Required: true In: path */ ID string }
ReadEventParams contains all the bound params for the read event operation typically these are obtained from a http.Request
swagger:parameters readEvent
func NewReadEventParams ¶
func NewReadEventParams() ReadEventParams
NewReadEventParams creates a new ReadEventParams object
There are no default values defined in the spec.
func (*ReadEventParams) BindRequest ¶
func (o *ReadEventParams) 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 NewReadEventParams() beforehand.
type ReadEventURL ¶
type ReadEventURL struct { ID string // contains filtered or unexported fields }
ReadEventURL generates an URL for the read event operation
func (*ReadEventURL) Build ¶
func (o *ReadEventURL) Build() (*url.URL, error)
Build a url path and query string
func (*ReadEventURL) BuildFull ¶
func (o *ReadEventURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ReadEventURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ReadEventURL) SetBasePath ¶
func (o *ReadEventURL) 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 (*ReadEventURL) String ¶
func (o *ReadEventURL) String() string
String returns the string representation of the path with query string
func (*ReadEventURL) StringFull ¶
func (o *ReadEventURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ReadEventURL) WithBasePath ¶
func (o *ReadEventURL) WithBasePath(bp string) *ReadEventURL
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 ReadEventUnauthorized ¶
ReadEventUnauthorized Unauthorized
swagger:response readEventUnauthorized
func NewReadEventUnauthorized ¶
func NewReadEventUnauthorized() *ReadEventUnauthorized
NewReadEventUnauthorized creates ReadEventUnauthorized with default headers values
func (*ReadEventUnauthorized) SetPayload ¶
func (o *ReadEventUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the read event unauthorized response
func (*ReadEventUnauthorized) WithPayload ¶
func (o *ReadEventUnauthorized) WithPayload(payload *models.Error) *ReadEventUnauthorized
WithPayload adds the payload to the read event unauthorized response
func (*ReadEventUnauthorized) WriteResponse ¶
func (o *ReadEventUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReadType ¶
type ReadType struct { Context *middleware.Context Handler ReadTypeHandler }
ReadType swagger:route GET /events/types/{id} Event readType
Read event type ¶
Read an event category.
func NewReadType ¶
func NewReadType(ctx *middleware.Context, handler ReadTypeHandler) *ReadType
NewReadType creates a new http.Handler for the read type operation
type ReadTypeBadRequest ¶
ReadTypeBadRequest Bad request
swagger:response readTypeBadRequest
func NewReadTypeBadRequest ¶
func NewReadTypeBadRequest() *ReadTypeBadRequest
NewReadTypeBadRequest creates ReadTypeBadRequest with default headers values
func (*ReadTypeBadRequest) SetPayload ¶
func (o *ReadTypeBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the read type bad request response
func (*ReadTypeBadRequest) WithPayload ¶
func (o *ReadTypeBadRequest) WithPayload(payload *models.Error) *ReadTypeBadRequest
WithPayload adds the payload to the read type bad request response
func (*ReadTypeBadRequest) WriteResponse ¶
func (o *ReadTypeBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReadTypeHandler ¶
type ReadTypeHandler interface {
Handle(ReadTypeParams, *models.Principal) middleware.Responder
}
ReadTypeHandler interface for that can handle valid read type params
type ReadTypeHandlerFunc ¶
type ReadTypeHandlerFunc func(ReadTypeParams, *models.Principal) middleware.Responder
ReadTypeHandlerFunc turns a function with the right signature into a read type handler
func (ReadTypeHandlerFunc) Handle ¶
func (fn ReadTypeHandlerFunc) Handle(params ReadTypeParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type ReadTypeInternalServerError ¶
type ReadTypeInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
ReadTypeInternalServerError Internal Server Error
swagger:response readTypeInternalServerError
func NewReadTypeInternalServerError ¶
func NewReadTypeInternalServerError() *ReadTypeInternalServerError
NewReadTypeInternalServerError creates ReadTypeInternalServerError with default headers values
func (*ReadTypeInternalServerError) SetPayload ¶
func (o *ReadTypeInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the read type internal server error response
func (*ReadTypeInternalServerError) WithPayload ¶
func (o *ReadTypeInternalServerError) WithPayload(payload *models.Error) *ReadTypeInternalServerError
WithPayload adds the payload to the read type internal server error response
func (*ReadTypeInternalServerError) WriteResponse ¶
func (o *ReadTypeInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReadTypeNotFound ¶
ReadTypeNotFound Not Found
swagger:response readTypeNotFound
func NewReadTypeNotFound ¶
func NewReadTypeNotFound() *ReadTypeNotFound
NewReadTypeNotFound creates ReadTypeNotFound with default headers values
func (*ReadTypeNotFound) SetPayload ¶
func (o *ReadTypeNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the read type not found response
func (*ReadTypeNotFound) WithPayload ¶
func (o *ReadTypeNotFound) WithPayload(payload *models.Error) *ReadTypeNotFound
WithPayload adds the payload to the read type not found response
func (*ReadTypeNotFound) WriteResponse ¶
func (o *ReadTypeNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReadTypeOK ¶
ReadTypeOK OK
swagger:response readTypeOK
func NewReadTypeOK ¶
func NewReadTypeOK() *ReadTypeOK
NewReadTypeOK creates ReadTypeOK with default headers values
func (*ReadTypeOK) SetPayload ¶
func (o *ReadTypeOK) SetPayload(payload *ent.EventType)
SetPayload sets the payload to the read type o k response
func (*ReadTypeOK) WithPayload ¶
func (o *ReadTypeOK) WithPayload(payload *ent.EventType) *ReadTypeOK
WithPayload adds the payload to the read type o k response
func (*ReadTypeOK) WriteResponse ¶
func (o *ReadTypeOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReadTypeParams ¶
type ReadTypeParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*ID of event category. Required: true In: path */ ID string }
ReadTypeParams contains all the bound params for the read type operation typically these are obtained from a http.Request
swagger:parameters readType
func NewReadTypeParams ¶
func NewReadTypeParams() ReadTypeParams
NewReadTypeParams creates a new ReadTypeParams object
There are no default values defined in the spec.
func (*ReadTypeParams) BindRequest ¶
func (o *ReadTypeParams) 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 NewReadTypeParams() beforehand.
type ReadTypeURL ¶
type ReadTypeURL struct { ID string // contains filtered or unexported fields }
ReadTypeURL generates an URL for the read type operation
func (*ReadTypeURL) Build ¶
func (o *ReadTypeURL) Build() (*url.URL, error)
Build a url path and query string
func (*ReadTypeURL) BuildFull ¶
func (o *ReadTypeURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ReadTypeURL) SetBasePath ¶
func (o *ReadTypeURL) 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 (*ReadTypeURL) String ¶
func (o *ReadTypeURL) String() string
String returns the string representation of the path with query string
func (*ReadTypeURL) StringFull ¶
func (o *ReadTypeURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ReadTypeURL) WithBasePath ¶
func (o *ReadTypeURL) WithBasePath(bp string) *ReadTypeURL
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 SetEventType ¶
type SetEventType struct { Context *middleware.Context Handler SetEventTypeHandler }
SetEventType swagger:route PATCH /events/{eventID}/types/{typeID} Event setEventType
Set event type ¶
Set event type value.
func NewSetEventType ¶
func NewSetEventType(ctx *middleware.Context, handler SetEventTypeHandler) *SetEventType
NewSetEventType creates a new http.Handler for the set event type operation
func (*SetEventType) ServeHTTP ¶
func (o *SetEventType) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type SetEventTypeBadRequest ¶
SetEventTypeBadRequest Bad request
swagger:response setEventTypeBadRequest
func NewSetEventTypeBadRequest ¶
func NewSetEventTypeBadRequest() *SetEventTypeBadRequest
NewSetEventTypeBadRequest creates SetEventTypeBadRequest with default headers values
func (*SetEventTypeBadRequest) SetPayload ¶
func (o *SetEventTypeBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the set event type bad request response
func (*SetEventTypeBadRequest) WithPayload ¶
func (o *SetEventTypeBadRequest) WithPayload(payload *models.Error) *SetEventTypeBadRequest
WithPayload adds the payload to the set event type bad request response
func (*SetEventTypeBadRequest) WriteResponse ¶
func (o *SetEventTypeBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SetEventTypeForbidden ¶
SetEventTypeForbidden Forbidden
swagger:response setEventTypeForbidden
func NewSetEventTypeForbidden ¶
func NewSetEventTypeForbidden() *SetEventTypeForbidden
NewSetEventTypeForbidden creates SetEventTypeForbidden with default headers values
func (*SetEventTypeForbidden) SetPayload ¶
func (o *SetEventTypeForbidden) SetPayload(payload *models.Error)
SetPayload sets the payload to the set event type forbidden response
func (*SetEventTypeForbidden) WithPayload ¶
func (o *SetEventTypeForbidden) WithPayload(payload *models.Error) *SetEventTypeForbidden
WithPayload adds the payload to the set event type forbidden response
func (*SetEventTypeForbidden) WriteResponse ¶
func (o *SetEventTypeForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SetEventTypeHandler ¶
type SetEventTypeHandler interface {
Handle(SetEventTypeParams, *models.Principal) middleware.Responder
}
SetEventTypeHandler interface for that can handle valid set event type params
type SetEventTypeHandlerFunc ¶
type SetEventTypeHandlerFunc func(SetEventTypeParams, *models.Principal) middleware.Responder
SetEventTypeHandlerFunc turns a function with the right signature into a set event type handler
func (SetEventTypeHandlerFunc) Handle ¶
func (fn SetEventTypeHandlerFunc) Handle(params SetEventTypeParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type SetEventTypeInternalServerError ¶
type SetEventTypeInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
SetEventTypeInternalServerError Internal Server Error
swagger:response setEventTypeInternalServerError
func NewSetEventTypeInternalServerError ¶
func NewSetEventTypeInternalServerError() *SetEventTypeInternalServerError
NewSetEventTypeInternalServerError creates SetEventTypeInternalServerError with default headers values
func (*SetEventTypeInternalServerError) SetPayload ¶
func (o *SetEventTypeInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the set event type internal server error response
func (*SetEventTypeInternalServerError) WithPayload ¶
func (o *SetEventTypeInternalServerError) WithPayload(payload *models.Error) *SetEventTypeInternalServerError
WithPayload adds the payload to the set event type internal server error response
func (*SetEventTypeInternalServerError) WriteResponse ¶
func (o *SetEventTypeInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SetEventTypeNotFound ¶
SetEventTypeNotFound Not Found
swagger:response setEventTypeNotFound
func NewSetEventTypeNotFound ¶
func NewSetEventTypeNotFound() *SetEventTypeNotFound
NewSetEventTypeNotFound creates SetEventTypeNotFound with default headers values
func (*SetEventTypeNotFound) SetPayload ¶
func (o *SetEventTypeNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the set event type not found response
func (*SetEventTypeNotFound) WithPayload ¶
func (o *SetEventTypeNotFound) WithPayload(payload *models.Error) *SetEventTypeNotFound
WithPayload adds the payload to the set event type not found response
func (*SetEventTypeNotFound) WriteResponse ¶
func (o *SetEventTypeNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SetEventTypeOK ¶
SetEventTypeOK OK
swagger:response setEventTypeOK
func NewSetEventTypeOK ¶
func NewSetEventTypeOK() *SetEventTypeOK
NewSetEventTypeOK creates SetEventTypeOK with default headers values
func (*SetEventTypeOK) SetPayload ¶
func (o *SetEventTypeOK) SetPayload(payload *ent.Event)
SetPayload sets the payload to the set event type o k response
func (*SetEventTypeOK) WithPayload ¶
func (o *SetEventTypeOK) WithPayload(payload *ent.Event) *SetEventTypeOK
WithPayload adds the payload to the set event type o k response
func (*SetEventTypeOK) WriteResponse ¶
func (o *SetEventTypeOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SetEventTypeParams ¶
type SetEventTypeParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Event ID. Required: true In: path */ EventID string /*Category ID. Required: true In: path */ TypeID string }
SetEventTypeParams contains all the bound params for the set event type operation typically these are obtained from a http.Request
swagger:parameters setEventType
func NewSetEventTypeParams ¶
func NewSetEventTypeParams() SetEventTypeParams
NewSetEventTypeParams creates a new SetEventTypeParams object
There are no default values defined in the spec.
func (*SetEventTypeParams) BindRequest ¶
func (o *SetEventTypeParams) 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 NewSetEventTypeParams() beforehand.
type SetEventTypeURL ¶
type SetEventTypeURL struct { EventID string TypeID string // contains filtered or unexported fields }
SetEventTypeURL generates an URL for the set event type operation
func (*SetEventTypeURL) Build ¶
func (o *SetEventTypeURL) Build() (*url.URL, error)
Build a url path and query string
func (*SetEventTypeURL) BuildFull ¶
func (o *SetEventTypeURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*SetEventTypeURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*SetEventTypeURL) SetBasePath ¶
func (o *SetEventTypeURL) 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 (*SetEventTypeURL) String ¶
func (o *SetEventTypeURL) String() string
String returns the string representation of the path with query string
func (*SetEventTypeURL) StringFull ¶
func (o *SetEventTypeURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*SetEventTypeURL) WithBasePath ¶
func (o *SetEventTypeURL) WithBasePath(bp string) *SetEventTypeURL
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 SetEventTypeUnauthorized ¶
SetEventTypeUnauthorized Unauthorized
swagger:response setEventTypeUnauthorized
func NewSetEventTypeUnauthorized ¶
func NewSetEventTypeUnauthorized() *SetEventTypeUnauthorized
NewSetEventTypeUnauthorized creates SetEventTypeUnauthorized with default headers values
func (*SetEventTypeUnauthorized) SetPayload ¶
func (o *SetEventTypeUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the set event type unauthorized response
func (*SetEventTypeUnauthorized) WithPayload ¶
func (o *SetEventTypeUnauthorized) WithPayload(payload *models.Error) *SetEventTypeUnauthorized
WithPayload adds the payload to the set event type unauthorized response
func (*SetEventTypeUnauthorized) WriteResponse ¶
func (o *SetEventTypeUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateEvent ¶
type UpdateEvent struct { Context *middleware.Context Handler UpdateEventHandler }
UpdateEvent swagger:route PATCH /events/{id} Event updateEvent
Update event ¶
Update an event by ID.
func NewUpdateEvent ¶
func NewUpdateEvent(ctx *middleware.Context, handler UpdateEventHandler) *UpdateEvent
NewUpdateEvent creates a new http.Handler for the update event operation
func (*UpdateEvent) ServeHTTP ¶
func (o *UpdateEvent) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateEventBadRequest ¶
UpdateEventBadRequest Bad request
swagger:response updateEventBadRequest
func NewUpdateEventBadRequest ¶
func NewUpdateEventBadRequest() *UpdateEventBadRequest
NewUpdateEventBadRequest creates UpdateEventBadRequest with default headers values
func (*UpdateEventBadRequest) SetPayload ¶
func (o *UpdateEventBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the update event bad request response
func (*UpdateEventBadRequest) WithPayload ¶
func (o *UpdateEventBadRequest) WithPayload(payload *models.Error) *UpdateEventBadRequest
WithPayload adds the payload to the update event bad request response
func (*UpdateEventBadRequest) WriteResponse ¶
func (o *UpdateEventBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateEventForbidden ¶
UpdateEventForbidden Forbidden
swagger:response updateEventForbidden
func NewUpdateEventForbidden ¶
func NewUpdateEventForbidden() *UpdateEventForbidden
NewUpdateEventForbidden creates UpdateEventForbidden with default headers values
func (*UpdateEventForbidden) SetPayload ¶
func (o *UpdateEventForbidden) SetPayload(payload *models.Error)
SetPayload sets the payload to the update event forbidden response
func (*UpdateEventForbidden) WithPayload ¶
func (o *UpdateEventForbidden) WithPayload(payload *models.Error) *UpdateEventForbidden
WithPayload adds the payload to the update event forbidden response
func (*UpdateEventForbidden) WriteResponse ¶
func (o *UpdateEventForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateEventHandler ¶
type UpdateEventHandler interface {
Handle(UpdateEventParams, *models.Principal) middleware.Responder
}
UpdateEventHandler interface for that can handle valid update event params
type UpdateEventHandlerFunc ¶
type UpdateEventHandlerFunc func(UpdateEventParams, *models.Principal) middleware.Responder
UpdateEventHandlerFunc turns a function with the right signature into a update event handler
func (UpdateEventHandlerFunc) Handle ¶
func (fn UpdateEventHandlerFunc) Handle(params UpdateEventParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type UpdateEventInternalServerError ¶
type UpdateEventInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
UpdateEventInternalServerError Internal Server Error
swagger:response updateEventInternalServerError
func NewUpdateEventInternalServerError ¶
func NewUpdateEventInternalServerError() *UpdateEventInternalServerError
NewUpdateEventInternalServerError creates UpdateEventInternalServerError with default headers values
func (*UpdateEventInternalServerError) SetPayload ¶
func (o *UpdateEventInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the update event internal server error response
func (*UpdateEventInternalServerError) WithPayload ¶
func (o *UpdateEventInternalServerError) WithPayload(payload *models.Error) *UpdateEventInternalServerError
WithPayload adds the payload to the update event internal server error response
func (*UpdateEventInternalServerError) WriteResponse ¶
func (o *UpdateEventInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateEventNotFound ¶
UpdateEventNotFound Not Found
swagger:response updateEventNotFound
func NewUpdateEventNotFound ¶
func NewUpdateEventNotFound() *UpdateEventNotFound
NewUpdateEventNotFound creates UpdateEventNotFound with default headers values
func (*UpdateEventNotFound) SetPayload ¶
func (o *UpdateEventNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the update event not found response
func (*UpdateEventNotFound) WithPayload ¶
func (o *UpdateEventNotFound) WithPayload(payload *models.Error) *UpdateEventNotFound
WithPayload adds the payload to the update event not found response
func (*UpdateEventNotFound) WriteResponse ¶
func (o *UpdateEventNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateEventOK ¶
UpdateEventOK OK
swagger:response updateEventOK
func NewUpdateEventOK ¶
func NewUpdateEventOK() *UpdateEventOK
NewUpdateEventOK creates UpdateEventOK with default headers values
func (*UpdateEventOK) SetPayload ¶
func (o *UpdateEventOK) SetPayload(payload *ent.Event)
SetPayload sets the payload to the update event o k response
func (*UpdateEventOK) WithPayload ¶
func (o *UpdateEventOK) WithPayload(payload *ent.Event) *UpdateEventOK
WithPayload adds the payload to the update event o k response
func (*UpdateEventOK) WriteResponse ¶
func (o *UpdateEventOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateEventParams ¶
type UpdateEventParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Event to update. Required: true In: body */ Event *ent.Event /*Event ID. Required: true In: path */ ID string }
UpdateEventParams contains all the bound params for the update event operation typically these are obtained from a http.Request
swagger:parameters updateEvent
func NewUpdateEventParams ¶
func NewUpdateEventParams() UpdateEventParams
NewUpdateEventParams creates a new UpdateEventParams object
There are no default values defined in the spec.
func (*UpdateEventParams) BindRequest ¶
func (o *UpdateEventParams) 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 NewUpdateEventParams() beforehand.
type UpdateEventURL ¶
type UpdateEventURL struct { ID string // contains filtered or unexported fields }
UpdateEventURL generates an URL for the update event operation
func (*UpdateEventURL) Build ¶
func (o *UpdateEventURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateEventURL) BuildFull ¶
func (o *UpdateEventURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateEventURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateEventURL) SetBasePath ¶
func (o *UpdateEventURL) 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 (*UpdateEventURL) String ¶
func (o *UpdateEventURL) String() string
String returns the string representation of the path with query string
func (*UpdateEventURL) StringFull ¶
func (o *UpdateEventURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateEventURL) WithBasePath ¶
func (o *UpdateEventURL) WithBasePath(bp string) *UpdateEventURL
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 UpdateEventUnauthorized ¶
UpdateEventUnauthorized Unauthorized
swagger:response updateEventUnauthorized
func NewUpdateEventUnauthorized ¶
func NewUpdateEventUnauthorized() *UpdateEventUnauthorized
NewUpdateEventUnauthorized creates UpdateEventUnauthorized with default headers values
func (*UpdateEventUnauthorized) SetPayload ¶
func (o *UpdateEventUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the update event unauthorized response
func (*UpdateEventUnauthorized) WithPayload ¶
func (o *UpdateEventUnauthorized) WithPayload(payload *models.Error) *UpdateEventUnauthorized
WithPayload adds the payload to the update event unauthorized response
func (*UpdateEventUnauthorized) WriteResponse ¶
func (o *UpdateEventUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateType ¶
type UpdateType struct { Context *middleware.Context Handler UpdateTypeHandler }
UpdateType swagger:route POST /events/types/{id} Event updateType
Update event type ¶
Update an event category.
func NewUpdateType ¶
func NewUpdateType(ctx *middleware.Context, handler UpdateTypeHandler) *UpdateType
NewUpdateType creates a new http.Handler for the update type operation
func (*UpdateType) ServeHTTP ¶
func (o *UpdateType) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateTypeBadRequest ¶
UpdateTypeBadRequest Bad request
swagger:response updateTypeBadRequest
func NewUpdateTypeBadRequest ¶
func NewUpdateTypeBadRequest() *UpdateTypeBadRequest
NewUpdateTypeBadRequest creates UpdateTypeBadRequest with default headers values
func (*UpdateTypeBadRequest) SetPayload ¶
func (o *UpdateTypeBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the update type bad request response
func (*UpdateTypeBadRequest) WithPayload ¶
func (o *UpdateTypeBadRequest) WithPayload(payload *models.Error) *UpdateTypeBadRequest
WithPayload adds the payload to the update type bad request response
func (*UpdateTypeBadRequest) WriteResponse ¶
func (o *UpdateTypeBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateTypeHandler ¶
type UpdateTypeHandler interface {
Handle(UpdateTypeParams, *models.Principal) middleware.Responder
}
UpdateTypeHandler interface for that can handle valid update type params
type UpdateTypeHandlerFunc ¶
type UpdateTypeHandlerFunc func(UpdateTypeParams, *models.Principal) middleware.Responder
UpdateTypeHandlerFunc turns a function with the right signature into a update type handler
func (UpdateTypeHandlerFunc) Handle ¶
func (fn UpdateTypeHandlerFunc) Handle(params UpdateTypeParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type UpdateTypeInternalServerError ¶
type UpdateTypeInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
UpdateTypeInternalServerError Internal Server Error
swagger:response updateTypeInternalServerError
func NewUpdateTypeInternalServerError ¶
func NewUpdateTypeInternalServerError() *UpdateTypeInternalServerError
NewUpdateTypeInternalServerError creates UpdateTypeInternalServerError with default headers values
func (*UpdateTypeInternalServerError) SetPayload ¶
func (o *UpdateTypeInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the update type internal server error response
func (*UpdateTypeInternalServerError) WithPayload ¶
func (o *UpdateTypeInternalServerError) WithPayload(payload *models.Error) *UpdateTypeInternalServerError
WithPayload adds the payload to the update type internal server error response
func (*UpdateTypeInternalServerError) WriteResponse ¶
func (o *UpdateTypeInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateTypeNotFound ¶
UpdateTypeNotFound Not Found
swagger:response updateTypeNotFound
func NewUpdateTypeNotFound ¶
func NewUpdateTypeNotFound() *UpdateTypeNotFound
NewUpdateTypeNotFound creates UpdateTypeNotFound with default headers values
func (*UpdateTypeNotFound) SetPayload ¶
func (o *UpdateTypeNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the update type not found response
func (*UpdateTypeNotFound) WithPayload ¶
func (o *UpdateTypeNotFound) WithPayload(payload *models.Error) *UpdateTypeNotFound
WithPayload adds the payload to the update type not found response
func (*UpdateTypeNotFound) WriteResponse ¶
func (o *UpdateTypeNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateTypeOK ¶
UpdateTypeOK OK
swagger:response updateTypeOK
func NewUpdateTypeOK ¶
func NewUpdateTypeOK() *UpdateTypeOK
NewUpdateTypeOK creates UpdateTypeOK with default headers values
func (*UpdateTypeOK) SetPayload ¶
func (o *UpdateTypeOK) SetPayload(payload *ent.EventType)
SetPayload sets the payload to the update type o k response
func (*UpdateTypeOK) WithPayload ¶
func (o *UpdateTypeOK) WithPayload(payload *ent.EventType) *UpdateTypeOK
WithPayload adds the payload to the update type o k response
func (*UpdateTypeOK) WriteResponse ¶
func (o *UpdateTypeOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateTypeParams ¶
type UpdateTypeParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*ID of event category. Required: true In: path */ ID string /*Event category to update. Required: true In: body */ Type *ent.EventType }
UpdateTypeParams contains all the bound params for the update type operation typically these are obtained from a http.Request
swagger:parameters updateType
func NewUpdateTypeParams ¶
func NewUpdateTypeParams() UpdateTypeParams
NewUpdateTypeParams creates a new UpdateTypeParams object
There are no default values defined in the spec.
func (*UpdateTypeParams) BindRequest ¶
func (o *UpdateTypeParams) 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 NewUpdateTypeParams() beforehand.
type UpdateTypeURL ¶
type UpdateTypeURL struct { ID string // contains filtered or unexported fields }
UpdateTypeURL generates an URL for the update type operation
func (*UpdateTypeURL) Build ¶
func (o *UpdateTypeURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateTypeURL) BuildFull ¶
func (o *UpdateTypeURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateTypeURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateTypeURL) SetBasePath ¶
func (o *UpdateTypeURL) 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 (*UpdateTypeURL) String ¶
func (o *UpdateTypeURL) String() string
String returns the string representation of the path with query string
func (*UpdateTypeURL) StringFull ¶
func (o *UpdateTypeURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateTypeURL) WithBasePath ¶
func (o *UpdateTypeURL) WithBasePath(bp string) *UpdateTypeURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
Source Files ¶
- create_event.go
- create_event_parameters.go
- create_event_responses.go
- create_event_urlbuilder.go
- create_type.go
- create_type_parameters.go
- create_type_responses.go
- create_type_urlbuilder.go
- delete_event.go
- delete_event_parameters.go
- delete_event_responses.go
- delete_event_urlbuilder.go
- delete_type.go
- delete_type_parameters.go
- delete_type_responses.go
- delete_type_urlbuilder.go
- event_type.go
- event_type_parameters.go
- event_type_responses.go
- event_type_urlbuilder.go
- get_event_type.go
- get_event_type_parameters.go
- get_event_type_responses.go
- get_event_type_urlbuilder.go
- list_event.go
- list_event_parameters.go
- list_event_responses.go
- list_event_urlbuilder.go
- list_event_users.go
- list_event_users_parameters.go
- list_event_users_responses.go
- list_event_users_urlbuilder.go
- list_event_with_users.go
- list_event_with_users_parameters.go
- list_event_with_users_responses.go
- list_event_with_users_urlbuilder.go
- list_type.go
- list_type_parameters.go
- list_type_responses.go
- list_type_urlbuilder.go
- read_event.go
- read_event_parameters.go
- read_event_responses.go
- read_event_urlbuilder.go
- read_type.go
- read_type_parameters.go
- read_type_responses.go
- read_type_urlbuilder.go
- set_event_type.go
- set_event_type_parameters.go
- set_event_type_responses.go
- set_event_type_urlbuilder.go
- update_event.go
- update_event_parameters.go
- update_event_responses.go
- update_event_urlbuilder.go
- update_type.go
- update_type_parameters.go
- update_type_responses.go
- update_type_urlbuilder.go