elastic

package
v0.0.0-...-9c04300 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Elastic

type Elastic struct {
	*elastic.Client
}

func New

func New(option *Option) (*Elastic, error)

func (*Elastic) Insert

func (e *Elastic) Insert(v interface{}) error

func (*Elastic) InsertRaw

func (e *Elastic) InsertRaw(index string, raw []byte) error

func (*Elastic) InsertRaws

func (e *Elastic) InsertRaws(index string, raws [][]byte) error

func (*Elastic) Inserts

func (e *Elastic) Inserts(v interface{}) error

type Option

type Option struct {
	Address  string
	User     string
	Password string
	Sniff    bool
}

func (*Option) Parse

func (o *Option) Parse() []elastic.ClientOptionFunc

type Query

type Query interface {
	Query() elastic.Query
}

type Sorter

type Sorter struct {
	Sorters []elastic.Sorter
	Values  []interface{}
	Element reflect.Type
}

Jump to

Keyboard shortcuts

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