Documentation ¶
Index ¶
- func Ascending(fieldNames ...string) bsonx.Bson
- func CompoundIndex(indexes ...bsonx.Bson) bsonx.Bson
- func CompoundIndexWithField(fieldNames []string, value bsonx.IBsonValue) bsonx.Bson
- func Descending(fieldNames ...string) bsonx.Bson
- func Geo2D(fieldName string) bsonx.Bson
- func Geo2DSphere(fieldNames ...string) bsonx.Bson
- func GeoHaystack(fieldName string, additional bsonx.Bson) bsonx.Bson
- func Hashed(fieldName string) bsonx.Bson
- func Text(fieldName string) bsonx.Bson
- func TextEveyFiled() bsonx.Bson
- type IndexModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompoundIndexWithField ¶
func CompoundIndexWithField(fieldNames []string, value bsonx.IBsonValue) bsonx.Bson
func Descending ¶
func Geo2DSphere ¶
func TextEveyFiled ¶
Types ¶
type IndexModel ¶
type IndexModel struct {
// contains filtered or unexported fields
}
func NewIndexModel ¶
func NewIndexModel(keys bsonx.Bson, options options.IndexOptions) IndexModel
func (IndexModel) GetKeys ¶
func (m IndexModel) GetKeys() bsonx.Bson
func (IndexModel) GetOptions ¶
func (m IndexModel) GetOptions() options.IndexOptions
Click to show internal directories.
Click to hide internal directories.