Documentation
¶
Index ¶
- type JSONLRepository
- func (r *JSONLRepository) CleanupOlderThan(ctx context.Context, maxAge time.Duration) (int, error)
- func (r *JSONLRepository) Close()
- func (r *JSONLRepository) Create(ctx context.Context, l *tasklog.TaskLog) error
- func (r *JSONLRepository) DeleteByTaskID(ctx context.Context, taskID string) (int, error)
- func (r *JSONLRepository) List(ctx context.Context, taskID string, taskIDs []string, limit, offset int) ([]*tasklog.TaskLog, int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONLRepository ¶ added in v0.0.41
type JSONLRepository struct {
// contains filtered or unexported fields
}
JSONLRepository implements tasklog.Repository using JSONL files on the local filesystem.
func NewJSONLRepository ¶ added in v0.0.41
func NewJSONLRepository(baseDir string) *JSONLRepository
func (*JSONLRepository) CleanupOlderThan ¶ added in v0.0.41
func (*JSONLRepository) Close ¶ added in v0.0.41
func (r *JSONLRepository) Close()
Close closes all open turn file handles.
func (*JSONLRepository) DeleteByTaskID ¶ added in v0.0.41
Click to show internal directories.
Click to hide internal directories.