Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ValidKinds = map[EntryKind]bool{ KindNote: true, KindDecision: true, KindBug: true, KindSolution: true, KindContext: true, KindSnippet: true, KindLearning: true, }
View Source
var ValidRelations = map[LinkRelation]bool{ RelRelatesTo: true, RelCausedBy: true, RelSupersedes: true, RelSolvedBy: true, RelDependsOn: true, RelPartOf: true, RelDerivedFrom: true, }
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 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"`
}
Click to show internal directories.
Click to hide internal directories.