Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ElasticsearchProvider represents the elasticsearch search index provider. ElasticsearchProvider = "elasticsearch" // AlgoliaProvider represents the algolia search index provider. AlgoliaProvider = "algolia" )
Variables ¶
This section is empty.
Functions ¶
func ProvideIndex ¶
func ProvideIndex[T search.Searchable](ctx context.Context, logger logging.Logger, tracerProvider tracing.TracerProvider, cfg *Config, indexName string) (search.Index[T], error)
ProvideIndex validates a Config struct.
Types ¶
type Config ¶
type Config struct { Algolia *algolia.Config `json:"algolia" toml:"algolia,omitempty"` Elasticsearch *elasticsearch.Config `json:"elasticsearch" toml:"elasticsearch,omitempty"` Provider string `json:"provider" toml:"provider,omitempty"` // contains filtered or unexported fields }
Config contains settings regarding search indices.
Click to show internal directories.
Click to hide internal directories.