Skip to content

BaseBucketAggregation🔗

Definition🔗

type BaseBucketAggregation struct {
    Id string `json:"id"`
    Type elasticsearch.BucketAggregationType `json:"type"`
    Settings any `json:"settings,omitempty"`
}

Methods🔗

UnmarshalJSONStrict🔗

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode BaseBucketAggregation from JSON.

Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …

func (baseBucketAggregation *BaseBucketAggregation) UnmarshalJSONStrict(raw []byte) error

Equals🔗

Equals tests the equality of two BaseBucketAggregation objects.

func (baseBucketAggregation *BaseBucketAggregation) Equals(other BaseBucketAggregation) bool

Validate🔗

Validate checks all the validation constraints that may be defined on BaseBucketAggregation fields for violations and returns them.

func (baseBucketAggregation *BaseBucketAggregation) Validate() error

See also🔗