Versions in this module Expand all Collapse all v0 v0.1.0 Jun 15, 2026 Changes in this version + const BaseURL + const DefaultUserAgent + const Host + type CategoryInfo struct + ID string + Name string + type Client struct + BaseURL string + HTTP *http.Client + Rate time.Duration + Retries int + UserAgent string + func NewClient() *Client + func (c *Client) Get(ctx context.Context, rawURL string) ([]byte, error) + func (c *Client) GetCategories(ctx context.Context) ([]*CategoryInfo, error) + func (c *Client) GetQuestions(ctx context.Context, limit int, categories, difficulty string) ([]*Question, error) + type Config struct + 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 Question struct + Category string + CorrectAnswer string + Difficulty string + ID string + IncorrectAnswers []string + IsNiche bool + Question string + Tags []string + Type string