v7

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: Apache-2.0 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
}

func NewClient

func NewClient(cfg interface{}) (*Client, error)

func (*Client) Bulk

func (c *Client) Bulk(ctx context.Context, reader io.Reader) (io.ReadCloser, error)

func (*Client) GetClient

func (c *Client) GetClient() *elasticsearch.Client

GetClient returns Elasticsearch v7 client.

func (*Client) Ping

func (c *Client) Ping(ctx context.Context) error

func (*Client) PrepareCreateOperation

func (c *Client) PrepareCreateOperation(item sdk.Record) (interface{}, interface{}, error)

func (*Client) PrepareDeleteOperation

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

func (*Client) PrepareUpsertOperation

func (c *Client) PrepareUpsertOperation(key string, item sdk.Record) (interface{}, interface{}, error)

type ErrorResponse

type ErrorResponse struct {
	Error struct {
		Type   string `json:"type"`
		Reason string `json:"reason"`
	} `json:"error"`
}

Jump to

Keyboard shortcuts

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