Documentation ¶
Index ¶
- func DefaultConfig() ejrnl.Config
- func EditEntry(driver ejrnl.Driver, id, tempDir string) error
- func Format(entry ejrnl.Entry) string
- func Import(path string, driver ejrnl.Driver) error
- func Init(driver ejrnl.Driver) error
- func ListEntries(driver ejrnl.Driver, count int) error
- func Listing(driver ejrnl.Driver) (map[time.Time]string, []time.Time, error)
- func MakeSalt(b int) string
- func NewEntry(driver ejrnl.Driver, tempDir string) error
- func Print(driver ejrnl.Driver, count int) error
- func Read(raw []byte) (ejrnl.Entry, error)
- func Rekey(oldDriver, newDriver ejrnl.Driver, journalDir, tempDir string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultConfig ¶
DefaultConfig returns the default configuration file.
func EditEntry ¶
EditEntry decrypts the specified entry and then opens the user's editor and saves the edits
func ListEntries ¶
ListEntries outputs the date and id of the most recent count of entries. If count <= 0, it outputs all of the entries
func Listing ¶
Listing gets a listing of all of the entries and sorts the listing's index by reverse chronological order
func NewEntry ¶
NewEntry creates a new entry in the expected format and then opens the user's editor for them to edit the entry.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.