elasticsearch

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

README

pangu-elasticsearch

盘古Elasticsearch适配

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*elastic.Client
}

func (*Client) CreateIndex

func (c *Client) CreateIndex(index string, mapping ...string) (err error)

func (*Client) Delete

func (c *Client) Delete(index string, id string) (err error)

func (*Client) Get

func (c *Client) Get(index string, id string) (data json.RawMessage, err error)

func (*Client) Index

func (c *Client) Index(index string, id string, data interface{}) (err error)

Jump to

Keyboard shortcuts

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