Documentation
¶
Overview ¶
Package meaninglabelsfile keeps a local project's Meaning Graph label document at <project>/datatug-labels.json and its audit trail at <project>/.datatug/audit/labels.jsonl. It implements the core meaninglabels.Store interface, so a later move to the DALgo project store changes only which Store the edge composes.
Index ¶
Constants ¶
View Source
const FileName = "datatug-labels.json"
FileName is the label document's name in the project root.
Variables ¶
View Source
var AuditPath = filepath.Join(".datatug", "audit", "labels.jsonl")
AuditPath is the audit trail's path relative to the project root.
Functions ¶
This section is empty.
Types ¶
type AuditRecord ¶
type AuditRecord struct {
meaninglabels.Event
// Columns lists revealed columns for meaning.field.revealed_locally; it
// never holds values.
Columns []string `json:"columns,omitempty"`
}
AuditRecord is one line of the local audit trail.
type Store ¶
type Store struct {
Dir string
}
Store is the file-backed label store of one project directory.
func (Store) Append ¶
func (s Store) Append(record AuditRecord) error
Append adds one record to the project's audit trail.
Click to show internal directories.
Click to hide internal directories.