Documentation ¶
Index ¶
- func BoolQuery(key string, cond *els.BoolQuery, size int) (items []interface{}, err error)
- func Clear(key string) error
- func Create(key string, id int64, message proto.Message) error
- func CreateMapping(key string, mapping string) error
- func Delete(key string, id int64) error
- func DeleteByQuery(key string, cond *els.BoolQuery) error
- func Exist(key string) bool
- func Get(key string, id int64) (interface{}, error)
- func GetById(key string, id string) (interface{}, error)
- func Init(description map[string]string, nodes ...string)
- func NewBoolQuery(must map[string]string, should map[string]string) *els.BoolQuery
- func Query(key string, page int, size int) (items []interface{}, err error)
- func SaveOrUpdate(key string, id int64, message proto.Message) error
- func SaveOrUpdateById(key string, id string, message proto.Message) error
- func SortBy(key string, cond *els.BoolQuery, page int, size int, field string, asc bool) (items []interface{}, err error)
- func Update(key string, id int64, message proto.Message) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMapping ¶
func NewBoolQuery ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.