Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

coveooss/go-coveo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-coveo

Build Status Go Report

go-coveo is a Go client library for accessing the Coveo Search API and the Coveo Usage Analytics API

Analytics client documentation

https://godoc.org/github.com/coveo/go-coveo/analytics

Example usage

import "github.com/coveo/go-coveo/analytics"

uaConfig := analytics.Config {
    Token: "My_Token", 
    UserAgent: "Some UserAgent", 
    IP: "Some IP", 
    Endpoint: "https://my.analytics.endpoint.com"
}
uaClient := analytics.NewClient(uaConfig)
searchEvent := analytics.NewSearchEvent()
searchEvent.SearchQueryUID = "myQueryUID"
if err := uaClient.SendSearchEvent(searchEvent); err != nil {
    // Error
}
...

Search client documentation

https://godoc.org/github.com/coveo/go-coveo/search

Example usage

import "github.com/coveo/go-coveo/search"

searchConfig := search.Config {
    Token: "My_Token", 
    UserAgent: "Some UserAgent", 
    Endpoint: "https://my.endpoint.com"
}
searchClient, err := search.NewClient(searchConfig)
if response, err = searchClient.Query(myQuery); err != nil {
    // Error
}
...

About

go-coveo is a Go client library for accessing the Coveo Api

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages