repo

package
v0.0.0-...-4b8b8d6 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoadingState

type LoadingState int
const (
	Bare LoadingState = iota + 1
	Loading
	Loaded
)

type Repo

type Repo struct {
	// contains filtered or unexported fields
}

func New

func New() *Repo

func (*Repo) AddNote

func (r *Repo) AddNote(note *note.Note)

func (*Repo) CheckDir

func (r *Repo) CheckDir() error

func (*Repo) LoadNotes

func (r *Repo) LoadNotes() error

func (*Repo) LoadingState

func (r *Repo) LoadingState() LoadingState

func (*Repo) Notes

func (r *Repo) Notes() [](*note.Note)

func (*Repo) NotesSrcDir

func (r *Repo) NotesSrcDir() (string, error)

func (*Repo) PathIfStored

func (r *Repo) PathIfStored(note *note.Note) (string, error)

func (*Repo) Sync

func (r *Repo) Sync(newOnly bool) error

Jump to

Keyboard shortcuts

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