remarkable

package
v0.0.0-...-fe92c74 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Remarkable

type Remarkable struct {
	Dir   string
	Items []RemarkableItem
}

func New

func New(dir string) Remarkable

func (*Remarkable) AddDir

func (Remarkable *Remarkable) AddDir(id string, name string, parent string) RemarkableItem

func (*Remarkable) Write

func (Remarkable *Remarkable) Write()

type RemarkableItem

type RemarkableItem struct {
	Id               string                `json:"-"`
	Type             string                `json:"type"`
	Parent           string                `json:"parent"`
	VisibleName      string                `json:"visibleName"`
	LastModified     string                `json:"lastModified"`
	Version          int64                 `json:"version"`
	Deleted          bool                  `json:"deleted"`
	MetadataModified bool                  `json:"metadataModified"`
	Modified         bool                  `json:"modified"`
	Pinned           bool                  `json:"pinned"`
	Synced           bool                  `json:"synced"`
	ContentType      string                `json:"-"`
	Content          RemarkableItemContent `json:"-"`
}

type RemarkableItemContent

type RemarkableItemContent struct {
	Content []byte          `json:"-"`
	Tags    []RemarkableTag `json:"tags"`
}

type RemarkableTag

type RemarkableTag struct {
	Name      string `json:"name"`
	Timestamp int64  `json:"timestamp"`
}

Jump to

Keyboard shortcuts

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