event_type

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: 14 Imported by: 0

Documentation

Index

Constants

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 CreateTypeForbiddenCode int = 403

CreateTypeForbiddenCode is the HTTP code returned for type CreateTypeForbidden

View Source
const CreateTypeInternalServerErrorCode int = 500

CreateTypeInternalServerErrorCode is the HTTP code returned for type CreateTypeInternalServerError

View Source
const CreateTypeUnauthorizedCode int = 401

CreateTypeUnauthorizedCode is the HTTP code returned for type CreateTypeUnauthorized

View Source
const DeleteTypeBadRequestCode int = 400

DeleteTypeBadRequestCode is the HTTP code returned for type DeleteTypeBadRequest

View Source
const DeleteTypeForbiddenCode int = 403

DeleteTypeForbiddenCode is the HTTP code returned for type DeleteTypeForbidden

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 DeleteTypeUnauthorizedCode int = 401

DeleteTypeUnauthorizedCode is the HTTP code returned for type DeleteTypeUnauthorized

View Source
const ListTypeEventsBadRequestCode int = 400

ListTypeEventsBadRequestCode is the HTTP code returned for type ListTypeEventsBadRequest

View Source
const ListTypeEventsForbiddenCode int = 403

ListTypeEventsForbiddenCode is the HTTP code returned for type ListTypeEventsForbidden

View Source
const ListTypeEventsInternalServerErrorCode int = 500

ListTypeEventsInternalServerErrorCode is the HTTP code returned for type ListTypeEventsInternalServerError

View Source
const ListTypeEventsNotFoundCode int = 404

ListTypeEventsNotFoundCode is the HTTP code returned for type ListTypeEventsNotFound

View Source
const ListTypeEventsOKCode int = 200

ListTypeEventsOKCode is the HTTP code returned for type ListTypeEventsOK

View Source
const ListTypeEventsUnauthorizedCode int = 401

ListTypeEventsUnauthorizedCode is the HTTP code returned for type ListTypeEventsUnauthorized

View Source
const ListTypeForbiddenCode int = 403

ListTypeForbiddenCode is the HTTP code returned for type ListTypeForbidden

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 ListTypeUnauthorizedCode int = 401

ListTypeUnauthorizedCode is the HTTP code returned for type ListTypeUnauthorized

View Source
const ReadTypeBadRequestCode int = 400

ReadTypeBadRequestCode is the HTTP code returned for type ReadTypeBadRequest

View Source
const ReadTypeForbiddenCode int = 403

ReadTypeForbiddenCode is the HTTP code returned for type ReadTypeForbidden

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 ReadTypeUnauthorizedCode int = 401

ReadTypeUnauthorizedCode is the HTTP code returned for type ReadTypeUnauthorized

View Source
const UpdateTypeBadRequestCode int = 400

UpdateTypeBadRequestCode is the HTTP code returned for type UpdateTypeBadRequest

View Source
const UpdateTypeForbiddenCode int = 403

UpdateTypeForbiddenCode is the HTTP code returned for type UpdateTypeForbidden

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

View Source
const UpdateTypeUnauthorizedCode int = 401

UpdateTypeUnauthorizedCode is the HTTP code returned for type UpdateTypeUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateType

type CreateType struct {
	Context *middleware.Context
	Handler CreateTypeHandler
}
CreateType swagger:route POST /events/types EventType 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 CreateTypeForbidden

type CreateTypeForbidden struct {

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

CreateTypeForbidden Forbidden

swagger:response createTypeForbidden

func NewCreateTypeForbidden

func NewCreateTypeForbidden() *CreateTypeForbidden

NewCreateTypeForbidden creates CreateTypeForbidden with default headers values

func (*CreateTypeForbidden) SetPayload

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

SetPayload sets the payload to the create type forbidden response

func (*CreateTypeForbidden) WithPayload

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

WithPayload adds the payload to the create type forbidden response

func (*CreateTypeForbidden) WriteResponse

func (o *CreateTypeForbidden) 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 CreateTypeUnauthorized

type CreateTypeUnauthorized struct {

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

CreateTypeUnauthorized Unauthorized

swagger:response createTypeUnauthorized

func NewCreateTypeUnauthorized

func NewCreateTypeUnauthorized() *CreateTypeUnauthorized

NewCreateTypeUnauthorized creates CreateTypeUnauthorized with default headers values

func (*CreateTypeUnauthorized) SetPayload

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

SetPayload sets the payload to the create type unauthorized response

func (*CreateTypeUnauthorized) WithPayload

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

WithPayload adds the payload to the create type unauthorized response

func (*CreateTypeUnauthorized) WriteResponse

func (o *CreateTypeUnauthorized) 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} EventType 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 DeleteTypeForbidden

type DeleteTypeForbidden struct {

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

DeleteTypeForbidden Forbidden

swagger:response deleteTypeForbidden

func NewDeleteTypeForbidden

func NewDeleteTypeForbidden() *DeleteTypeForbidden

NewDeleteTypeForbidden creates DeleteTypeForbidden with default headers values

func (*DeleteTypeForbidden) SetPayload

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

SetPayload sets the payload to the delete type forbidden response

func (*DeleteTypeForbidden) WithPayload

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

WithPayload adds the payload to the delete type forbidden response

func (*DeleteTypeForbidden) WriteResponse

func (o *DeleteTypeForbidden) 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 DeleteTypeUnauthorized

type DeleteTypeUnauthorized struct {

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

DeleteTypeUnauthorized Unauthorized

swagger:response deleteTypeUnauthorized

func NewDeleteTypeUnauthorized

func NewDeleteTypeUnauthorized() *DeleteTypeUnauthorized

NewDeleteTypeUnauthorized creates DeleteTypeUnauthorized with default headers values

func (*DeleteTypeUnauthorized) SetPayload

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

SetPayload sets the payload to the delete type unauthorized response

func (*DeleteTypeUnauthorized) WithPayload

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

WithPayload adds the payload to the delete type unauthorized response

func (*DeleteTypeUnauthorized) WriteResponse

func (o *DeleteTypeUnauthorized) 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 EventType 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 ListTypeEvents

type ListTypeEvents struct {
	Context *middleware.Context
	Handler ListTypeEventsHandler
}
ListTypeEvents swagger:route GET /events/types/{id}/events/ EventType listTypeEvents

List event type events

List all events in a certain category.

func NewListTypeEvents

func NewListTypeEvents(ctx *middleware.Context, handler ListTypeEventsHandler) *ListTypeEvents

NewListTypeEvents creates a new http.Handler for the list type events operation

func (*ListTypeEvents) ServeHTTP

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

type ListTypeEventsBadRequest

type ListTypeEventsBadRequest struct {

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

ListTypeEventsBadRequest Bad request

swagger:response listTypeEventsBadRequest

func NewListTypeEventsBadRequest

func NewListTypeEventsBadRequest() *ListTypeEventsBadRequest

NewListTypeEventsBadRequest creates ListTypeEventsBadRequest with default headers values

func (*ListTypeEventsBadRequest) SetPayload

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

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

func (*ListTypeEventsBadRequest) WithPayload

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

func (*ListTypeEventsBadRequest) WriteResponse

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

WriteResponse to the client

type ListTypeEventsForbidden

type ListTypeEventsForbidden struct {

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

ListTypeEventsForbidden Forbidden

swagger:response listTypeEventsForbidden

func NewListTypeEventsForbidden

func NewListTypeEventsForbidden() *ListTypeEventsForbidden

NewListTypeEventsForbidden creates ListTypeEventsForbidden with default headers values

func (*ListTypeEventsForbidden) SetPayload

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

SetPayload sets the payload to the list type events forbidden response

func (*ListTypeEventsForbidden) WithPayload

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

WithPayload adds the payload to the list type events forbidden response

func (*ListTypeEventsForbidden) WriteResponse

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

WriteResponse to the client

type ListTypeEventsHandler

type ListTypeEventsHandler interface {
	Handle(ListTypeEventsParams, *models.Principal) middleware.Responder
}

ListTypeEventsHandler interface for that can handle valid list type events params

type ListTypeEventsHandlerFunc

type ListTypeEventsHandlerFunc func(ListTypeEventsParams, *models.Principal) middleware.Responder

ListTypeEventsHandlerFunc turns a function with the right signature into a list type events handler

func (ListTypeEventsHandlerFunc) Handle

Handle executing the request and returning a response

type ListTypeEventsInternalServerError

type ListTypeEventsInternalServerError struct {

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

ListTypeEventsInternalServerError Internal Server Error

swagger:response listTypeEventsInternalServerError

func NewListTypeEventsInternalServerError

func NewListTypeEventsInternalServerError() *ListTypeEventsInternalServerError

NewListTypeEventsInternalServerError creates ListTypeEventsInternalServerError with default headers values

func (*ListTypeEventsInternalServerError) SetPayload

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

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

func (*ListTypeEventsInternalServerError) WithPayload

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

func (*ListTypeEventsInternalServerError) WriteResponse

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

WriteResponse to the client

type ListTypeEventsNotFound

type ListTypeEventsNotFound struct {

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

ListTypeEventsNotFound Not Found

swagger:response listTypeEventsNotFound

func NewListTypeEventsNotFound

func NewListTypeEventsNotFound() *ListTypeEventsNotFound

NewListTypeEventsNotFound creates ListTypeEventsNotFound with default headers values

func (*ListTypeEventsNotFound) SetPayload

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

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

func (*ListTypeEventsNotFound) WithPayload

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

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

func (*ListTypeEventsNotFound) WriteResponse

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

WriteResponse to the client

type ListTypeEventsOK

type ListTypeEventsOK struct {

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

ListTypeEventsOK OK

swagger:response listTypeEventsOK

func NewListTypeEventsOK

func NewListTypeEventsOK() *ListTypeEventsOK

NewListTypeEventsOK creates ListTypeEventsOK with default headers values

func (*ListTypeEventsOK) SetPayload

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

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

func (*ListTypeEventsOK) WithPayload

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

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

func (*ListTypeEventsOK) WriteResponse

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

WriteResponse to the client

type ListTypeEventsParams

type ListTypeEventsParams struct {

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

	/*ID of event category.
	  Required: true
	  In: path
	*/
	ID string
}

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

swagger:parameters listTypeEvents

func NewListTypeEventsParams

func NewListTypeEventsParams() ListTypeEventsParams

NewListTypeEventsParams creates a new ListTypeEventsParams object

There are no default values defined in the spec.

func (*ListTypeEventsParams) BindRequest

func (o *ListTypeEventsParams) 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 NewListTypeEventsParams() beforehand.

type ListTypeEventsURL

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

ListTypeEventsURL generates an URL for the list type events operation

func (*ListTypeEventsURL) Build

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

Build a url path and query string

func (*ListTypeEventsURL) BuildFull

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

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

func (*ListTypeEventsURL) Must

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

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

func (*ListTypeEventsURL) SetBasePath

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

func (o *ListTypeEventsURL) String() string

String returns the string representation of the path with query string

func (*ListTypeEventsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ListTypeEventsURL) WithBasePath

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

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 ListTypeEventsUnauthorized

type ListTypeEventsUnauthorized struct {

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

ListTypeEventsUnauthorized Unauthorized

swagger:response listTypeEventsUnauthorized

func NewListTypeEventsUnauthorized

func NewListTypeEventsUnauthorized() *ListTypeEventsUnauthorized

NewListTypeEventsUnauthorized creates ListTypeEventsUnauthorized with default headers values

func (*ListTypeEventsUnauthorized) SetPayload

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

SetPayload sets the payload to the list type events unauthorized response

func (*ListTypeEventsUnauthorized) WithPayload

WithPayload adds the payload to the list type events unauthorized response

func (*ListTypeEventsUnauthorized) WriteResponse

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

WriteResponse to the client

type ListTypeForbidden

type ListTypeForbidden struct {

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

ListTypeForbidden Forbidden

swagger:response listTypeForbidden

func NewListTypeForbidden

func NewListTypeForbidden() *ListTypeForbidden

NewListTypeForbidden creates ListTypeForbidden with default headers values

func (*ListTypeForbidden) SetPayload

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

SetPayload sets the payload to the list type forbidden response

func (*ListTypeForbidden) WithPayload

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

WithPayload adds the payload to the list type forbidden response

func (*ListTypeForbidden) WriteResponse

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

WriteResponse to the client

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 ListTypeUnauthorized

type ListTypeUnauthorized struct {

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

ListTypeUnauthorized Unauthorized

swagger:response listTypeUnauthorized

func NewListTypeUnauthorized

func NewListTypeUnauthorized() *ListTypeUnauthorized

NewListTypeUnauthorized creates ListTypeUnauthorized with default headers values

func (*ListTypeUnauthorized) SetPayload

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

SetPayload sets the payload to the list type unauthorized response

func (*ListTypeUnauthorized) WithPayload

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

WithPayload adds the payload to the list type unauthorized response

func (*ListTypeUnauthorized) WriteResponse

func (o *ListTypeUnauthorized) 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} EventType 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 ReadTypeForbidden

type ReadTypeForbidden struct {

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

ReadTypeForbidden Forbidden

swagger:response readTypeForbidden

func NewReadTypeForbidden

func NewReadTypeForbidden() *ReadTypeForbidden

NewReadTypeForbidden creates ReadTypeForbidden with default headers values

func (*ReadTypeForbidden) SetPayload

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

SetPayload sets the payload to the read type forbidden response

func (*ReadTypeForbidden) WithPayload

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

WithPayload adds the payload to the read type forbidden response

func (*ReadTypeForbidden) WriteResponse

func (o *ReadTypeForbidden) 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 ReadTypeUnauthorized

type ReadTypeUnauthorized struct {

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

ReadTypeUnauthorized Unauthorized

swagger:response readTypeUnauthorized

func NewReadTypeUnauthorized

func NewReadTypeUnauthorized() *ReadTypeUnauthorized

NewReadTypeUnauthorized creates ReadTypeUnauthorized with default headers values

func (*ReadTypeUnauthorized) SetPayload

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

SetPayload sets the payload to the read type unauthorized response

func (*ReadTypeUnauthorized) WithPayload

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

WithPayload adds the payload to the read type unauthorized response

func (*ReadTypeUnauthorized) WriteResponse

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

WriteResponse to the client

type UpdateType

type UpdateType struct {
	Context *middleware.Context
	Handler UpdateTypeHandler
}
UpdateType swagger:route PATCH /events/types/{id} EventType 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 UpdateTypeForbidden

type UpdateTypeForbidden struct {

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

UpdateTypeForbidden Forbidden

swagger:response updateTypeForbidden

func NewUpdateTypeForbidden

func NewUpdateTypeForbidden() *UpdateTypeForbidden

NewUpdateTypeForbidden creates UpdateTypeForbidden with default headers values

func (*UpdateTypeForbidden) SetPayload

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

SetPayload sets the payload to the update type forbidden response

func (*UpdateTypeForbidden) WithPayload

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

WithPayload adds the payload to the update type forbidden response

func (*UpdateTypeForbidden) WriteResponse

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

type UpdateTypeUnauthorized

type UpdateTypeUnauthorized struct {

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

UpdateTypeUnauthorized Unauthorized

swagger:response updateTypeUnauthorized

func NewUpdateTypeUnauthorized

func NewUpdateTypeUnauthorized() *UpdateTypeUnauthorized

NewUpdateTypeUnauthorized creates UpdateTypeUnauthorized with default headers values

func (*UpdateTypeUnauthorized) SetPayload

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

SetPayload sets the payload to the update type unauthorized response

func (*UpdateTypeUnauthorized) WithPayload

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

WithPayload adds the payload to the update type unauthorized response

func (*UpdateTypeUnauthorized) WriteResponse

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

WriteResponse to the client

Jump to

Keyboard shortcuts

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