zotero

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: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxLimit = 100
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Creator

type Creator struct {
	FirstName string `json:"firstName"`
	LastName  string `json:"lastName"`
}

type ErrJSON

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

func NewErrJSON

func NewErrJSON(err error) *ErrJSON

func (*ErrJSON) Error

func (e *ErrJSON) Error() string

func (*ErrJSON) Is

func (*ErrJSON) Is(e errSpec) bool

func (*ErrJSON) Unwrap

func (w *ErrJSON) Unwrap() error

func (*ErrJSON) Wrap

func (e *ErrJSON) Wrap(cause error) error

type ErrMakeReq

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

func NewErrMakeReq

func NewErrMakeReq(req http.Request, err error) *ErrMakeReq

func (*ErrMakeReq) Error

func (e *ErrMakeReq) Error() string

func (*ErrMakeReq) Is

func (*ErrMakeReq) Is(e errSpec) bool

func (*ErrMakeReq) Unwrap

func (w *ErrMakeReq) Unwrap() error

func (*ErrMakeReq) Wrap

func (e *ErrMakeReq) Wrap(cause error) error

type ErrParseHeader

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

func NewErrParseHeader

func NewErrParseHeader(header string, err error) *ErrParseHeader

func (*ErrParseHeader) Error

func (e *ErrParseHeader) Error() string

func (*ErrParseHeader) Is

func (*ErrParseHeader) Is(e errSpec) bool

func (*ErrParseHeader) Unwrap

func (w *ErrParseHeader) Unwrap() error

func (*ErrParseHeader) Wrap

func (e *ErrParseHeader) Wrap(cause error) error

type ErrReadBody

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

func NewErrReadBody

func NewErrReadBody(err error) *ErrReadBody

func (*ErrReadBody) Error

func (e *ErrReadBody) Error() string

func (*ErrReadBody) Is

func (*ErrReadBody) Is(e errSpec) bool

func (*ErrReadBody) Unwrap

func (w *ErrReadBody) Unwrap() error

func (*ErrReadBody) Wrap

func (e *ErrReadBody) Wrap(cause error) error

type ErrWrongStatus

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

func NewErrWrongStatus

func NewErrWrongStatus(recv int, exp int) *ErrWrongStatus

func (*ErrWrongStatus) Error

func (e *ErrWrongStatus) Error() string

func (*ErrWrongStatus) Is

func (*ErrWrongStatus) Is(e errSpec) bool

type ErrWrongURL

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

func NewErrWrongURL

func NewErrWrongURL(url string, err error) *ErrWrongURL

func (*ErrWrongURL) Error

func (e *ErrWrongURL) Error() string

func (*ErrWrongURL) Is

func (*ErrWrongURL) Is(e errSpec) bool

func (*ErrWrongURL) Unwrap

func (w *ErrWrongURL) Unwrap() error

func (*ErrWrongURL) Wrap

func (e *ErrWrongURL) Wrap(cause error) error

type Item

type Item struct {
	Key     string   `json:"key"`
	Version uint     `json:"version"`
	Data    ItemData `json:"data"`
}

type ItemData

type ItemData struct {
	Title       string    `json:"title"`
	Abstract    string    `json:"abstractNote"`
	ItemType    string    `json:"itemType"`
	Creators    []Creator `json:"creators"`
	ParentKey   string    `json:"parentItem,omitempty"`
	ContentType string    `json:"contentType,omitempty"`
	Filename    string    `json:"filename,omitempty"`
}

type ItemsResult

type ItemsResult struct {
	Items   []Item
	Version uint
}

type Zotero

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

func New

func New(key string) (*Zotero, error)

func (*Zotero) AllItems

func (z *Zotero) AllItems() (ItemsResult, error)

func (*Zotero) Items

func (z *Zotero) Items(start, limit uint) (*ItemsResult, bool, error)

Jump to

Keyboard shortcuts

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