elasticsearch

package
v0.0.0-...-527e48b Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Task

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

Task represents the repository used for interacting with Task records.

func NewTask

func NewTask(client *esv7.Client) *Task

NewTask instantiates the Task repository.

func (*Task) Delete

func (t *Task) Delete(ctx context.Context, id string) error

Delete removes a task from the index.

func (*Task) Index

func (t *Task) Index(ctx context.Context, task internal.Task) error

Index creates or updates a task in an index.

func (*Task) Search

Search returns tasks matching a query. nolint: funlen, cyclop

Jump to

Keyboard shortcuts

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