Documentation ¶
Index ¶
- type DBService
- func (db *DBService) FindAll(ctx context.Context, dataBase string, col string, filter interface{}) *string
- func (db *DBService) FindOne(ctx context.Context, dataBase string, col string, filter interface{}) *mongo.SingleResult
- func (db *DBService) Insertone(ctx context.Context, dataBase string, col string, doc interface{}) *service.InsertOneResult
- func (db *DBService) Pingdb(ctx context.Context) error
- type FindAllResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBService ¶
type DBService struct { Client mongo.Client //Ctx context.Context Cancel context.CancelFunc Err error }
func NewDBService ¶
type FindAllResult ¶
type FindAllResult struct { }
Click to show internal directories.
Click to hide internal directories.