meilisearch

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMeilisearchIsUnhealthy = errors.New("meilisearch is unhealthy")
	ErrIndexNotFound          = errors.New("index not found")
	ErrTaskCanceled           = errors.New("task canceled")
	ErrTaskFailed             = errors.New("task failed")
	ErrTaskUnknown            = errors.New("task unknown")
	ErrUpdateSettings         = errors.New("update settings failed")
)

Functions

This section is empty.

Types

type Meilisearch

type Meilisearch interface {
	CreateIndex(ctx context.Context, uid, primaryKey string) error
	Index(uid string) *meili.Index
	GetIndex(uid string) (*meili.Index, error)
	IsExistsIndex(uid string) bool
	DeleteIndex(ctx context.Context, uid string) error
	UpdateIndexSettings(ctx context.Context, uid string, settings *config.Settings) error
	WaitForTask(ctx context.Context, task *meili.TaskInfo) error
	Stats() *meili.Stats
	Version() string
}

func New

func New(ctx context.Context, apiURL, apiKey string, log logger.Logger) (Meilisearch, error)

Jump to

Keyboard shortcuts

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