Documentation ¶
Index ¶
- func HandleBadgerRequest(request map[string]interface{}) (bson.M, error)
- type DbRepo
- func (c *DbRepo) AddOrUpdate(key interface{}, data interface{}) error
- func (c *DbRepo) AddOrUpdateMany(list []MongoKeyValue, upsert bool) ([]byte, error)
- func (c *DbRepo) AddWithTTL(key, value interface{}, ttl time.Duration) error
- func (c *DbRepo) Close() error
- func (c *DbRepo) Delete(key interface{}, dataType interface{}) error
- func (c *DbRepo) DeleteOne(document interface{}) (int64, error)
- func (c *DbRepo) Find(result interface{}, filter bson.M) error
- func (c *DbRepo) FindJson(result interface{}, filter []byte) error
- func (c *DbRepo) FindWhereAnd2Eq(result interface{}, filed1 string, value1 interface{}, filed2 string, ...) error
- func (c *DbRepo) FindWhereAnd4Eq(result interface{}, filed1 string, value1 interface{}, filed2 string, ...) error
- func (c *DbRepo) FindWhereEq(result interface{}, filed string, value interface{}) error
- func (c *DbRepo) FindWhereGe(result interface{}, filed string, value interface{}) error
- func (c *DbRepo) FindWhereGt(result interface{}, filed string, value interface{}) error
- func (c *DbRepo) FindWhereLe(result interface{}, filed string, value interface{}) error
- func (c *DbRepo) FindWhereLt(result interface{}, filed string, value interface{}) error
- func (c *DbRepo) FindWhereNe(result interface{}, filed string, value interface{}) error
- func (c *DbRepo) Get(key interface{}, result interface{}) error
- type MongoKeyValue
- type Timeout
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DbRepo ¶
func (*DbRepo) AddOrUpdate ¶
func (*DbRepo) AddOrUpdateMany ¶
func (c *DbRepo) AddOrUpdateMany(list []MongoKeyValue, upsert bool) ([]byte, error)
func (*DbRepo) AddWithTTL ¶
func (*DbRepo) FindWhereAnd2Eq ¶
func (*DbRepo) FindWhereAnd4Eq ¶
func (*DbRepo) FindWhereEq ¶
func (*DbRepo) FindWhereGe ¶
func (*DbRepo) FindWhereGt ¶
func (*DbRepo) FindWhereLe ¶
func (*DbRepo) FindWhereLt ¶
func (*DbRepo) FindWhereNe ¶
type MongoKeyValue ¶
type MongoKeyValue struct { Key interface{} Value interface{} }
Click to show internal directories.
Click to hide internal directories.