internal

package
v0.0.0-...-db577f7 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Endpoint string
	Token    string
	Config   *viper.Viper
}
func (app *App) CreateLink(url string) error

func (*App) CreateTag

func (app *App) CreateTag(tag string) error

func (*App) DeleteDocument

func (app *App) DeleteDocument(id string) error

func (*App) DownloadBook

func (app *App) DownloadBook(id string) error

func (*App) DownloadDocument

func (app *App) DownloadDocument(id string) error

func (*App) DownloadPaper

func (app *App) DownloadPaper(id string) error

func (*App) FindBookByID

func (app *App) FindBookByID(id string) (*Document, error)

func (*App) FindBooks

func (app *App) FindBooks() ([]*Document, error)

func (*App) FindDocumentByID

func (app *App) FindDocumentByID(id string) (*Document, error)

func (*App) FindDocuments

func (app *App) FindDocuments() ([]*Document, error)

func (*App) FindLinkByID

func (app *App) FindLinkByID(id string) (entity Link, err error)
func (app *App) FindLinks() ([]Link, error)

func (*App) FindPaperByID

func (app *App) FindPaperByID(id string) (*Document, error)

func (*App) FindPapers

func (app *App) FindPapers() ([]*Document, error)

func (*App) FindTags

func (app *App) FindTags() ([]Tag, error)

func (*App) GetAuthToken

func (app *App) GetAuthToken(username, password string) error

func (*App) SetConfigurationValue

func (app *App) SetConfigurationValue(key, value string) error

func (*App) TagBook

func (app *App) TagBook(id, tag string) error
func (app *App) TagLink(id, tag string) error

func (*App) TagMap

func (app *App) TagMap() (map[string]string, error)

func (*App) TagPaper

func (app *App) TagPaper(id, tag string) error

func (*App) UntagBook

func (app *App) UntagBook(id, tag string) error
func (app *App) UntagLink(id, tag string) error

func (*App) UntagPaper

func (app *App) UntagPaper(id, tag string) error

func (*App) UpdateDocument

func (app *App) UpdateDocument(id, displayName, description, docType string) error

func (*App) UploadBook

func (app *App) UploadBook(path, name string) error

func (*App) UploadPapers

func (app *App) UploadPapers(path, name string) error

type Document

type Document struct {
	ID          string     `json:"id" yaml:"id"`
	DisplayName string     `json:"display_name" yaml:"display_name"`
	Name        string     `json:"name" yaml:"name"`
	Path        string     `json:"path" yaml:"-"`
	Type        string     `json:"type" yaml:"type"`
	Description string     `json:"description" yaml:"description"`
	Tags        []string   `json:"tag_ids" yaml:"tags"`
	Created     time.Time  `json:"created" yaml:"created"`
	Updated     *time.Time `json:"updated" yaml:"updated"`
}
type Link struct {
	ID          string    `json:"id" yaml:"id"`
	Link        string    `json:"link" yaml:"link"`
	DisplayName string    `json:"display_name" yaml:"display_nam"`
	IconPath    string    `json:"icon_path" yaml:"-"`
	Tags        []string  `json:"tag_ids" yaml:"tags"`
	Created     time.Time `json:"created" yaml:"created"`
}

type Tag

type Tag struct {
	ID          string `json:"id"`
	DisplayName string `json:"display_name"`
	TagColor    string `json:"color"`
}

Jump to

Keyboard shortcuts

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