Help us shape the future of Go! Take the 2026 Go Developer Survey

brave

package
v0.2.49 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2026 License: MPL-2.0 Imports: 9 Imported by: 0

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

View Source
const DefaultURL = "https://api.search.brave.com/res/v1"

DefaultURL is the public API root. A search goes to webPath or newsPath under it.

View Source
const Name = "brave"

Name is the registered provider name.

View Source
const SecretName = "BRAVE_SEARCH_KEY"

SecretName is the tenant secret that holds the key.

Variables

This section is empty.

Functions

func New

New builds the adapter. The API root is the operator's to set (--web-search-brave-url); a rule never chooses it.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL