Versions in this module Expand all Collapse all v0 v0.0.3 Feb 9, 2024 v0.0.1 Dec 19, 2023 Changes in this version + var CreateCollections = []func(db *Mongo) error + type Mongo struct + func New(conf config.Config, ctx context.Context, wg *sync.WaitGroup) (*Mongo, error) + func (this *Mongo) CreateId() string + func (this *Mongo) Disconnect() + func (this *Mongo) GetImportType(ctx context.Context, id string) (importType model.ImportType, exists bool, err error) + func (this *Mongo) ListImportTypes(ctx context.Context, limit int64, offset int64, sort string) (result []model.ImportType, err error) + func (this *Mongo) RemoveImportType(ctx context.Context, id string) error + func (this *Mongo) SetImportType(ctx context.Context, importType model.ImportType) error + func (this *Mongo) Transaction(ctx context.Context) (resultCtx context.Context, close func(success bool) error, err error)