Documentation ¶
Index ¶
Constants ¶
View Source
const ( ListComponentVersionsEventName event.EventName = "ListComponentVersions" CreateComponentVersionEventName event.EventName = "CreateComponentVersion" UpdateComponentVersionEventName event.EventName = "UpdateComponentVersion" DeleteComponentVersionEventName event.EventName = "DeleteComponentVersion" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComponentVersionHandler ¶
type ComponentVersionHandler interface { ListComponentVersions(*entity.ComponentVersionFilter, *entity.ListOptions) (*entity.List[entity.ComponentVersionResult], error) CreateComponentVersion(*entity.ComponentVersion) (*entity.ComponentVersion, error) UpdateComponentVersion(*entity.ComponentVersion) (*entity.ComponentVersion, error) DeleteComponentVersion(int64) error }
func NewComponentVersionHandler ¶
func NewComponentVersionHandler(database database.Database, eventRegistry event.EventRegistry) ComponentVersionHandler
type ComponentVersionHandlerError ¶
type ComponentVersionHandlerError struct {
// contains filtered or unexported fields
}
func NewComponentVersionHandlerError ¶
func NewComponentVersionHandlerError(message string) *ComponentVersionHandlerError
func (*ComponentVersionHandlerError) Error ¶
func (e *ComponentVersionHandlerError) Error() string
type CreateComponentVersionEvent ¶
type CreateComponentVersionEvent struct {
ComponentVersion *entity.ComponentVersion
}
func (*CreateComponentVersionEvent) Name ¶
func (e *CreateComponentVersionEvent) Name() event.EventName
type DeleteComponentVersionEvent ¶
type DeleteComponentVersionEvent struct {
ComponentVersionID int64
}
func (*DeleteComponentVersionEvent) Name ¶
func (e *DeleteComponentVersionEvent) Name() event.EventName
type ListComponentVersionsEvent ¶
type ListComponentVersionsEvent struct { Filter *entity.ComponentVersionFilter Options *entity.ListOptions ComponentVersions *entity.List[entity.ComponentVersionResult] }
func (*ListComponentVersionsEvent) Name ¶
func (e *ListComponentVersionsEvent) Name() event.EventName
type UpdateComponentVersionEvent ¶
type UpdateComponentVersionEvent struct {
ComponentVersion *entity.ComponentVersion
}
func (*UpdateComponentVersionEvent) Name ¶
func (e *UpdateComponentVersionEvent) Name() event.EventName
Click to show internal directories.
Click to hide internal directories.