Versions in this module Expand all Collapse all v0 v0.1.0 Jun 14, 2026 Changes in this version + const DefaultBaseURL + const DefaultUserAgent + const Host + var ErrNotFound = fmt.Errorf("not found") + type Client struct + 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) Info(ctx context.Context, module, version string) (*ModuleInfo, error) + func (c *Client) Latest(ctx context.Context, module string) (*ModuleInfo, error) + func (c *Client) Mod(ctx context.Context, module, version string) (*ModContent, error) + func (c *Client) Versions(ctx context.Context, module string) ([]string, 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 ModContent struct + Content string + Module string + Version string + type ModuleInfo struct + Module string + Time string + Version string