elasticsearch

package
v0.0.0-...-d55fa79 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewESConnection

func NewESConnection(config elasticsearch.Config, l *zerolog.Logger) (*elasticsearch.Client, error)

Types

type ElasticSearcher

type ElasticSearcher interface {
	LoadEmployeesFromPostgres() error
	LoadTasksFromPostgres() error
	EmployeeByNickname(nickname string) (employee []byte, err error)
	EmptyES() error
	AllEmployees() (employee []models.Employee, err error)
	AllTasks() (tasks []models.Task, err error)
}

func New

func New(
	esconn *elasticsearch.Client,
	pgconn postgres.Postgreser,
	l *zerolog.Logger,
) ElasticSearcher

Jump to

Keyboard shortcuts

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