Documentation
¶
Index ¶
- func Files(ctx context.Context, db bun.IDB, id, content string) error
- func Items(ctx context.Context, db bun.IDB, items []domain.Item) error
- func Process(ctx context.Context, db bun.IDB, input Input) *run
- func Resolve(ctx context.Context, db bun.IDB, target string) (string, string, error)
- type Input
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Files ¶
Files links the note id to the images its content cites, in place of those it cited. Those of its account only: a note may cite the address of another account's.
func Items ¶
Items runs Process on the notes among items that a trash or a restore just changed: the [[links]] waiting for their title may now name one note only.
func Process ¶
Process makes the [[links]] of a note that name exactly one note point to its id, links the note to the notes its text points to, gives the links to it its new title, and resolves the [[links]] of the other notes that were waiting for its title. It also keeps the note's notes_on_files.
Types ¶
Click to show internal directories.
Click to hide internal directories.