Documentation
¶
Index ¶
- type AggregateGroup
- type AggregatePage
- type AggregatePipeline
- type Filter
- func (f Filter) Eq(field string, value interface{}) Filter
- func (f Filter) IgnoreCaseRegex(field string, pattern string)
- func (f Filter) In(field string, value []interface{}) Filter
- func (f Filter) Nin(field string, value []interface{}) Filter
- func (f Filter) Or(conditions bson.A) Filter
- func (f Filter) Regex(field string, pattern string)
- type FindOneAndUpdate
- type Update
- type UpdateById
- type UpdateMany
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregateGroup ¶ added in v0.0.4
func NewAggregateGroup ¶ added in v0.0.7
func NewAggregateGroup() AggregateGroup
func (AggregateGroup) Field ¶ added in v0.0.6
func (a AggregateGroup) Field(field, from string) AggregateGroup
func (AggregateGroup) SumFixed ¶ added in v0.0.6
func (a AggregateGroup) SumFixed(field string, value int) AggregateGroup
type AggregatePage ¶ added in v0.0.4
type AggregatePage struct {
// contains filtered or unexported fields
}
type AggregatePipeline ¶ added in v0.0.4
func NewAggregatePipeline ¶ added in v0.0.5
func NewAggregatePipeline() AggregatePipeline
func (AggregatePipeline) Group ¶ added in v0.0.4
func (a AggregatePipeline) Group(group AggregateGroup) AggregatePipeline
func (AggregatePipeline) Match ¶ added in v0.0.4
func (a AggregatePipeline) Match(filter Filter) AggregatePipeline
func (AggregatePipeline) Page ¶ added in v0.0.4
func (a AggregatePipeline) Page(page AggregatePage) AggregatePipeline
type FindOneAndUpdate ¶
func NewFindOneAndUpdate ¶ added in v0.0.4
func NewFindOneAndUpdate() *FindOneAndUpdate
func (*FindOneAndUpdate) SetFilter ¶ added in v0.0.4
func (m *FindOneAndUpdate) SetFilter(filter Filter) *FindOneAndUpdate
func (*FindOneAndUpdate) SetUpdate ¶ added in v0.0.4
func (m *FindOneAndUpdate) SetUpdate(update Update) *FindOneAndUpdate
type UpdateById ¶
type UpdateMany ¶
Click to show internal directories.
Click to hide internal directories.