es

package
v4.3.12+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DestroyClient

func DestroyClient()

DestroyClient sets the elasticsearch client value to nil

Types

type Client added in v0.9.15

type Client struct {
	Debug    bool
	Host     string
	Port     int
	Index    string
	Logger   zap.Logger
	Sniff    bool
	Client   *elastic.Client
	NewRelic newrelic.Application
}

Client is the struct of an elasticsearch client

func GetClient added in v0.9.15

func GetClient(host string, port int, index string, sniff bool, logger zap.Logger, debug bool, newRelic newrelic.Application) *Client

GetClient returns an elasticsearch client configured with the given the arguments

func GetConfiguredClient added in v0.9.15

func GetConfiguredClient() *Client

GetConfiguredClient returns an elasticsearch client with no extra configs

func GetTestClient added in v0.9.15

func GetTestClient(host string, port int, index string, sniff bool, logger zap.Logger, debug bool) *Client

GetTestClient returns a test elasticsearch client configured with the given the arguments

func (*Client) GetIndexName added in v0.9.15

func (es *Client) GetIndexName(gameID string) string

GetIndexName returns the name of the index

Jump to

Keyboard shortcuts

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