Documentation
¶
Overview ¶
Package openaire is the library behind the openaire command line: the HTTP client, request shaping, and typed data models for the OpenAIRE public search API (https://api.openaire.eu).
No API key is required. The Client paces requests, sets a real User-Agent, and retries transient failures (429 and 5xx).
Index ¶
Constants ¶
View Source
const Host = "api.openaire.eu"
Host is the API hostname.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client talks to the OpenAIRE API.
type Config ¶
type Config struct {
BaseURL string
UserAgent string
Rate time.Duration
Timeout time.Duration
Retries int
}
Config holds all tunable parameters for the Client.
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig returns a Config with sensible defaults.
type Domain ¶
type Domain struct{}
Domain is the openaire driver.
func (Domain) Info ¶
func (Domain) Info() kit.DomainInfo
Info describes the scheme, hostnames, and binary identity.
type Publication ¶
type Publication struct {
ID string `kit:"id" json:"id"`
Title string `json:"title"`
Authors string `json:"authors"`
Date string `json:"date"`
Publisher string `json:"publisher"`
Language string `json:"language"`
Access string `json:"access"`
Type string `json:"type"`
DOI string `json:"doi,omitempty"`
}
Publication holds data for a single publication, dataset, or software record.
Click to show internal directories.
Click to hide internal directories.