Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewESConnection ¶
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
Click to show internal directories.
Click to hide internal directories.