Documentation ¶
Index ¶
- func Connect(ctx context.Context, baseLogger model.Logger, uri, database string) *mongo.Database
- func NewOrderRepository(baseLogger model.Logger, db *mongo.Database, timeout time.Duration, ...) model.OrderRepository
- func NewProductRepository(baseLogger model.Logger, db *mongo.Database, timeout time.Duration) model.ProductRepository
- type FilterBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewOrderRepository ¶
func NewProductRepository ¶
Types ¶
type FilterBuilder ¶
type FilterBuilder struct {
// contains filtered or unexported fields
}
func NewFilterBuilder ¶
func NewFilterBuilder() *FilterBuilder
func (*FilterBuilder) AppendAndOpFilter ¶
func (b *FilterBuilder) AppendAndOpFilter(filter bson.M) *FilterBuilder
func (*FilterBuilder) AppendAndOpFilterIf ¶
func (b *FilterBuilder) AppendAndOpFilterIf(condition bool, filter bson.M) *FilterBuilder
func (*FilterBuilder) AppendOperationFilter ¶
func (b *FilterBuilder) AppendOperationFilter(op string, filter bson.M) *FilterBuilder
func (*FilterBuilder) Build ¶
func (b *FilterBuilder) Build() bson.M
Click to show internal directories.
Click to hide internal directories.