Documentation ¶
Index ¶
- func GetMongoDbCollection(dbmap utils.Map, collectionName string) (*mongo.Collection, context.Context, error)
- type BaseMongoService
- func (p *BaseMongoService) BeginTransaction()
- func (p *BaseMongoService) CloseDatabaseService()
- func (p *BaseMongoService) CommitTransaction()
- func (p *BaseMongoService) GetClient() utils.Map
- func (p *BaseMongoService) OpenDatabaseService(props utils.Map) error
- func (p *BaseMongoService) RollbackTransaction()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMongoDbCollection ¶
func GetMongoDbCollection(dbmap utils.Map, collectionName string) (*mongo.Collection, context.Context, error)
GetMongoDbCollection - Collection return
Types ¶
type BaseMongoService ¶
type BaseMongoService struct {
// contains filtered or unexported fields
}
func (*BaseMongoService) BeginTransaction ¶
func (p *BaseMongoService) BeginTransaction()
func (*BaseMongoService) CloseDatabaseService ¶
func (p *BaseMongoService) CloseDatabaseService()
func (*BaseMongoService) CommitTransaction ¶
func (p *BaseMongoService) CommitTransaction()
func (*BaseMongoService) GetClient ¶
func (p *BaseMongoService) GetClient() utils.Map
func (*BaseMongoService) OpenDatabaseService ¶
func (p *BaseMongoService) OpenDatabaseService(props utils.Map) error
func (*BaseMongoService) RollbackTransaction ¶
func (p *BaseMongoService) RollbackTransaction()
Click to show internal directories.
Click to hide internal directories.