Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureIndexes ¶
func EnsureIndexes(ctx context.Context, collection *mongo.Collection, desiredIndexes []*NamedIndex)
func IsUniqueConstraintError ¶
func IsUniqueConstraintError(err error, namedIndex *NamedIndex) bool
Types ¶
type NamedIndex ¶
type NamedIndex struct {
Name string
Collection *mongo.Collection
IndexModel mongo.IndexModel
}
Click to show internal directories.
Click to hide internal directories.