Discover Packages
github.com/dnote/dnote
infra
package
Version:
v0.2.0-beta.1
Opens a new window with list of versions in this module.
Published: Jan 14, 2018
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package infra defines dnote structure
type Book struct {
Name string `json:"name"`
Notes []Note `json:"notes"`
}
Book holds a metadata and its notes
Config holds dnote configuration
Dnote holds the whole dnote data
DnoteCtx is a context holding the information of the current runtime
type Note struct {
UUID string `json:"uuid"`
Content string `json:"content"`
AddedOn int64 `json:"added_on"`
EditedOn int64 `json:"edited_on"`
}
Note represents a single microlesson
type Timestamp struct {
LastUpgrade int64 `yaml:"last_upgrade"`
Bookmark int `yaml:"bookmark"`
LastAction int64 `yaml:"last_action"`
}
Timestamp holds time information
Source Files
¶
Click to show internal directories.
Click to hide internal directories.