client

package
v0.0.0-...-28a77dd Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bulker

type Bulker struct {
	*elastic.BulkProcessor
}

func NewBulker

func NewBulker(cli *elastic.Client) (*Bulker, error)

func (*Bulker) Rm

func (b *Bulker) Rm(index string, ids ...string)

Add adds requests to remove given ids.

func (*Bulker) Save

func (b *Bulker) Save(docs ...backup.Document)

type Client

type Client struct {
	*elastic.Client
}

func New

func New(cluster app.Cluster, usr app.User) (*Client, error)

func (*Client) Bulk

func (cli *Client) Bulk() (*Bulker, error)

Jump to

Keyboard shortcuts

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