elasticsearch

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client represents an instance of the elasticsearch client

func New

func New(url string, rchttpClient rchttp.Clienter) *Client

New creates a new elasticsearch client. Any trailing slashes from the URL are removed.

func (*Client) GetStatus added in v1.1.0

func (cli *Client) GetStatus(ctx context.Context) ([]byte, error)

GetStatus makes status call for healthcheck purposes

func (*Client) MultiSearch

func (cli *Client) MultiSearch(ctx context.Context, index string, docType string, request []byte) ([]byte, error)

MultiSearch is a method that wraps the MultiSearch function of the elasticsearch package

func (*Client) Search

func (cli *Client) Search(ctx context.Context, index string, docType string, request []byte) ([]byte, error)

Search is a method that wraps the Search function of the elasticsearch package

Jump to

Keyboard shortcuts

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