Documentation
¶
Index ¶
Constants ¶
View Source
const (
ProviderBrave = "brave"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResultItem ¶
type SearchRequest ¶
func (SearchRequest) Normalize ¶
func (r SearchRequest) Normalize() SearchRequest
type SearchResult ¶
type SearchResult struct {
Provider string `json:"provider"`
Query string `json:"query"`
Results []ResultItem `json:"results"`
Sources []ResultItem `json:"sources,omitempty"`
}
func Search ¶
func Search(ctx context.Context, provider string, apiKey string, req SearchRequest) (SearchResult, error)
Click to show internal directories.
Click to hide internal directories.