meilisearch

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Meilisearch

type Meilisearch struct {
	// contains filtered or unexported fields
}

Meilisearch implements the database interface

func New

func New(log *slog.Logger, datadir string, url string, apikey string) (*Meilisearch, error)

New instantiates a new meilisearch database

func (*Meilisearch) Backup

func (db *Meilisearch) Backup(ctx context.Context) error

Backup takes a dump of meilisearch with the meilisearch client.

func (*Meilisearch) Check

func (db *Meilisearch) Check(_ context.Context) (bool, error)

Check indicates whether a restore of the database is required or not.

func (*Meilisearch) Probe

func (db *Meilisearch) Probe(_ context.Context) error

Probe figures out if the database is running and available for taking backups.

func (*Meilisearch) Recover

func (db *Meilisearch) Recover(ctx context.Context) error

Recover restores a database backup

func (*Meilisearch) Upgrade

func (db *Meilisearch) Upgrade(ctx context.Context) error

Upgrade performs an upgrade of the database in case a newer version of the database is detected.

Jump to

Keyboard shortcuts

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