Documentation ¶
Index ¶
- Constants
- type CreateType
- type CreateTypeBadRequest
- type CreateTypeCreated
- type CreateTypeForbidden
- type CreateTypeHandler
- type CreateTypeHandlerFunc
- type CreateTypeInternalServerError
- type CreateTypeParams
- type CreateTypeURL
- func (o *CreateTypeURL) Build() (*url.URL, error)
- func (o *CreateTypeURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateTypeURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateTypeURL) SetBasePath(bp string)
- func (o *CreateTypeURL) String() string
- func (o *CreateTypeURL) StringFull(scheme, host string) string
- func (o *CreateTypeURL) WithBasePath(bp string) *CreateTypeURL
- type CreateTypeUnauthorized
- type DeleteType
- type DeleteTypeBadRequest
- type DeleteTypeForbidden
- type DeleteTypeHandler
- type DeleteTypeHandlerFunc
- type DeleteTypeInternalServerError
- type DeleteTypeNoContent
- type DeleteTypeNotFound
- type DeleteTypeParams
- type DeleteTypeURL
- func (o *DeleteTypeURL) Build() (*url.URL, error)
- func (o *DeleteTypeURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteTypeURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteTypeURL) SetBasePath(bp string)
- func (o *DeleteTypeURL) String() string
- func (o *DeleteTypeURL) StringFull(scheme, host string) string
- func (o *DeleteTypeURL) WithBasePath(bp string) *DeleteTypeURL
- type DeleteTypeUnauthorized
- type ListType
- type ListTypeEvents
- type ListTypeEventsBadRequest
- type ListTypeEventsForbidden
- type ListTypeEventsHandler
- type ListTypeEventsHandlerFunc
- type ListTypeEventsInternalServerError
- func (o *ListTypeEventsInternalServerError) SetPayload(payload *models.Error)
- func (o *ListTypeEventsInternalServerError) WithPayload(payload *models.Error) *ListTypeEventsInternalServerError
- func (o *ListTypeEventsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListTypeEventsNotFound
- type ListTypeEventsOK
- type ListTypeEventsParams
- type ListTypeEventsURL
- func (o *ListTypeEventsURL) Build() (*url.URL, error)
- func (o *ListTypeEventsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListTypeEventsURL) Must(u *url.URL, err error) *url.URL
- func (o *ListTypeEventsURL) SetBasePath(bp string)
- func (o *ListTypeEventsURL) String() string
- func (o *ListTypeEventsURL) StringFull(scheme, host string) string
- func (o *ListTypeEventsURL) WithBasePath(bp string) *ListTypeEventsURL
- type ListTypeEventsUnauthorized
- type ListTypeForbidden
- type ListTypeHandler
- type ListTypeHandlerFunc
- type ListTypeInternalServerError
- type ListTypeOK
- type ListTypeParams
- type ListTypeURL
- func (o *ListTypeURL) Build() (*url.URL, error)
- func (o *ListTypeURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListTypeURL) Must(u *url.URL, err error) *url.URL
- func (o *ListTypeURL) SetBasePath(bp string)
- func (o *ListTypeURL) String() string
- func (o *ListTypeURL) StringFull(scheme, host string) string
- func (o *ListTypeURL) WithBasePath(bp string) *ListTypeURL
- type ListTypeUnauthorized
- type ReadType
- type ReadTypeBadRequest
- type ReadTypeForbidden
- type ReadTypeHandler
- type ReadTypeHandlerFunc
- type ReadTypeInternalServerError
- type ReadTypeNotFound
- type ReadTypeOK
- type ReadTypeParams
- type ReadTypeURL
- func (o *ReadTypeURL) Build() (*url.URL, error)
- func (o *ReadTypeURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ReadTypeURL) Must(u *url.URL, err error) *url.URL
- func (o *ReadTypeURL) SetBasePath(bp string)
- func (o *ReadTypeURL) String() string
- func (o *ReadTypeURL) StringFull(scheme, host string) string
- func (o *ReadTypeURL) WithBasePath(bp string) *ReadTypeURL
- type ReadTypeUnauthorized
- type UpdateType
- type UpdateTypeBadRequest
- type UpdateTypeForbidden
- type UpdateTypeHandler
- type UpdateTypeHandlerFunc
- type UpdateTypeInternalServerError
- type UpdateTypeNotFound
- type UpdateTypeOK
- type UpdateTypeParams
- type UpdateTypeURL
- func (o *UpdateTypeURL) Build() (*url.URL, error)
- func (o *UpdateTypeURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateTypeURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateTypeURL) SetBasePath(bp string)
- func (o *UpdateTypeURL) String() string
- func (o *UpdateTypeURL) StringFull(scheme, host string) string
- func (o *UpdateTypeURL) WithBasePath(bp string) *UpdateTypeURL
- type UpdateTypeUnauthorized
Constants ¶
const CreateTypeBadRequestCode int = 400
CreateTypeBadRequestCode is the HTTP code returned for type CreateTypeBadRequest
const CreateTypeCreatedCode int = 201
CreateTypeCreatedCode is the HTTP code returned for type CreateTypeCreated
const CreateTypeForbiddenCode int = 403
CreateTypeForbiddenCode is the HTTP code returned for type CreateTypeForbidden
const CreateTypeInternalServerErrorCode int = 500
CreateTypeInternalServerErrorCode is the HTTP code returned for type CreateTypeInternalServerError
CreateTypeUnauthorizedCode is the HTTP code returned for type CreateTypeUnauthorized
const DeleteTypeBadRequestCode int = 400
DeleteTypeBadRequestCode is the HTTP code returned for type DeleteTypeBadRequest
const DeleteTypeForbiddenCode int = 403
DeleteTypeForbiddenCode is the HTTP code returned for type DeleteTypeForbidden
const DeleteTypeInternalServerErrorCode int = 500
DeleteTypeInternalServerErrorCode is the HTTP code returned for type DeleteTypeInternalServerError
const DeleteTypeNoContentCode int = 204
DeleteTypeNoContentCode is the HTTP code returned for type DeleteTypeNoContent
const DeleteTypeNotFoundCode int = 404
DeleteTypeNotFoundCode is the HTTP code returned for type DeleteTypeNotFound
DeleteTypeUnauthorizedCode is the HTTP code returned for type DeleteTypeUnauthorized
const ListTypeEventsBadRequestCode int = 400
ListTypeEventsBadRequestCode is the HTTP code returned for type ListTypeEventsBadRequest
const ListTypeEventsForbiddenCode int = 403
ListTypeEventsForbiddenCode is the HTTP code returned for type ListTypeEventsForbidden
const ListTypeEventsInternalServerErrorCode int = 500
ListTypeEventsInternalServerErrorCode is the HTTP code returned for type ListTypeEventsInternalServerError
const ListTypeEventsNotFoundCode int = 404
ListTypeEventsNotFoundCode is the HTTP code returned for type ListTypeEventsNotFound
const ListTypeEventsOKCode int = 200
ListTypeEventsOKCode is the HTTP code returned for type ListTypeEventsOK
ListTypeEventsUnauthorizedCode is the HTTP code returned for type ListTypeEventsUnauthorized
const ListTypeForbiddenCode int = 403
ListTypeForbiddenCode is the HTTP code returned for type ListTypeForbidden
const ListTypeInternalServerErrorCode int = 500
ListTypeInternalServerErrorCode is the HTTP code returned for type ListTypeInternalServerError
const ListTypeOKCode int = 200
ListTypeOKCode is the HTTP code returned for type ListTypeOK
ListTypeUnauthorizedCode is the HTTP code returned for type ListTypeUnauthorized
const ReadTypeBadRequestCode int = 400
ReadTypeBadRequestCode is the HTTP code returned for type ReadTypeBadRequest
const ReadTypeForbiddenCode int = 403
ReadTypeForbiddenCode is the HTTP code returned for type ReadTypeForbidden
const ReadTypeInternalServerErrorCode int = 500
ReadTypeInternalServerErrorCode is the HTTP code returned for type ReadTypeInternalServerError
const ReadTypeNotFoundCode int = 404
ReadTypeNotFoundCode is the HTTP code returned for type ReadTypeNotFound
const ReadTypeOKCode int = 200
ReadTypeOKCode is the HTTP code returned for type ReadTypeOK
ReadTypeUnauthorizedCode is the HTTP code returned for type ReadTypeUnauthorized
const UpdateTypeBadRequestCode int = 400
UpdateTypeBadRequestCode is the HTTP code returned for type UpdateTypeBadRequest
const UpdateTypeForbiddenCode int = 403
UpdateTypeForbiddenCode is the HTTP code returned for type UpdateTypeForbidden
const UpdateTypeInternalServerErrorCode int = 500
UpdateTypeInternalServerErrorCode is the HTTP code returned for type UpdateTypeInternalServerError
const UpdateTypeNotFoundCode int = 404
UpdateTypeNotFoundCode is the HTTP code returned for type UpdateTypeNotFound
const UpdateTypeOKCode int = 200
UpdateTypeOKCode is the HTTP code returned for type UpdateTypeOK
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 ¶
CreateTypeBadRequest Bad request
swagger:response createTypeBadRequest
func NewCreateTypeBadRequest ¶
func NewCreateTypeBadRequest() *CreateTypeBadRequest
NewCreateTypeBadRequest creates CreateTypeBadRequest with default headers values
func (*CreateTypeBadRequest) SetPayload ¶
func (o *CreateTypeBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the create type bad request response
func (*CreateTypeBadRequest) WithPayload ¶
func (o *CreateTypeBadRequest) WithPayload(payload *models.Error) *CreateTypeBadRequest
WithPayload adds the payload to the create type bad request response
func (*CreateTypeBadRequest) WriteResponse ¶
func (o *CreateTypeBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateTypeCreated ¶
CreateTypeCreated Created
swagger:response createTypeCreated
func NewCreateTypeCreated ¶
func NewCreateTypeCreated() *CreateTypeCreated
NewCreateTypeCreated creates CreateTypeCreated with default headers values
func (*CreateTypeCreated) SetPayload ¶
func (o *CreateTypeCreated) SetPayload(payload *ent.EventType)
SetPayload sets the payload to the create type created response
func (*CreateTypeCreated) WithPayload ¶
func (o *CreateTypeCreated) WithPayload(payload *ent.EventType) *CreateTypeCreated
WithPayload adds the payload to the create type created response
func (*CreateTypeCreated) WriteResponse ¶
func (o *CreateTypeCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateTypeForbidden ¶
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 ¶
func (fn CreateTypeHandlerFunc) Handle(params CreateTypeParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type CreateTypeInternalServerError ¶
type CreateTypeInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
CreateTypeInternalServerError Internal Server Error
swagger:response createTypeInternalServerError
func NewCreateTypeInternalServerError ¶
func NewCreateTypeInternalServerError() *CreateTypeInternalServerError
NewCreateTypeInternalServerError creates CreateTypeInternalServerError with default headers values
func (*CreateTypeInternalServerError) SetPayload ¶
func (o *CreateTypeInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the create type internal server error response
func (*CreateTypeInternalServerError) WithPayload ¶
func (o *CreateTypeInternalServerError) WithPayload(payload *models.Error) *CreateTypeInternalServerError
WithPayload adds the payload to the create type internal server error response
func (*CreateTypeInternalServerError) WriteResponse ¶
func (o *CreateTypeInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateTypeParams ¶
type CreateTypeParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Event category to create. Required: true In: body */ Type *ent.EventType }
CreateTypeParams contains all the bound params for the create type operation typically these are obtained from a http.Request
swagger:parameters createType
func NewCreateTypeParams ¶
func NewCreateTypeParams() CreateTypeParams
NewCreateTypeParams creates a new CreateTypeParams object
There are no default values defined in the spec.
func (*CreateTypeParams) BindRequest ¶
func (o *CreateTypeParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewCreateTypeParams() beforehand.
type CreateTypeURL ¶
type CreateTypeURL struct {
// contains filtered or unexported fields
}
CreateTypeURL generates an URL for the create type operation
func (*CreateTypeURL) Build ¶
func (o *CreateTypeURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateTypeURL) BuildFull ¶
func (o *CreateTypeURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateTypeURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreateTypeURL) SetBasePath ¶
func (o *CreateTypeURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*CreateTypeURL) String ¶
func (o *CreateTypeURL) String() string
String returns the string representation of the path with query string
func (*CreateTypeURL) StringFull ¶
func (o *CreateTypeURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateTypeURL) WithBasePath ¶
func (o *CreateTypeURL) WithBasePath(bp string) *CreateTypeURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type CreateTypeUnauthorized ¶
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 ¶
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 ¶
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 ¶
func (fn DeleteTypeHandlerFunc) Handle(params DeleteTypeParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type DeleteTypeInternalServerError ¶
type DeleteTypeInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
DeleteTypeInternalServerError Internal Server Error
swagger:response deleteTypeInternalServerError
func NewDeleteTypeInternalServerError ¶
func NewDeleteTypeInternalServerError() *DeleteTypeInternalServerError
NewDeleteTypeInternalServerError creates DeleteTypeInternalServerError with default headers values
func (*DeleteTypeInternalServerError) SetPayload ¶
func (o *DeleteTypeInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete type internal server error response
func (*DeleteTypeInternalServerError) WithPayload ¶
func (o *DeleteTypeInternalServerError) WithPayload(payload *models.Error) *DeleteTypeInternalServerError
WithPayload adds the payload to the delete type internal server error response
func (*DeleteTypeInternalServerError) WriteResponse ¶
func (o *DeleteTypeInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteTypeNoContent ¶
type DeleteTypeNoContent struct { }
DeleteTypeNoContent No content
swagger:response deleteTypeNoContent
func NewDeleteTypeNoContent ¶
func NewDeleteTypeNoContent() *DeleteTypeNoContent
NewDeleteTypeNoContent creates DeleteTypeNoContent with default headers values
func (*DeleteTypeNoContent) WriteResponse ¶
func (o *DeleteTypeNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteTypeNotFound ¶
DeleteTypeNotFound Not Found
swagger:response deleteTypeNotFound
func NewDeleteTypeNotFound ¶
func NewDeleteTypeNotFound() *DeleteTypeNotFound
NewDeleteTypeNotFound creates DeleteTypeNotFound with default headers values
func (*DeleteTypeNotFound) SetPayload ¶
func (o *DeleteTypeNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete type not found response
func (*DeleteTypeNotFound) WithPayload ¶
func (o *DeleteTypeNotFound) WithPayload(payload *models.Error) *DeleteTypeNotFound
WithPayload adds the payload to the delete type not found response
func (*DeleteTypeNotFound) WriteResponse ¶
func (o *DeleteTypeNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteTypeParams ¶
type DeleteTypeParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*ID of event category. Required: true In: path */ ID string }
DeleteTypeParams contains all the bound params for the delete type operation typically these are obtained from a http.Request
swagger:parameters deleteType
func NewDeleteTypeParams ¶
func NewDeleteTypeParams() DeleteTypeParams
NewDeleteTypeParams creates a new DeleteTypeParams object
There are no default values defined in the spec.
func (*DeleteTypeParams) BindRequest ¶
func (o *DeleteTypeParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewDeleteTypeParams() beforehand.
type DeleteTypeURL ¶
type DeleteTypeURL struct { ID string // contains filtered or unexported fields }
DeleteTypeURL generates an URL for the delete type operation
func (*DeleteTypeURL) Build ¶
func (o *DeleteTypeURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteTypeURL) BuildFull ¶
func (o *DeleteTypeURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteTypeURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteTypeURL) SetBasePath ¶
func (o *DeleteTypeURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*DeleteTypeURL) String ¶
func (o *DeleteTypeURL) String() string
String returns the string representation of the path with query string
func (*DeleteTypeURL) StringFull ¶
func (o *DeleteTypeURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteTypeURL) WithBasePath ¶
func (o *DeleteTypeURL) WithBasePath(bp string) *DeleteTypeURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type DeleteTypeUnauthorized ¶
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
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 ¶
func (o *ListTypeEventsBadRequest) WithPayload(payload *models.Error) *ListTypeEventsBadRequest
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 ¶
func (fn ListTypeEventsHandlerFunc) Handle(params ListTypeEventsParams, principal *models.Principal) middleware.Responder
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 ¶
func (o *ListTypeEventsInternalServerError) WithPayload(payload *models.Error) *ListTypeEventsInternalServerError
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (o *ListTypeEventsUnauthorized) WithPayload(payload *models.Error) *ListTypeEventsUnauthorized
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 ¶
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 ¶
func (fn ListTypeHandlerFunc) Handle(params ListTypeParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type ListTypeInternalServerError ¶
type ListTypeInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
ListTypeInternalServerError Internal Server Error
swagger:response listTypeInternalServerError
func NewListTypeInternalServerError ¶
func NewListTypeInternalServerError() *ListTypeInternalServerError
NewListTypeInternalServerError creates ListTypeInternalServerError with default headers values
func (*ListTypeInternalServerError) SetPayload ¶
func (o *ListTypeInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the list type internal server error response
func (*ListTypeInternalServerError) WithPayload ¶
func (o *ListTypeInternalServerError) WithPayload(payload *models.Error) *ListTypeInternalServerError
WithPayload adds the payload to the list type internal server error response
func (*ListTypeInternalServerError) WriteResponse ¶
func (o *ListTypeInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListTypeOK ¶
ListTypeOK OK
swagger:response listTypeOK
func NewListTypeOK ¶
func NewListTypeOK() *ListTypeOK
NewListTypeOK creates ListTypeOK with default headers values
func (*ListTypeOK) SetPayload ¶
func (o *ListTypeOK) SetPayload(payload []*ent.EventType)
SetPayload sets the payload to the list type o k response
func (*ListTypeOK) WithPayload ¶
func (o *ListTypeOK) WithPayload(payload []*ent.EventType) *ListTypeOK
WithPayload adds the payload to the list type o k response
func (*ListTypeOK) WriteResponse ¶
func (o *ListTypeOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListTypeParams ¶
ListTypeParams contains all the bound params for the list type operation typically these are obtained from a http.Request
swagger:parameters listType
func NewListTypeParams ¶
func NewListTypeParams() ListTypeParams
NewListTypeParams creates a new ListTypeParams object
There are no default values defined in the spec.
func (*ListTypeParams) BindRequest ¶
func (o *ListTypeParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewListTypeParams() beforehand.
type ListTypeURL ¶
type ListTypeURL struct {
// contains filtered or unexported fields
}
ListTypeURL generates an URL for the list type operation
func (*ListTypeURL) Build ¶
func (o *ListTypeURL) Build() (*url.URL, error)
Build a url path and query string
func (*ListTypeURL) BuildFull ¶
func (o *ListTypeURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ListTypeURL) SetBasePath ¶
func (o *ListTypeURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*ListTypeURL) String ¶
func (o *ListTypeURL) String() string
String returns the string representation of the path with query string
func (*ListTypeURL) StringFull ¶
func (o *ListTypeURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ListTypeURL) WithBasePath ¶
func (o *ListTypeURL) WithBasePath(bp string) *ListTypeURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type ListTypeUnauthorized ¶
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
type ReadTypeBadRequest ¶
ReadTypeBadRequest Bad request
swagger:response readTypeBadRequest
func NewReadTypeBadRequest ¶
func NewReadTypeBadRequest() *ReadTypeBadRequest
NewReadTypeBadRequest creates ReadTypeBadRequest with default headers values
func (*ReadTypeBadRequest) SetPayload ¶
func (o *ReadTypeBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the read type bad request response
func (*ReadTypeBadRequest) WithPayload ¶
func (o *ReadTypeBadRequest) WithPayload(payload *models.Error) *ReadTypeBadRequest
WithPayload adds the payload to the read type bad request response
func (*ReadTypeBadRequest) WriteResponse ¶
func (o *ReadTypeBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReadTypeForbidden ¶
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 ¶
func (fn ReadTypeHandlerFunc) Handle(params ReadTypeParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type ReadTypeInternalServerError ¶
type ReadTypeInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
ReadTypeInternalServerError Internal Server Error
swagger:response readTypeInternalServerError
func NewReadTypeInternalServerError ¶
func NewReadTypeInternalServerError() *ReadTypeInternalServerError
NewReadTypeInternalServerError creates ReadTypeInternalServerError with default headers values
func (*ReadTypeInternalServerError) SetPayload ¶
func (o *ReadTypeInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the read type internal server error response
func (*ReadTypeInternalServerError) WithPayload ¶
func (o *ReadTypeInternalServerError) WithPayload(payload *models.Error) *ReadTypeInternalServerError
WithPayload adds the payload to the read type internal server error response
func (*ReadTypeInternalServerError) WriteResponse ¶
func (o *ReadTypeInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReadTypeNotFound ¶
ReadTypeNotFound Not Found
swagger:response readTypeNotFound
func NewReadTypeNotFound ¶
func NewReadTypeNotFound() *ReadTypeNotFound
NewReadTypeNotFound creates ReadTypeNotFound with default headers values
func (*ReadTypeNotFound) SetPayload ¶
func (o *ReadTypeNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the read type not found response
func (*ReadTypeNotFound) WithPayload ¶
func (o *ReadTypeNotFound) WithPayload(payload *models.Error) *ReadTypeNotFound
WithPayload adds the payload to the read type not found response
func (*ReadTypeNotFound) WriteResponse ¶
func (o *ReadTypeNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReadTypeOK ¶
ReadTypeOK OK
swagger:response readTypeOK
func NewReadTypeOK ¶
func NewReadTypeOK() *ReadTypeOK
NewReadTypeOK creates ReadTypeOK with default headers values
func (*ReadTypeOK) SetPayload ¶
func (o *ReadTypeOK) SetPayload(payload *ent.EventType)
SetPayload sets the payload to the read type o k response
func (*ReadTypeOK) WithPayload ¶
func (o *ReadTypeOK) WithPayload(payload *ent.EventType) *ReadTypeOK
WithPayload adds the payload to the read type o k response
func (*ReadTypeOK) WriteResponse ¶
func (o *ReadTypeOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReadTypeParams ¶
type ReadTypeParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*ID of event category. Required: true In: path */ ID string }
ReadTypeParams contains all the bound params for the read type operation typically these are obtained from a http.Request
swagger:parameters readType
func NewReadTypeParams ¶
func NewReadTypeParams() ReadTypeParams
NewReadTypeParams creates a new ReadTypeParams object
There are no default values defined in the spec.
func (*ReadTypeParams) BindRequest ¶
func (o *ReadTypeParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewReadTypeParams() beforehand.
type ReadTypeURL ¶
type ReadTypeURL struct { ID string // contains filtered or unexported fields }
ReadTypeURL generates an URL for the read type operation
func (*ReadTypeURL) Build ¶
func (o *ReadTypeURL) Build() (*url.URL, error)
Build a url path and query string
func (*ReadTypeURL) BuildFull ¶
func (o *ReadTypeURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ReadTypeURL) SetBasePath ¶
func (o *ReadTypeURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*ReadTypeURL) String ¶
func (o *ReadTypeURL) String() string
String returns the string representation of the path with query string
func (*ReadTypeURL) StringFull ¶
func (o *ReadTypeURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ReadTypeURL) WithBasePath ¶
func (o *ReadTypeURL) WithBasePath(bp string) *ReadTypeURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type ReadTypeUnauthorized ¶
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 ¶
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 ¶
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 ¶
func (fn UpdateTypeHandlerFunc) Handle(params UpdateTypeParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type UpdateTypeInternalServerError ¶
type UpdateTypeInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
UpdateTypeInternalServerError Internal Server Error
swagger:response updateTypeInternalServerError
func NewUpdateTypeInternalServerError ¶
func NewUpdateTypeInternalServerError() *UpdateTypeInternalServerError
NewUpdateTypeInternalServerError creates UpdateTypeInternalServerError with default headers values
func (*UpdateTypeInternalServerError) SetPayload ¶
func (o *UpdateTypeInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the update type internal server error response
func (*UpdateTypeInternalServerError) WithPayload ¶
func (o *UpdateTypeInternalServerError) WithPayload(payload *models.Error) *UpdateTypeInternalServerError
WithPayload adds the payload to the update type internal server error response
func (*UpdateTypeInternalServerError) WriteResponse ¶
func (o *UpdateTypeInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateTypeNotFound ¶
UpdateTypeNotFound Not Found
swagger:response updateTypeNotFound
func NewUpdateTypeNotFound ¶
func NewUpdateTypeNotFound() *UpdateTypeNotFound
NewUpdateTypeNotFound creates UpdateTypeNotFound with default headers values
func (*UpdateTypeNotFound) SetPayload ¶
func (o *UpdateTypeNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the update type not found response
func (*UpdateTypeNotFound) WithPayload ¶
func (o *UpdateTypeNotFound) WithPayload(payload *models.Error) *UpdateTypeNotFound
WithPayload adds the payload to the update type not found response
func (*UpdateTypeNotFound) WriteResponse ¶
func (o *UpdateTypeNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateTypeOK ¶
UpdateTypeOK OK
swagger:response updateTypeOK
func NewUpdateTypeOK ¶
func NewUpdateTypeOK() *UpdateTypeOK
NewUpdateTypeOK creates UpdateTypeOK with default headers values
func (*UpdateTypeOK) SetPayload ¶
func (o *UpdateTypeOK) SetPayload(payload *ent.EventType)
SetPayload sets the payload to the update type o k response
func (*UpdateTypeOK) WithPayload ¶
func (o *UpdateTypeOK) WithPayload(payload *ent.EventType) *UpdateTypeOK
WithPayload adds the payload to the update type o k response
func (*UpdateTypeOK) WriteResponse ¶
func (o *UpdateTypeOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateTypeParams ¶
type UpdateTypeParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*ID of event category. Required: true In: path */ ID string /*Event category to update. Required: true In: body */ Type *ent.EventType }
UpdateTypeParams contains all the bound params for the update type operation typically these are obtained from a http.Request
swagger:parameters updateType
func NewUpdateTypeParams ¶
func NewUpdateTypeParams() UpdateTypeParams
NewUpdateTypeParams creates a new UpdateTypeParams object
There are no default values defined in the spec.
func (*UpdateTypeParams) BindRequest ¶
func (o *UpdateTypeParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewUpdateTypeParams() beforehand.
type UpdateTypeURL ¶
type UpdateTypeURL struct { ID string // contains filtered or unexported fields }
UpdateTypeURL generates an URL for the update type operation
func (*UpdateTypeURL) Build ¶
func (o *UpdateTypeURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateTypeURL) BuildFull ¶
func (o *UpdateTypeURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateTypeURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateTypeURL) SetBasePath ¶
func (o *UpdateTypeURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*UpdateTypeURL) String ¶
func (o *UpdateTypeURL) String() string
String returns the string representation of the path with query string
func (*UpdateTypeURL) StringFull ¶
func (o *UpdateTypeURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateTypeURL) WithBasePath ¶
func (o *UpdateTypeURL) WithBasePath(bp string) *UpdateTypeURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type UpdateTypeUnauthorized ¶
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
Source Files ¶
- create_type.go
- create_type_parameters.go
- create_type_responses.go
- create_type_urlbuilder.go
- delete_type.go
- delete_type_parameters.go
- delete_type_responses.go
- delete_type_urlbuilder.go
- list_type.go
- list_type_events.go
- list_type_events_parameters.go
- list_type_events_responses.go
- list_type_events_urlbuilder.go
- list_type_parameters.go
- list_type_responses.go
- list_type_urlbuilder.go
- read_type.go
- read_type_parameters.go
- read_type_responses.go
- read_type_urlbuilder.go
- update_type.go
- update_type_parameters.go
- update_type_responses.go
- update_type_urlbuilder.go