golazy.dev
–
golazy.dev
/
lazymedia
/
jsonl
Index
|
Files
package jsonl ¶
import "golazy.dev/lazymedia/jsonl"
Types ¶
type JSONLRepository ¶
JSONLRepository stores variant metadata in an append-only JSONL log.
type JSONLRepository struct {
// contains filtered or unexported fields
}
func New ¶
New opens or creates an append-only JSONL variant repository.
func New(path string) (*JSONLRepository, error)
func (r *JSONLRepository) DeleteVariant ¶
func (r *JSONLRepository) DeleteVariant(ctx context.Context, sourceFileID, variantKey string, options ...any) ([]any, error)
func (r *JSONLRepository) FindVariant ¶
func (r *JSONLRepository) FindVariant(ctx context.Context, sourceFileID, variantKey string, options ...any) (lazymedia.Variant, []any, error)
func (r *JSONLRepository) SaveVariant ¶
func (r *JSONLRepository) SaveVariant(ctx context.Context, variant lazymedia.Variant, options ...any) (lazymedia.Variant, []any, error)
Package jsonl stores lazymedia repository records in an append-only JSONL file.