Documentation ¶
Index ¶
- func AddOne(mdb *mongo.Database, i *Item) (*mongo.InsertOneResult, error)
- func GetItem(rdb *redis.Client, key string) (string, error)
- func GetOne(mdb *mongo.Database, i *Item, filter interface{}) error
- func RemoveOne(mdb *mongo.Database, filter interface{}) (*mongo.DeleteResult, error)
- func SetItem(rdb *redis.Client, key string, i *Item) error
- func Update(mdb *mongo.Database, filter interface{}, update interface{}) (*mongo.UpdateResult, error)
- type Item
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.