es

package
v0.0.0-...-a941e4b Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MockElasticSearchClient

func MockElasticSearchClient(endpoint string, responseMock string) (*elastic.Client, error)

Types

type DummyHttpClient

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

func MockHttpClient

func MockHttpClient(responseMock string) *DummyHttpClient

func (*DummyHttpClient) Do

type ES

type ES interface {
	CheckEmailExists(email string) (rsp *model.CheckEmailResponse, err error)
	CreateIndex() error
	DeleteIndex() error
}

ES interface defines es methods.

func New

func New(ecl *elastic.Client, index string) ES

New creates a client connection to Elasticsearch.

Directories

Path Synopsis
Copyright (C) 2019 - 2022 MWSOFT This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Copyright (C) 2019 - 2022 MWSOFT This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Jump to

Keyboard shortcuts

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