Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FieldAggregate ¶
FieldAggregate wraps a FieldMask to provide aggregation-specific functionality. This avoids code duplication by reusing the existing FieldMask implementation.
func New ¶
func New(fm *fieldmaskpb.FieldMask) (FieldAggregate, error)
New constructs a FieldAggregate based on validated and normalized field mask.
func (FieldAggregate) Get ¶
func (f FieldAggregate) Get(name string) FieldAggregate
Get returns the sub-aggregate for a given field name (for testing purposes).
func (FieldAggregate) Len ¶
func (f FieldAggregate) Len() int
Len returns the number of top-level fields in the aggregate.
Click to show internal directories.
Click to hide internal directories.