elasticsearch

package
v0.3.18 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: MIT Imports: 6 Imported by: 2

Documentation

Overview

Package elasticsearch is a wrapper of the original "github.com/elastic/go-elasticsearch".

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 is elasticsearch client.

func New

func New(addresses []string, username string, password string) (*Client, error)

New to create new elasticsearch client.

func NewDefault

func NewDefault() (*Client, error)

NewDefault to create default elasticsearch client.

func NewWithConfig

func NewWithConfig(cfg elasticsearch.Config) (*Client, error)

NewWithConfig to create new elasticsearch client with config.

func (*Client) Send

func (c *Client) Send(key string, data interface{}) error

Send to send data to elasticsearch.

Jump to

Keyboard shortcuts

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