Documentation
¶
Overview ¶
Package billing queries a provider's wallet balance for the status line. The only documented shape today is DeepSeek's GET /user/balance, so Fetch speaks that schema. Balance is strictly optional: a provider with no balance_url is never queried — callers pass "" and get (nil, nil) back, and surfaces simply omit the readout. Kept tiny and dependency-free (net/http + encoding/json) so every frontend can share one fetch.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Balance ¶
type Balance struct {
Available bool // the provider reports the account can still serve API calls
Infos []Info // one entry per currency the provider returns
}
Balance is a wallet balance normalized for display.
Click to show internal directories.
Click to hide internal directories.