zotero

package
v0.0.0-...-2e1bc12 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsCmdDefined

func IsCmdDefined(cmdName string) bool

func TryKillProcess

func TryKillProcess(pid int)

Types

type Manager

type Manager struct {
	// Override in tests to use a mock server
	BaseURL string
	// contains filtered or unexported fields
}

Manager provides reference management using Zotero Translation Server. See https://github.com/zotero/translation-server

func NewManager

func NewManager() (*Manager, error)

func (*Manager) IsPortOpen

func (m *Manager) IsPortOpen() bool

IsPortOpen checks if the container port is open.

func (*Manager) Ready

func (m *Manager) Ready() (bool, error)

func (*Manager) Search

func (m *Manager) Search(query string) ([]reference.Result, error)

type Result

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

func (*Result) Attributes

func (r *Result) Attributes() map[string]any

func (*Result) Description

func (r *Result) Description() string

Jump to

Keyboard shortcuts

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