Documentation ¶
Index ¶
- func ExtractId(doc bson.Raw) primitive.E
- func GetCollectionStats(r *Mong, database, collection string) (uint64, error)
- func IsDuplicateKeyError(err error) bool
- func ListCollections(ctx context.Context, db string, mongo *Mong) ([]string, error)
- func ListDbCollections(ctx context.Context, databases []string) (map[string][]string, error)
- type Mong
- type MongoRegistry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCollectionStats ¶ added in v0.0.13
func IsDuplicateKeyError ¶
IsDuplicateKeyError checks if the error is a duplicate key error
func ListCollections ¶
List the collections of a database
Types ¶
type MongoRegistry ¶
type MongoRegistry struct {
// contains filtered or unexported fields
}
var Registry *MongoRegistry = nil
func NewMongoRegistry ¶
func NewMongoRegistry(appConfig *config.AppConfig) *MongoRegistry
func (*MongoRegistry) GetSource ¶
func (m *MongoRegistry) GetSource() *Mong
func (*MongoRegistry) GetTarget ¶
func (m *MongoRegistry) GetTarget() *Mong
Click to show internal directories.
Click to hide internal directories.