Documentation
¶
Index ¶
- func New(opts ...Option) (leafNoSql.Mongo, error)
- func NewCollection(collection *mgo.Collection) leafNoSql.Collection
- func NewCursor(curr *mgo.Cursor) (leafNoSql.Cursor, error)
- func NewDatabase(database *mgo.Database) leafNoSql.Database
- func NewIndexView(indexView mgo.IndexView) leafNoSql.IndexView
- type ClientOptionBuilderFunc
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCollection ¶
func NewCollection(collection *mgo.Collection) leafNoSql.Collection
Types ¶
type ClientOptionBuilderFunc ¶
type ClientOptionBuilderFunc func(*options.ClientOptions) *options.ClientOptions
type Option ¶
type Option interface {
Apply(o *mongoOptions)
}
func WithDatabaseName ¶
func WithLogger ¶
func WithLogger(logger leafLogger.Logger) Option
func WithMongoOptions ¶
func WithMongoOptions(fn ClientOptionBuilderFunc) Option
Click to show internal directories.
Click to hide internal directories.