Help us shape the future of Go! Take the 2026 Go Developer Survey

tasklog

package
v0.0.68 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DescriptionLoggerAdapter added in v0.0.54

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

DescriptionLoggerAdapter implements task.DescriptionLogger using the tasklog repository.

func NewDescriptionLoggerAdapter added in v0.0.54

func NewDescriptionLoggerAdapter(repo Repository, eventBus *eventbus.Bus) *DescriptionLoggerAdapter

func (*DescriptionLoggerAdapter) LogDescriptionChange added in v0.0.54

func (a *DescriptionLoggerAdapter) LogDescriptionChange(ctx context.Context, projectID, taskID, newDescription string) error

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