Documentation ¶
Index ¶
Constants ¶
View Source
const ( ListComponentInstancesEventName event.EventName = "ListComponentInstances" CreateComponentInstanceEventName event.EventName = "CreateComponentInstance" UpdateComponentInstanceEventName event.EventName = "UpdateComponentInstance" DeleteComponentInstanceEventName event.EventName = "DeleteComponentInstance" ListCcrnEventName event.EventName = "ListCcrn" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComponentInstanceHandler ¶
type ComponentInstanceHandler interface { ListComponentInstances(*entity.ComponentInstanceFilter, *entity.ListOptions) (*entity.List[entity.ComponentInstanceResult], error) CreateComponentInstance(*entity.ComponentInstance) (*entity.ComponentInstance, error) UpdateComponentInstance(*entity.ComponentInstance) (*entity.ComponentInstance, error) DeleteComponentInstance(int64) error ListCcrns(filter *entity.ComponentInstanceFilter, options *entity.ListOptions) ([]string, error) }
func NewComponentInstanceHandler ¶
func NewComponentInstanceHandler(database database.Database, eventRegistry event.EventRegistry) ComponentInstanceHandler
type ComponentInstanceHandlerError ¶
type ComponentInstanceHandlerError struct {
// contains filtered or unexported fields
}
func NewComponentInstanceHandlerError ¶
func NewComponentInstanceHandlerError(message string) *ComponentInstanceHandlerError
func (*ComponentInstanceHandlerError) Error ¶
func (e *ComponentInstanceHandlerError) Error() string
type CreateComponentInstanceEvent ¶
type CreateComponentInstanceEvent struct {
ComponentInstance *entity.ComponentInstance
}
func (*CreateComponentInstanceEvent) Name ¶
func (e *CreateComponentInstanceEvent) Name() event.EventName
type DeleteComponentInstanceEvent ¶
type DeleteComponentInstanceEvent struct {
ComponentInstanceID int64
}
func (*DeleteComponentInstanceEvent) Name ¶
func (e *DeleteComponentInstanceEvent) Name() event.EventName
type ListCcrnEvent ¶
type ListCcrnEvent struct { Filter *entity.ComponentInstanceFilter Ccrn []string }
func (*ListCcrnEvent) Name ¶
func (e *ListCcrnEvent) Name() event.EventName
type ListComponentInstancesEvent ¶
type ListComponentInstancesEvent struct { Filter *entity.ComponentInstanceFilter Options *entity.ListOptions ComponentInstances *entity.List[entity.ComponentInstanceResult] }
func (*ListComponentInstancesEvent) Name ¶
func (e *ListComponentInstancesEvent) Name() event.EventName
type UpdateComponentInstanceEvent ¶
type UpdateComponentInstanceEvent struct {
ComponentInstance *entity.ComponentInstance
}
func (*UpdateComponentInstanceEvent) Name ¶
func (e *UpdateComponentInstanceEvent) Name() event.EventName
Click to show internal directories.
Click to hide internal directories.