elastic

package module
v0.0.0-...-040153f Latest Latest
Warning

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

Go to latest
Published: May 7, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolQuery

func BoolQuery(key string, cond *els.BoolQuery, size int) (items []interface{}, err error)

func Clear

func Clear(key string) error

func Create

func Create(key string, id int64, message proto.Message) error

func CreateMapping

func CreateMapping(key string, mapping string) error

func Delete

func Delete(key string, id int64) error

func DeleteByQuery

func DeleteByQuery(key string, cond *els.BoolQuery) error

func Exist

func Exist(key string) bool

func Get

func Get(key string, id int64) (interface{}, error)

func GetById

func GetById(key string, id string) (interface{}, error)

func Init

func Init(description map[string]string, nodes ...string)

func NewBoolQuery

func NewBoolQuery(must map[string]string, should map[string]string) *els.BoolQuery

func Query

func Query(key string, page int, size int) (items []interface{}, err error)

func SaveOrUpdate

func SaveOrUpdate(key string, id int64, message proto.Message) error

func SaveOrUpdateById

func SaveOrUpdateById(key string, id string, message proto.Message) error

func SortBy

func SortBy(key string, cond *els.BoolQuery, page int, size int, field string, asc bool) (items []interface{}, err error)

func Update

func Update(key string, id int64, message proto.Message) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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