activity

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Emitter

type Emitter struct {
	// contains filtered or unexported fields
}

func NewEmitter

func NewEmitter(recorder Recorder, events provider.EventProvider) *Emitter

func (*Emitter) Emit

type EntRecorder

type EntRecorder struct {
	Client *ent.Client
}

func (EntRecorder) RecordActivityEvent

func (r EntRecorder) RecordActivityEvent(ctx context.Context, input RecordInput) (catalogdomain.ActivityEvent, error)

type RecordFunc

func (RecordFunc) RecordActivityEvent

func (fn RecordFunc) RecordActivityEvent(ctx context.Context, input RecordInput) (catalogdomain.ActivityEvent, error)

type RecordInput

type RecordInput struct {
	ProjectID uuid.UUID
	TicketID  *uuid.UUID
	AgentID   *uuid.UUID
	EventType activityevent.Type
	Message   string
	Metadata  map[string]any
	CreatedAt time.Time
}

type Recorder

type Recorder interface {
	RecordActivityEvent(ctx context.Context, input RecordInput) (catalogdomain.ActivityEvent, error)
}

Jump to

Keyboard shortcuts

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