activity

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

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

func (a *Activity) WithAlertID(alertID types.AlertID) *Activity

func (*Activity) WithCommentID

func (a *Activity) WithCommentID(commentID types.CommentID) *Activity

func (*Activity) WithMetadata

func (a *Activity) WithMetadata(key string, value any) *Activity

func (*Activity) WithTicketID

func (a *Activity) WithTicketID(ticketID types.TicketID) *Activity

func (*Activity) WithUserID

func (a *Activity) WithUserID(userID string) *Activity

Jump to

Keyboard shortcuts

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