Documentation ¶
Index ¶
- Variables
- type Mongo
- 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)
Constants ¶
This section is empty.
Variables ¶
View Source
var CreateCollections = []func(db *Mongo) error{}
Functions ¶
This section is empty.
Types ¶
type Mongo ¶
type Mongo struct {
// contains filtered or unexported fields
}
func (*Mongo) Disconnect ¶
func (this *Mongo) Disconnect()
func (*Mongo) GetImportType ¶
func (*Mongo) ListImportTypes ¶
func (*Mongo) RemoveImportType ¶
func (*Mongo) SetImportType ¶
Click to show internal directories.
Click to hide internal directories.