common

package
v0.0.0-...-09b491c Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package common provides functionality shared by all Remarkable devices

Index

Constants

View Source
const (
	ExtPDF  = ".pdf"
	ExtEPUB = ".epub"
)

Supported file extensions

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

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

Device denotes a generic device (independent of exact model)

func NewDevice

func NewDevice(dataPath string) *Device

NewDevice instantiates a new generic device

func (*Device) Download

func (d *Device) Download(id string) (*device.Document, error)

Download retrieves a file (PDF / ePUB) from the device tree

func (*Device) FileTree

func (d *Device) FileTree() (*device.Tree, error)

FileTree returns a tree structure of all files on the device

func (*Device) Upload

func (d *Device) Upload(docs ...device.Document) error

Upload uploads a file (PDF / ePUB) to the device tree

Jump to

Keyboard shortcuts

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