invenio1

package module
v0.0.0-...-bf53abb Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: AGPL-3.0 Imports: 16 Imported by: 2

README

Go bindings for Invenio 1
=========================

These Go binding allow to retrieve data from an Invenio 1 instance through
HTTP.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSubcodes

func GetSubcodes(subcode string, r Record, code string, filter Subfields) (result []string)

Types

type Connection

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

func NewConnection

func NewConnection(baseURL string, logger tbr_logging.Logger) Connection

func (Connection) GetInstitutes

func (c Connection) GetInstitutes(ctx context.Context) (records RecordSet, err error)

func (Connection) GetPeople

func (c Connection) GetPeople(ctx context.Context, query string) (records RecordSet, err error)

func (Connection) GetRecord

func (c Connection) GetRecord(ctx context.Context, recordID int) (record Record, err error)

func (Connection) GetRecords

func (c Connection) GetRecords(ctx context.Context, query string) (records RecordSet, err error)

func (Connection) Login

func (c Connection) Login(ctx context.Context, username, password, loginMethod string) error

func (Connection) Logout

func (c Connection) Logout(ctx context.Context) error

type Record

type Record map[string][]Subfields

type RecordSet

type RecordSet map[int]Record

RecordSet maps JuSER record IDs to the record itself

type Subfields

type Subfields map[string]string

Jump to

Keyboard shortcuts

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