Documentation ¶
Index ¶
- Constants
- type ActivityCreateEvent
- type ActivityDeleteEvent
- type ActivityHandler
- type ActivityHandlerError
- type ActivityUpdateEvent
- type AddIssueToActivityEvent
- type AddServiceToActivityEvent
- type GetActivityEvent
- type ListActivitiesEvent
- type RemoveIssueFromActivityEvent
- type RemoveServiceFromActivityEvent
Constants ¶
View Source
const ( ActivityCreateEventName event.EventName = "ActivityCreate" ActivityUpdateEventName event.EventName = "ActivityUpdate" ActivityDeleteEventName event.EventName = "ActivityDelete" AddServiceToActivityEventName event.EventName = "AddServiceToActivity" RemoveServiceFromActivityEventName event.EventName = "RemoveServiceFromActivity" AddIssueToActivityEventName event.EventName = "AddIssueToActivity" RemoveIssueFromActivityEventName event.EventName = "RemoveIssueFromActivity" ListActivitiesEventName event.EventName = "ListActivities" GetActivityEventName event.EventName = "GetActivity" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivityCreateEvent ¶
func (*ActivityCreateEvent) Name ¶
func (a *ActivityCreateEvent) Name() event.EventName
type ActivityDeleteEvent ¶
type ActivityDeleteEvent struct {
ActivityID int64
}
func (*ActivityDeleteEvent) Name ¶
func (a *ActivityDeleteEvent) Name() event.EventName
type ActivityHandler ¶
type ActivityHandler interface { ListActivities(*entity.ActivityFilter, *entity.ListOptions) (*entity.List[entity.ActivityResult], error) GetActivity(int64) (*entity.Activity, error) CreateActivity(*entity.Activity) (*entity.Activity, error) UpdateActivity(*entity.Activity) (*entity.Activity, error) DeleteActivity(int64) error AddServiceToActivity(int64, int64) (*entity.Activity, error) RemoveServiceFromActivity(int64, int64) (*entity.Activity, error) AddIssueToActivity(int64, int64) (*entity.Activity, error) RemoveIssueFromActivity(int64, int64) (*entity.Activity, error) }
func NewActivityHandler ¶
func NewActivityHandler(db database.Database, er event.EventRegistry) ActivityHandler
type ActivityHandlerError ¶
type ActivityHandlerError struct {
// contains filtered or unexported fields
}
func NewActivityHandlerError ¶
func NewActivityHandlerError(msg string) *ActivityHandlerError
func (*ActivityHandlerError) Error ¶
func (e *ActivityHandlerError) Error() string
type ActivityUpdateEvent ¶
func (*ActivityUpdateEvent) Name ¶
func (a *ActivityUpdateEvent) Name() event.EventName
type AddIssueToActivityEvent ¶
func (*AddIssueToActivityEvent) Name ¶
func (a *AddIssueToActivityEvent) Name() event.EventName
type AddServiceToActivityEvent ¶
func (*AddServiceToActivityEvent) Name ¶
func (a *AddServiceToActivityEvent) Name() event.EventName
type GetActivityEvent ¶
func (*GetActivityEvent) Name ¶
func (g *GetActivityEvent) Name() event.EventName
type ListActivitiesEvent ¶
type ListActivitiesEvent struct { Filter *entity.ActivityFilter Options *entity.ListOptions Activities *entity.List[entity.ActivityResult] }
func (*ListActivitiesEvent) Name ¶
func (l *ListActivitiesEvent) Name() event.EventName
type RemoveIssueFromActivityEvent ¶
func (*RemoveIssueFromActivityEvent) Name ¶
func (a *RemoveIssueFromActivityEvent) Name() event.EventName
type RemoveServiceFromActivityEvent ¶
func (*RemoveServiceFromActivityEvent) Name ¶
func (a *RemoveServiceFromActivityEvent) Name() event.EventName
Click to show internal directories.
Click to hide internal directories.