Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
Collection(string, ...*options.CollectionOptions) *mongo.Collection
Connect() error
Database() *mongo.Database
DefineIndexes(...IndexSet)
}
type IndexSet ¶
type IndexSet struct {
Collection string
Indexes []mongo.IndexModel
}
func NewIndexSet ¶
func NewIndexSet(collection string, indexes ...mongo.IndexModel) IndexSet
Click to show internal directories.
Click to hide internal directories.