Documentation ¶
Overview ¶
* * @Author: myxy99 <myxy99@foxmail.com> * @Date: 2020/7/30 10:34
* * @Author: myxy99 <myxy99@foxmail.com> * @Date: 2020/7/30 10:34
Index ¶
- func DefaultBuild() module.Invoker
- type CallerCfg
- type Client
- func (c *Client) FindAll(db, collection string, query, selector, result interface{}) error
- func (c *Client) FindOne(db, collection string, query, selector, result interface{}) error
- func (c *Client) Insert(db, collection string, docs ...interface{}) error
- func (c *Client) Remove(db, collection string, query interface{}) error
- func (c *Client) Update(db, collection string, query, update interface{}) error
- type ClientImp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultBuild ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type ClientImp ¶
type ClientImp interface { Insert(db, collection string, docs ...interface{}) error FindOne(db, collection string, query, selector, result interface{}) error FindAll(db, collection string, query, selector, result interface{}) error Update(db, collection string, query, update interface{}) error Remove(db, collection string, query interface{}) error // contains filtered or unexported methods }
Click to show internal directories.
Click to hide internal directories.