Documentation
¶
Overview ¶
Package imoshortlist is the library behind the imoslx command: the HTTP client, request shaping, and the typed data models for IMO Shortlist PDFs.
The client probes PDF availability with HEAD requests at https://www.imo-official.org/problems/IMO{YEAR}SL.pdf No authentication is required. It sets a real User-Agent, paces requests, and retries transient 429/5xx errors with exponential back-off.
Index ¶
Constants ¶
const Host = "www.imo-official.org"
Host is the IMO official site host.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client talks to imo-official.org via HEAD requests to check PDF availability.
type Config ¶
type Config struct {
BaseURL string
UserAgent string
Rate time.Duration
Timeout time.Duration
Retries int
MinYear int
MaxYear int
}
Config holds constructor parameters for the Client.
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig returns sensible production defaults.
type Domain ¶
type Domain struct{}
Domain is the imoshortlist driver. It carries no state.
func (Domain) Info ¶
func (Domain) Info() kit.DomainInfo
Info describes the scheme, accepted hostnames, and the binary identity.