meilisearch

package
v0.0.0-...-8ac9c69 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MeiliClient

type MeiliClient struct {
	Client *meilisearch.Client
}

func NewMeiliClient

func NewMeiliClient() *MeiliClient

func (MeiliClient) GenerateCompetenceIndex

func (m MeiliClient) GenerateCompetenceIndex(ctx context.Context, conn *bun.DB) error

func (MeiliClient) GetCompetenceIndex

func (m MeiliClient) GetCompetenceIndex(organisationId string) string

type MeiliCompetence

type MeiliCompetence struct {
	ID             string            `json:"id"`
	Name           string            `json:"name"`
	CompetenceID   sql.NullString    `json:"competence_id"`
	CompetenceType db.CompetenceType `json:"competence_type"`
	Grades         []int             `json:"grades"`
	Parents        []string          `json:"parents"`
	ParentNames    []string          `json:"parent_names"`
}

type SearchResponseCompetence

type SearchResponseCompetence struct {
	Hits []MeiliCompetence `json:"hits"`
}

Jump to

Keyboard shortcuts

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