algolia

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package algolia provides an interface-compatible wrapper around the algolia indexer

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrEmptyQueryProvided indicates an empty query was provided as input.
	ErrEmptyQueryProvided = platformerrors.New("empty search query provided")
)
View Source
var (
	ErrNilConfig = platformerrors.New("nil config provided")
)

Functions

func ProvideIndexManager

func ProvideIndexManager[T any](
	logger logging.Logger,
	tracerProvider tracing.TracerProvider,
	cfg *Config,
	indexName string,
	circuitBreaker circuitbreaking.CircuitBreaker,
) (textsearch.Index[T], error)

Types

type Config

type Config struct {
	AppID   string        `env:"APP_ID"  json:"appID"`
	APIKey  string        `env:"API_KEY" json:"writeAPIKey"`
	Timeout time.Duration `env:"TIMEOUT" json:"timeout"`
}

Jump to

Keyboard shortcuts

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