Documentation
¶
Index ¶
- Constants
- func ToObjectId(field string, expr Expression) bson.E
- func ToString(field string, expr Expression) bson.E
- type ComplexGroupId
- type Expression
- type GraphLookup
- type GroupField
- type GroupId
- type LongVariable
- type Lookup
- type Matcher
- type Pipeline
- func (p *Pipeline) Count(field string) *Pipeline
- func (p *Pipeline) Facet(facets ...*model.Facet) *Pipeline
- func (p *Pipeline) Group(id GroupId, fields ...*GroupField) *Pipeline
- func (p *Pipeline) Lookup(l *Lookup) *Pipeline
- func (p *Pipeline) Marshal() mongo.Pipeline
- func (p *Pipeline) Match(query ...*filters.Filter) *Pipeline
- type Projector
- type RootReplacer
- type StringGroupId
- type StringVariable
- type Variable
Constants ¶
View Source
const (
Now = "$$NOW"
)
Variables ¶
This section is empty.
Functions ¶
func ToObjectId ¶
func ToObjectId(field string, expr Expression) bson.E
Types ¶
type ComplexGroupId ¶
type Expression ¶
type Expression interface {
IsExpression()
}
type GraphLookup ¶
type GraphLookup struct {
// contains filtered or unexported fields
}
func (*GraphLookup) Marshal ¶
func (l *GraphLookup) Marshal() primitive.D
func (*GraphLookup) Tag ¶
func (l *GraphLookup) Tag()
func (*GraphLookup) ToMap ¶
func (l *GraphLookup) ToMap() primitive.M
type GroupField ¶
type GroupField struct {
// contains filtered or unexported fields
}
func NewGroupField ¶
func NewGroupField(name, accumulator string, expression Expression) *GroupField
func (*GroupField) Marshal ¶
func (g *GroupField) Marshal() primitive.E
func (*GroupField) Tag ¶
func (g *GroupField) Tag()
type LongVariable ¶
type LongVariable int64
type RootReplacer ¶
type RootReplacer struct {
// contains filtered or unexported fields
}
func ReplaceRoot ¶
func ReplaceRoot(expr Expression) *RootReplacer
func (*RootReplacer) Marshal ¶
func (r *RootReplacer) Marshal() primitive.D
func (*RootReplacer) Tag ¶
func (r *RootReplacer) Tag()
func (*RootReplacer) ToMap ¶
func (r *RootReplacer) ToMap() primitive.M
type StringGroupId ¶
type StringGroupId string
type StringVariable ¶
type StringVariable string
func (StringVariable) IsExpression ¶
func (v StringVariable) IsExpression()
func (StringVariable) IsVariable ¶
func (v StringVariable) IsVariable()
Click to show internal directories.
Click to hide internal directories.