Versions in this module Expand all Collapse all v0 v0.1.0 Jun 14, 2026 Changes in this version + const BaseURL + const DefaultUserAgent + const Host + type Class struct + HitDie int + Index string + Name string + type Client struct + HTTP *http.Client + Rate time.Duration + Retries int + UserAgent string + func NewClient() *Client + func (c *Client) Get(ctx context.Context, url string) ([]byte, error) + func (c *Client) GetMonster(ctx context.Context, index string) (*Monster, error) + func (c *Client) GetSpell(ctx context.Context, index string) (*Spell, error) + func (c *Client) ListClasses(ctx context.Context) ([]ListItem, error) + func (c *Client) ListMonsters(ctx context.Context, limit int) ([]ListItem, error) + func (c *Client) ListSpells(ctx context.Context, limit int) ([]ListItem, error) + 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 ListItem struct + Index string + Name string + URL string + type Monster struct + Alignment string + ArmorClass int + ChallengeRating float64 + Charisma int + Constitution int + Dexterity int + HitPoints int + Index string + Intelligence int + Name string + Size string + Strength int + Type string + Wisdom int + type Spell struct + CastingTime string + Classes []string + Components []string + Description []string + Duration string + Index string + Level int + Name string + Range string + School string