activity

package
v0.0.0-...-113e83d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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

type ActivityCreateEvent struct {
	Activity *entity.Activity
}

func (*ActivityCreateEvent) Name

type ActivityDeleteEvent

type ActivityDeleteEvent struct {
	ActivityID int64
}

func (*ActivityDeleteEvent) Name

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)
}

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

type ActivityUpdateEvent struct {
	Activity *entity.Activity
}

func (*ActivityUpdateEvent) Name

type AddIssueToActivityEvent

type AddIssueToActivityEvent struct {
	ActivityID int64
	IssueID    int64
}

func (*AddIssueToActivityEvent) Name

type AddServiceToActivityEvent

type AddServiceToActivityEvent struct {
	ActivityID int64
	ServiceID  int64
}

func (*AddServiceToActivityEvent) Name

type GetActivityEvent

type GetActivityEvent struct {
	ActivityID int64
	Activity   *entity.Activity
}

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

type RemoveIssueFromActivityEvent

type RemoveIssueFromActivityEvent struct {
	ActivityID int64
	IssueID    int64
}

func (*RemoveIssueFromActivityEvent) Name

type RemoveServiceFromActivityEvent

type RemoveServiceFromActivityEvent struct {
	ActivityID int64
	ServiceID  int64
}

func (*RemoveServiceFromActivityEvent) Name

Jump to

Keyboard shortcuts

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