Documentation ¶
Index ¶
- type MongoStore
- func (ds *MongoStore) Aggregate(pipeline interface{}, dtype *[]interface{})
- func (ds *MongoStore) Collection(collection string) *MongoStore
- func (ds *MongoStore) CreateOrReplaceOne(data interface{}, filter interface{}) int64
- func (ds *MongoStore) Database() *mongo.Database
- func (ds *MongoStore) FindOneAndUpdate(update interface{}, filter interface{}) int
- func (ds *MongoStore) InsertOrIgnore(data []interface{}) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoStore ¶
type MongoStore struct {
// contains filtered or unexported fields
}
func DefaultClient ¶
func DefaultClient() *MongoStore
func DefaultClientWithDatabase ¶
func DefaultClientWithDatabase(db string) *MongoStore
func (*MongoStore) Aggregate ¶
func (ds *MongoStore) Aggregate(pipeline interface{}, dtype *[]interface{})
func (*MongoStore) Collection ¶
func (ds *MongoStore) Collection(collection string) *MongoStore
func (*MongoStore) CreateOrReplaceOne ¶
func (ds *MongoStore) CreateOrReplaceOne(data interface{}, filter interface{}) int64
func (*MongoStore) Database ¶
func (ds *MongoStore) Database() *mongo.Database
func (*MongoStore) FindOneAndUpdate ¶
func (ds *MongoStore) FindOneAndUpdate(update interface{}, filter interface{}) int
func (*MongoStore) InsertOrIgnore ¶
func (ds *MongoStore) InsertOrIgnore(data []interface{}) int
Click to show internal directories.
Click to hide internal directories.