Documentation
¶
Index ¶
- type Activity
- func (a *Activity) WithAlertID(alertID types.AlertID) *Activity
- func (a *Activity) WithCommentID(commentID types.CommentID) *Activity
- func (a *Activity) WithMetadata(key string, value any) *Activity
- func (a *Activity) WithTicketID(ticketID types.TicketID) *Activity
- func (a *Activity) WithUserID(userID string) *Activity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Activity ¶
type Activity struct {
ID types.ActivityID
Type types.ActivityType
UserID string
AlertID types.AlertID
TicketID types.TicketID
CommentID types.CommentID
CreatedAt time.Time
Metadata map[string]any
}
func New ¶
func New(activityType types.ActivityType) *Activity
func (*Activity) WithCommentID ¶
func (*Activity) WithUserID ¶
Click to show internal directories.
Click to hide internal directories.