Documentation
¶
Overview ¶
Package brave is the Brave Search adapter for txco://web/search: the Web Search API for kind web and the News Search API for kind news, one GET with the tenant's key in X-Subscription-Token. Both are on the same plan and key.
Brave's own parameter list is the authority on which countries and languages it serves. The adapter carries only the spellings where Brave departs from ISO 639-1, and lets Brave refuse the rest: a 422 comes back to the rule as txco_web_invalid_request, unbilled on Brave's side, which bills successful requests only.
Index ¶
Constants ¶
const DefaultURL = "https://api.search.brave.com/res/v1"
DefaultURL is the public API root. A search goes to webPath or newsPath under it.
const Name = "brave"
Name is the registered provider name.
const SecretName = "BRAVE_SEARCH_KEY"
SecretName is the tenant secret that holds the key.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.