Versions in this module Expand all Collapse all v0 v0.1.0 Jun 15, 2026 Changes in this version + const DefaultUserAgent + const Host + type Client struct + HTTP *http.Client + Rate time.Duration + Retries int + UserAgent string + func NewClient() *Client + func NewClientWithConfig(cfg Config) *Client + func (c *Client) FetchSamples(ctx context.Context, ids []string) ([]*Sample, error) + func (c *Client) Get(ctx context.Context, rawURL string) ([]byte, error) + func (c *Client) GetSample(ctx context.Context, uid string) (*Sample, error) + func (c *Client) Search(ctx context.Context, query string, limit, start int) ([]string, int, error) + func (c *Client) SearchAndFetch(ctx context.Context, query string, limit, start int) ([]*Sample, int, error) + type Config struct + APIKey string + BaseURL string + Rate time.Duration + Retries int + Timeout time.Duration + UserAgent string + func DefaultConfig() Config + type Domain struct + func (Domain) Classify(input string) (uriType, id string, err error) + func (Domain) Info() kit.DomainInfo + func (Domain) Locate(uriType, id string) (string, error) + func (Domain) Register(app *kit.App) + type Sample struct + Accession string + ID string + Organism string + Organization string + PublicationDate string + Status string + SubmissionDate string + TaxID string + Title string