model

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Entry

type Entry struct {
	ID            string     `json:"id"`
	Kind          EntryKind  `json:"kind"`
	Title         string     `json:"title,omitempty"`
	Body          string     `json:"body"`
	BodyEncrypted bool       `json:"body_encrypted"`
	Importance    int        `json:"importance"`
	Source        string     `json:"source"`
	Project       string     `json:"project,omitempty"`
	CreatedAt     time.Time  `json:"created_at"`
	UpdatedAt     time.Time  `json:"updated_at"`
	DeletedAt     *time.Time `json:"deleted_at,omitempty"`
	Tags          []string   `json:"tags,omitempty"`
}

type EntryKind

type EntryKind string
const (
	KindNote     EntryKind = "note"
	KindDecision EntryKind = "decision"
	KindBug      EntryKind = "bug"
	KindSolution EntryKind = "solution"
	KindContext  EntryKind = "context"
	KindSnippet  EntryKind = "snippet"
	KindLearning EntryKind = "learning"
)

type Export

type Export struct {
	Version    int       `json:"version"`
	Entries    []Entry   `json:"entries"`
	Tags       []Tag     `json:"tags"`
	Links      []Link    `json:"links"`
	ExportedAt time.Time `json:"exported_at"`
}
type Link struct {
	ID          string       `json:"id"`
	FromEntryID string       `json:"from_entry_id"`
	ToEntryID   string       `json:"to_entry_id"`
	Relation    LinkRelation `json:"relation"`
	Weight      float64      `json:"weight"`
	Metadata    string       `json:"metadata,omitempty"`
	CreatedAt   time.Time    `json:"created_at"`
}

type LinkRelation

type LinkRelation string
const (
	RelRelatesTo   LinkRelation = "relates_to"
	RelCausedBy    LinkRelation = "caused_by"
	RelSupersedes  LinkRelation = "supersedes"
	RelSolvedBy    LinkRelation = "solved_by"
	RelDependsOn   LinkRelation = "depends_on"
	RelPartOf      LinkRelation = "part_of"
	RelDerivedFrom LinkRelation = "derived_from"
)

type Scan added in v0.2.0

type Scan struct {
	ID                string     `json:"id"`
	Project           string     `json:"project"`
	Source            string     `json:"source"`
	Status            string     `json:"status"`
	Summary           string     `json:"summary,omitempty"`
	SummaryEncrypted  bool       `json:"summary_encrypted"`
	Thoughts          string     `json:"thoughts,omitempty"`
	ThoughtsEncrypted bool       `json:"thoughts_encrypted"`
	EntriesCreated    int        `json:"entries_created"`
	StartedAt         time.Time  `json:"started_at"`
	CompletedAt       *time.Time `json:"completed_at,omitempty"`
}

type Tag

type Tag struct {
	ID        string    `json:"id"`
	Name      string    `json:"name"`
	Count     int       `json:"count,omitempty"`
	CreatedAt time.Time `json:"created_at"`
}

Jump to

Keyboard shortcuts

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