storage

package
v0.0.0-...-44fbbaf Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attachment

type Attachment struct {
	Key         string
	Version     uint
	ContentType string
	Filename    string
}

type Item

type Item struct {
	Key         string
	Version     uint
	Title       string
	Abstract    string
	ItemType    string
	Creators    []zotero.Creator
	Attachments []Attachment
}

type Library

type Library struct {
	Version uint
	Items   []Item
}

type SearchResults

type SearchResults struct {
	Term  string
	Items []SearchResultsItem
}

type SearchResultsItem

type SearchResultsItem struct {
	Key         string
	Filename    string
	ContentType string
}

type Storage

type Storage struct {
	Data StoredData
	// contains filtered or unexported fields
}

func New

func New(filename string) Storage

func (*Storage) Drop

func (s *Storage) Drop() (err error)

func (*Storage) Load

func (s *Storage) Load() error

func (*Storage) Persist

func (s *Storage) Persist() error

type StoredData

type StoredData struct {
	Lib    Library
	Search *SearchResults
}

Jump to

Keyboard shortcuts

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