# README

Algolia Search Library for Go

This is a wrapper library for the Algolia Search API, designed to make it easier to integrate Algolia into Go applications. It provides a simple and intuitive interface for indexing and searching data in Algolia.

Installation

You can install the Algolia Search wrapper for Go using go get:

go get -u github.com/SimifiniiCTO/backend-core-lib/third-party/algoliasearch

Usage

To use the Algolia Search wrapper, you first need to create a client instance:

import "github.com/SimifiniiCTO/backend-core-lib/third-party/algoliasearch"

opts := []algoliasearch.Options{
    algoliasearch.WithAlgoliaSearchApplicationID("salfhgjdahgjlsdhg"),
    algoliasearch.WithAlgoliaSearchAPIKey("sdlhgjhzdgjsdhgsd"),
    algoliasearch.WithAlgoliaSearchIndexName("test")
}

client, err := algoliasearch.New(opts...)
if err != nil {
    ....
}

# Functions

NewClient creates a new algolia search handler.
WithAlgoliaSearchAPIKey sets the api key for the algolia search handler.
WithAlgoliaSearchApplicationID sets the application id for the algolia search handler.
WithAlgoliaSearchIndexName sets the index name for the algolia search handler.
WithAlgoliaSearchTelemetrySDK sets the telemetry sdk for the algolia search handler.

# Variables

ErrMissingAPIKey is returned when the api key is missing.
ErrMissingApplicationID is returned when the application id is missing.
ErrMissingIndexName is returned when the index name is missing.
ErrMissingObjectID is returned when the object id is missing.
ErrMissingTelemetrySDK is returned when the telemetry sdk is missing.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author

# Type aliases

Option is a function that configures the algolia search handler.