event

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

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

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

Documentation

Index

Constants

View Source
const CreateEventBadRequestCode int = 400

CreateEventBadRequestCode is the HTTP code returned for type CreateEventBadRequest

View Source
const CreateEventCreatedCode int = 201

CreateEventCreatedCode is the HTTP code returned for type CreateEventCreated

View Source
const CreateEventForbiddenCode int = 403

CreateEventForbiddenCode is the HTTP code returned for type CreateEventForbidden

View Source
const CreateEventInternalServerErrorCode int = 500

CreateEventInternalServerErrorCode is the HTTP code returned for type CreateEventInternalServerError

View Source
const CreateEventUnauthorizedCode int = 401

CreateEventUnauthorizedCode is the HTTP code returned for type CreateEventUnauthorized

View Source
const CreateTypeBadRequestCode int = 400

CreateTypeBadRequestCode is the HTTP code returned for type CreateTypeBadRequest

View Source
const CreateTypeCreatedCode int = 201

CreateTypeCreatedCode is the HTTP code returned for type CreateTypeCreated

View Source
const CreateTypeInternalServerErrorCode int = 500

CreateTypeInternalServerErrorCode is the HTTP code returned for type CreateTypeInternalServerError

View Source
const DeleteEventBadRequestCode int = 400

DeleteEventBadRequestCode is the HTTP code returned for type DeleteEventBadRequest

View Source
const DeleteEventForbiddenCode int = 403

DeleteEventForbiddenCode is the HTTP code returned for type DeleteEventForbidden

View Source
const DeleteEventInternalServerErrorCode int = 500

DeleteEventInternalServerErrorCode is the HTTP code returned for type DeleteEventInternalServerError

View Source
const DeleteEventNoContentCode int = 204

DeleteEventNoContentCode is the HTTP code returned for type DeleteEventNoContent

View Source
const DeleteEventNotFoundCode int = 404

DeleteEventNotFoundCode is the HTTP code returned for type DeleteEventNotFound

View Source
const DeleteEventUnauthorizedCode int = 401

DeleteEventUnauthorizedCode is the HTTP code returned for type DeleteEventUnauthorized

View Source
const DeleteTypeBadRequestCode int = 400

DeleteTypeBadRequestCode is the HTTP code returned for type DeleteTypeBadRequest

View Source
const DeleteTypeInternalServerErrorCode int = 500

DeleteTypeInternalServerErrorCode is the HTTP code returned for type DeleteTypeInternalServerError

View Source
const DeleteTypeNoContentCode int = 204

DeleteTypeNoContentCode is the HTTP code returned for type DeleteTypeNoContent

View Source
const DeleteTypeNotFoundCode int = 404

DeleteTypeNotFoundCode is the HTTP code returned for type DeleteTypeNotFound

View Source
const EventTypeBadRequestCode int = 400

EventTypeBadRequestCode is the HTTP code returned for type EventTypeBadRequest

View Source
const EventTypeForbiddenCode int = 403

EventTypeForbiddenCode is the HTTP code returned for type EventTypeForbidden

View Source
const EventTypeInternalServerErrorCode int = 500

EventTypeInternalServerErrorCode is the HTTP code returned for type EventTypeInternalServerError

View Source
const EventTypeNotFoundCode int = 404

EventTypeNotFoundCode is the HTTP code returned for type EventTypeNotFound

View Source
const EventTypeOKCode int = 200

EventTypeOKCode is the HTTP code returned for type EventTypeOK

View Source
const EventTypeUnauthorizedCode int = 401

EventTypeUnauthorizedCode is the HTTP code returned for type EventTypeUnauthorized

View Source
const GetEventTypeBadRequestCode int = 400

GetEventTypeBadRequestCode is the HTTP code returned for type GetEventTypeBadRequest

View Source
const GetEventTypeForbiddenCode int = 403

GetEventTypeForbiddenCode is the HTTP code returned for type GetEventTypeForbidden

View Source
const GetEventTypeInternalServerErrorCode int = 500

GetEventTypeInternalServerErrorCode is the HTTP code returned for type GetEventTypeInternalServerError

View Source
const GetEventTypeNotFoundCode int = 404

GetEventTypeNotFoundCode is the HTTP code returned for type GetEventTypeNotFound

View Source
const GetEventTypeOKCode int = 200

GetEventTypeOKCode is the HTTP code returned for type GetEventTypeOK

View Source
const GetEventTypeUnauthorizedCode int = 401

GetEventTypeUnauthorizedCode is the HTTP code returned for type GetEventTypeUnauthorized

View Source
const ListEventForbiddenCode int = 403

ListEventForbiddenCode is the HTTP code returned for type ListEventForbidden

View Source
const ListEventInternalServerErrorCode int = 500

ListEventInternalServerErrorCode is the HTTP code returned for type ListEventInternalServerError

View Source
const ListEventOKCode int = 200

ListEventOKCode is the HTTP code returned for type ListEventOK

View Source
const ListEventUnauthorizedCode int = 401

ListEventUnauthorizedCode is the HTTP code returned for type ListEventUnauthorized

View Source
const ListEventUsersBadRequestCode int = 400

ListEventUsersBadRequestCode is the HTTP code returned for type ListEventUsersBadRequest

View Source
const ListEventUsersForbiddenCode int = 403

ListEventUsersForbiddenCode is the HTTP code returned for type ListEventUsersForbidden

View Source
const ListEventUsersInternalServerErrorCode int = 500

ListEventUsersInternalServerErrorCode is the HTTP code returned for type ListEventUsersInternalServerError

View Source
const ListEventUsersNotFoundCode int = 404

ListEventUsersNotFoundCode is the HTTP code returned for type ListEventUsersNotFound

View Source
const ListEventUsersOKCode int = 200

ListEventUsersOKCode is the HTTP code returned for type ListEventUsersOK

View Source
const ListEventUsersUnauthorizedCode int = 401

ListEventUsersUnauthorizedCode is the HTTP code returned for type ListEventUsersUnauthorized

View Source
const ListEventWithUsersForbiddenCode int = 403

ListEventWithUsersForbiddenCode is the HTTP code returned for type ListEventWithUsersForbidden

View Source
const ListEventWithUsersInternalServerErrorCode int = 500

ListEventWithUsersInternalServerErrorCode is the HTTP code returned for type ListEventWithUsersInternalServerError

View Source
const ListEventWithUsersOKCode int = 200

ListEventWithUsersOKCode is the HTTP code returned for type ListEventWithUsersOK

View Source
const ListEventWithUsersUnauthorizedCode int = 401

ListEventWithUsersUnauthorizedCode is the HTTP code returned for type ListEventWithUsersUnauthorized

View Source
const ListTypeInternalServerErrorCode int = 500

ListTypeInternalServerErrorCode is the HTTP code returned for type ListTypeInternalServerError

View Source
const ListTypeOKCode int = 200

ListTypeOKCode is the HTTP code returned for type ListTypeOK

View Source
const ReadEventBadRequestCode int = 400

ReadEventBadRequestCode is the HTTP code returned for type ReadEventBadRequest

View Source
const ReadEventForbiddenCode int = 403

ReadEventForbiddenCode is the HTTP code returned for type ReadEventForbidden

View Source
const ReadEventInternalServerErrorCode int = 500

ReadEventInternalServerErrorCode is the HTTP code returned for type ReadEventInternalServerError

View Source
const ReadEventNotFoundCode int = 404

ReadEventNotFoundCode is the HTTP code returned for type ReadEventNotFound

View Source
const ReadEventOKCode int = 200

ReadEventOKCode is the HTTP code returned for type ReadEventOK

View Source
const ReadEventUnauthorizedCode int = 401

ReadEventUnauthorizedCode is the HTTP code returned for type ReadEventUnauthorized

View Source
const ReadTypeBadRequestCode int = 400

ReadTypeBadRequestCode is the HTTP code returned for type ReadTypeBadRequest

View Source
const ReadTypeInternalServerErrorCode int = 500

ReadTypeInternalServerErrorCode is the HTTP code returned for type ReadTypeInternalServerError

View Source
const ReadTypeNotFoundCode int = 404

ReadTypeNotFoundCode is the HTTP code returned for type ReadTypeNotFound

View Source
const ReadTypeOKCode int = 200

ReadTypeOKCode is the HTTP code returned for type ReadTypeOK

View Source
const SetEventTypeBadRequestCode int = 400

SetEventTypeBadRequestCode is the HTTP code returned for type SetEventTypeBadRequest

View Source
const SetEventTypeForbiddenCode int = 403

SetEventTypeForbiddenCode is the HTTP code returned for type SetEventTypeForbidden

View Source
const SetEventTypeInternalServerErrorCode int = 500

SetEventTypeInternalServerErrorCode is the HTTP code returned for type SetEventTypeInternalServerError

View Source
const SetEventTypeNotFoundCode int = 404

SetEventTypeNotFoundCode is the HTTP code returned for type SetEventTypeNotFound

View Source
const SetEventTypeOKCode int = 200

SetEventTypeOKCode is the HTTP code returned for type SetEventTypeOK

View Source
const SetEventTypeUnauthorizedCode int = 401

SetEventTypeUnauthorizedCode is the HTTP code returned for type SetEventTypeUnauthorized

View Source
const UpdateEventBadRequestCode int = 400

UpdateEventBadRequestCode is the HTTP code returned for type UpdateEventBadRequest

View Source
const UpdateEventForbiddenCode int = 403

UpdateEventForbiddenCode is the HTTP code returned for type UpdateEventForbidden

View Source
const UpdateEventInternalServerErrorCode int = 500

UpdateEventInternalServerErrorCode is the HTTP code returned for type UpdateEventInternalServerError

View Source
const UpdateEventNotFoundCode int = 404

UpdateEventNotFoundCode is the HTTP code returned for type UpdateEventNotFound

View Source
const UpdateEventOKCode int = 200

UpdateEventOKCode is the HTTP code returned for type UpdateEventOK

View Source
const UpdateEventUnauthorizedCode int = 401

UpdateEventUnauthorizedCode is the HTTP code returned for type UpdateEventUnauthorized

View Source
const UpdateTypeBadRequestCode int = 400

UpdateTypeBadRequestCode is the HTTP code returned for type UpdateTypeBadRequest

View Source
const UpdateTypeInternalServerErrorCode int = 500

UpdateTypeInternalServerErrorCode is the HTTP code returned for type UpdateTypeInternalServerError

View Source
const UpdateTypeNotFoundCode int = 404

UpdateTypeNotFoundCode is the HTTP code returned for type UpdateTypeNotFound

View Source
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

type CreateEventBadRequest struct {

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

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

type CreateEventCreated struct {

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

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

type CreateEventForbidden struct {

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

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

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

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

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

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

type CreateEventUnauthorized struct {

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

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

type CreateTypeBadRequest struct {

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

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

type CreateTypeCreated struct {

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

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

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

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

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

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

type DeleteEventBadRequest struct {

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

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

type DeleteEventForbidden struct {

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

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

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

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

type DeleteEventNotFound struct {

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

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

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

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

type DeleteEventUnauthorized struct {

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

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

type DeleteTypeBadRequest struct {

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

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

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

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

type DeleteTypeNotFound struct {

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

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

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

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

func (*EventType) ServeHTTP

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

type EventTypeBadRequest

type EventTypeBadRequest struct {

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

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

type EventTypeForbidden struct {

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

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

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

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

type EventTypeNotFound struct {

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

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

type EventTypeOK struct {

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

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

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

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

type EventTypeUnauthorized struct {

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

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

type GetEventTypeBadRequest struct {

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

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

type GetEventTypeForbidden struct {

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

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

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

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

type GetEventTypeNotFound struct {

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

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

type GetEventTypeOK struct {

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

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

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

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

type GetEventTypeUnauthorized struct {

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

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

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

func (*ListEvent) ServeHTTP

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

type ListEventForbidden

type ListEventForbidden struct {

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

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

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

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

type ListEventOK struct {

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

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

type ListEventURL struct {
	End   *string
	Start *string
	// contains filtered or unexported fields
}

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

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

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

type ListEventUnauthorized struct {

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

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

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

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

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

type ListEventUsersNotFound struct {

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

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

type ListEventUsersOK struct {

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

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

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

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

type ListEventUsersUnauthorized struct {

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

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

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

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

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

WithPayload adds the payload to the list event with users internal server error response

func (*ListEventWithUsersInternalServerError) WriteResponse

WriteResponse to the client

type ListEventWithUsersOK

type ListEventWithUsersOK struct {

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

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

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

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

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

type ListEventWithUsersUnauthorized struct {

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

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

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

func (*ListType) ServeHTTP

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

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

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

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

type ListTypeOK struct {

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

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

type ListTypeParams struct {

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

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

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

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

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

func (*ReadEvent) ServeHTTP

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

type ReadEventBadRequest

type ReadEventBadRequest struct {

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

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

type ReadEventForbidden struct {

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

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

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

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

type ReadEventNotFound struct {

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

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

type ReadEventOK struct {

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

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

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

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

type ReadEventUnauthorized struct {

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

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

func (*ReadType) ServeHTTP

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

type ReadTypeBadRequest

type ReadTypeBadRequest struct {

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

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

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

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

type ReadTypeNotFound struct {

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

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

type ReadTypeOK struct {

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

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

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

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

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

type SetEventTypeBadRequest struct {

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

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

type SetEventTypeForbidden struct {

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

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

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

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

type SetEventTypeNotFound struct {

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

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

type SetEventTypeOK struct {

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

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

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

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

type SetEventTypeUnauthorized struct {

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

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

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

type UpdateEventBadRequest struct {

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

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

type UpdateEventForbidden struct {

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

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

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

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

type UpdateEventNotFound struct {

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

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

type UpdateEventOK struct {

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

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

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

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

type UpdateEventUnauthorized struct {

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

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

type UpdateTypeBadRequest struct {

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

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

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

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

type UpdateTypeNotFound struct {

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

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

type UpdateTypeOK struct {

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

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

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

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

Jump to

Keyboard shortcuts

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