agentactivity

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const ActionPrefix = "agent_"

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Action     string
	FullAction string
	EntityID   string
	Details    map[string]any
	RawDetails string
	At         time.Time
}

type Store

type Store struct {
	DB      *sql.DB
	Table   string
	TimeCol string
	UserCol string
}

func (*Store) ListByEntity

func (s *Store) ListByEntity(ctx context.Context, entity string, limit int) ([]Entry, error)

func (*Store) ListByUser

func (s *Store) ListByUser(ctx context.Context, userID int64, limit int) ([]Entry, error)

Jump to

Keyboard shortcuts

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