algolia

package
v0.0.0-...-98cd694 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Unlicense 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 = errors.New("empty search query provided")
)

Functions

func ProvideIndexManager

func ProvideIndexManager[T search.Searchable](
	_ context.Context,
	logger logging.Logger,
	tracerProvider tracing.TracerProvider,
	cfg *Config,
	indexName string,
) (search.Index[T], error)

Types

type Config

type Config struct {
	AppID   string        `json:"appID"       toml:"app_id,omitempty"`
	APIKey  string        `json:"writeAPIKey" toml:"write_api_key,omitempty"`
	Timeout time.Duration `json:"timeout"     toml:"timeout,omitempty"`
}

Jump to

Keyboard shortcuts

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