Documentation ¶
Index ¶
- Constants
- type DaoElastic
- func (o *DaoElastic) Agent() (agent interface{}, err error)
- func (o *DaoElastic) Close() error
- func (o *DaoElastic) Configure(name string, daotype string, host string, port int, user string, pass string, ...) error
- func (o *DaoElastic) Conn() (agent interface{}, err error)
- func (o *DaoElastic) Delete(db string, group string, id interface{}, opt qdao.DOpt) (interface{}, error)
- func (o *DaoElastic) Deletes(db string, group string, ids []interface{}, opt qdao.DOpt) (interface{}, error)
- func (o *DaoElastic) ExistDB(db string) (bool, error)
- func (o *DaoElastic) ExistGroup(db string, group string) (bool, error)
- func (o *DaoElastic) Exists(db string, group string, ids []interface{}) (int64, error)
- func (o *DaoElastic) Get(db string, group string, id interface{}, unmarshal int, opt qdao.QOpt) (ret interface{}, err error)
- func (o *DaoElastic) GetDB(db string, opt qdao.QOpt) (interface{}, error)
- func (o *DaoElastic) GetGroup(db string, group string, opt qdao.QOpt) (interface{}, error)
- func (o *DaoElastic) Gets(db string, group string, ids []interface{}, unmarshal int, opt qdao.QOpt) (rets []interface{}, err error)
- func (o *DaoElastic) IsConnected() bool
- func (o *DaoElastic) Keys(db string, group string, wildcard string, opt qdao.QOpt) (keys []string, err error)
- func (o *DaoElastic) List(db string, group string, from int, size int, unmarshal int, opt qdao.QOpt) (rets []interface{}, cursor int, err error)
- func (o *DaoElastic) Query(db string, query string, args []interface{}, opt qdao.QOpt) (interface{}, error)
- func (o *DaoElastic) Scan(db string, group string, from int, size int, unmarshal int, opt qdao.QOpt, ...) (ret []interface{}, cursor int, total int, err error)
- func (o *DaoElastic) ScanAsMap(db string, group string, from int, size int, unmarshal int, opt qdao.QOpt, ...) (ret map[string]interface{}, cursor int, total int, err error)
- func (o *DaoElastic) Script(db string, group string, id interface{}, script string, args []interface{}, ...) (interface{}, error)
- func (o *DaoElastic) SelectDB(db string) error
- func (o *DaoElastic) Update(db string, group string, id interface{}, val interface{}, override bool, ...) (interface{}, error)
- func (o *DaoElastic) UpdateBatch(db string, groups []string, ids []interface{}, vals []interface{}, ...) (interface{}, error)
- func (o *DaoElastic) UpdateDB(db string, options interface{}, create bool, override bool, opt qdao.UOpt) (interface{}, error)
- func (o *DaoElastic) UpdateGroup(db string, group string, options interface{}, create bool, override bool, ...) (interface{}, error)
- func (o *DaoElastic) Updates(db string, group string, ids []interface{}, vals []interface{}, override bool, ...) (interface{}, error)
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 ¶
func (*DaoElastic) Agent ¶
func (o *DaoElastic) Agent() (agent interface{}, err error)
func (*DaoElastic) Close ¶
func (o *DaoElastic) Close() error
func (*DaoElastic) Conn ¶
func (o *DaoElastic) Conn() (agent interface{}, err 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) GetDB ¶
func (o *DaoElastic) GetDB(db string, opt qdao.QOpt) (interface{}, error)
func (*DaoElastic) IsConnected ¶
func (o *DaoElastic) IsConnected() bool
func (*DaoElastic) SelectDB ¶
func (o *DaoElastic) SelectDB(db string) error
func (*DaoElastic) UpdateBatch ¶
func (*DaoElastic) UpdateGroup ¶
Click to show internal directories.
Click to hide internal directories.