qelastic

package
v0.0.0-...-c863eb0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_ID = "_id"
View Source
const DEFAULT_TYPE = "_doc"

Variables

This section is empty.

Functions

This section is empty.

Types

type DaoElastic

type DaoElastic struct {
	qdao.Config
	// contains filtered or unexported fields
}

func (*DaoElastic) Agent

func (o *DaoElastic) Agent() (agent interface{}, err error)

func (*DaoElastic) Close

func (o *DaoElastic) Close() error

func (*DaoElastic) Configure

func (o *DaoElastic) Configure(
	name string, daotype string,
	host string, port int, user string, pass string, database string,
	options map[string]interface{}) error

func (*DaoElastic) Conn

func (o *DaoElastic) Conn() (agent interface{}, err error)

func (*DaoElastic) Delete

func (o *DaoElastic) Delete(db string, group string, id interface{}, opt qdao.DOpt) (interface{}, error)

func (*DaoElastic) Deletes

func (o *DaoElastic) Deletes(db string, group string, ids []interface{}, opt qdao.DOpt) (interface{}, error)

func (*DaoElastic) ExistDB

func (o *DaoElastic) ExistDB(db string) (bool, error)

func (*DaoElastic) ExistGroup

func (o *DaoElastic) ExistGroup(db string, group string) (bool, error)

func (*DaoElastic) Exists

func (o *DaoElastic) Exists(db string, group string, ids []interface{}) (int64, error)

func (*DaoElastic) Get

func (o *DaoElastic) Get(db string, group string, id interface{}, unmarshal int, opt qdao.QOpt) (ret interface{}, err error)

func (*DaoElastic) GetDB

func (o *DaoElastic) GetDB(db string, opt qdao.QOpt) (interface{}, error)

func (*DaoElastic) GetGroup

func (o *DaoElastic) GetGroup(db string, group string, opt qdao.QOpt) (interface{}, error)

func (*DaoElastic) Gets

func (o *DaoElastic) Gets(db string, group string, ids []interface{}, unmarshal int, opt qdao.QOpt) (rets []interface{}, err error)

func (*DaoElastic) IsConnected

func (o *DaoElastic) IsConnected() bool

func (*DaoElastic) Keys

func (o *DaoElastic) Keys(db string, group string, wildcard string, opt qdao.QOpt) (keys []string, err error)

func (*DaoElastic) List

func (o *DaoElastic) List(db string, group string, from int, size int, unmarshal int, opt qdao.QOpt) (rets []interface{}, cursor int, err error)

func (*DaoElastic) Query

func (o *DaoElastic) Query(db string, query string, args []interface{}, opt qdao.QOpt) (interface{}, error)

func (*DaoElastic) Scan

func (o *DaoElastic) Scan(db string, group string, from int, size int, unmarshal int, opt qdao.QOpt, query ...interface{}) (ret []interface{}, cursor int, total int, err error)

func (*DaoElastic) ScanAsMap

func (o *DaoElastic) ScanAsMap(db string, group string, from int, size int, unmarshal int, opt qdao.QOpt, query ...interface{}) (ret map[string]interface{}, cursor int, total int, err error)

func (*DaoElastic) Script

func (o *DaoElastic) Script(db string, group string, id interface{}, script string, args []interface{}, opt qdao.QOpt) (interface{}, error)

func (*DaoElastic) SelectDB

func (o *DaoElastic) SelectDB(db string) error

func (*DaoElastic) Update

func (o *DaoElastic) Update(db string, group string, id interface{}, val interface{}, override bool, marshal int, opt qdao.UOpt) (interface{}, error)

func (*DaoElastic) UpdateBatch

func (o *DaoElastic) UpdateBatch(db string, groups []string, ids []interface{}, vals []interface{}, override bool, marshal int, opt qdao.UOpt) (interface{}, error)

func (*DaoElastic) UpdateDB

func (o *DaoElastic) UpdateDB(db string, options interface{}, create bool, override bool, opt qdao.UOpt) (interface{}, error)

func (*DaoElastic) UpdateGroup

func (o *DaoElastic) UpdateGroup(db string, group string, options interface{}, create bool, override bool, opt qdao.UOpt) (interface{}, error)

func (*DaoElastic) Updates

func (o *DaoElastic) Updates(db string, group string, ids []interface{}, vals []interface{}, override bool, marshal int, opt qdao.UOpt) (interface{}, error)

Jump to

Keyboard shortcuts

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