Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attributes ¶
type Attributes struct {
Timestamp string `xml:"timestamp"`
Filename string `xml:"file-name"`
SourceUrl string `xml:"source-url"`
}
Attributes of the resource
type Data ¶
type Data struct {
XMLName xml.Name `xml:"data"`
Encoding string `xml:"encoding,attr"`
Content []byte `xml:",innerxml"`
}
Data object in base64
type Decoder ¶ added in v0.19.0
type Decoder struct {
// contains filtered or unexported fields
}
func NewDecoder ¶ added in v0.19.0
type Export ¶
type Export struct {
XMLName xml.Name `xml:"en-export"`
Date string `xml:"export-date,attr"`
Notes []Note `xml:"note"`
}
Export represents Evernote enex file structure
type Note ¶
type Note struct {
XMLName xml.Name `xml:"note"`
Title string `xml:"title"`
Content []byte `xml:"content"`
Updated string `xml:"updated"`
Created string `xml:"created"`
Tags []string `xml:"tag"`
Attributes NoteAttributes `xml:"note-attributes"`
Resources []Resource `xml:"resource"`
}
Note is one note in Evernote
type NoteAttributes ¶ added in v0.16.0
type NoteAttributes struct {
Source string `xml:"source"`
SourceApplication string `xml:"source-application"`
Latitude string `xml:"latitude"`
Longitude string `xml:"longitude"`
Altitude string `xml:"altitude"`
Author string `xml:"author"`
SourceUrl string `xml:"source-url"`
}
NoteAttributes contain the note metadata
type Recognition ¶
type Recognition struct {
XMLName xml.Name `xml:"recoIndex"`
ObjID string `xml:"objID,attr"`
ObjType string `xml:"objType,attr"`
}
Recognition for the resource
type Resource ¶
type Resource struct {
ID string
Type string
Data Data `xml:"data"`
Mime string `xml:"mime"`
Width int `xml:"width"`
Height int `xml:"height"`
Attributes Attributes `xml:"resource-attributes"`
Recognition []byte `xml:"recognition"`
}
Resource embedded in the note
type StreamDecoder ¶ added in v0.19.0
type StreamDecoder struct {
// contains filtered or unexported fields
}
func NewStreamDecoder ¶ added in v0.19.0
func NewStreamDecoder(r io.Reader) (*StreamDecoder, error)
func (StreamDecoder) Next ¶ added in v0.19.0
func (d StreamDecoder) Next(n *Note) error
Click to show internal directories.
Click to hide internal directories.