tasklog

package
v0.0.42 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository interface {
	Create(ctx context.Context, log *TaskLog) error
	List(ctx context.Context, taskID string, taskIDs []string, limit, offset int) ([]*TaskLog, int, error)
	// DeleteByTaskID removes all task logs belonging to the given task.
	DeleteByTaskID(ctx context.Context, taskID string) (int, error)
	// CleanupOlderThan removes task log entries older than maxAge.
	// Returns the number of deleted entries.
	CleanupOlderThan(ctx context.Context, maxAge time.Duration) (int, error)
}

type Server

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

func NewServer

func NewServer(repo Repository, taskRepo task.Repository) *Server

type TaskLog

type TaskLog struct {
	ID        string            `json:"id"`
	ProjectID string            `json:"project_id"`
	TaskID    string            `json:"task_id"`
	Level     int32             `json:"level"`
	Category  int32             `json:"category"`
	Message   string            `json:"message"`
	Metadata  map[string]string `json:"metadata"`
	CreatedAt time.Time         `json:"created_at"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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