Documentation
¶
Index ¶
- type AggStats
- func (self *AggStats[T]) Avg(field string) (any, error)
- func (self *AggStats[T]) Count(field string) int
- func (self *AggStats[T]) FindMapVal(m any, key string) (any, bool)
- func (self *AggStats[T]) GetMapVal(m any, key string) any
- func (self *AggStats[T]) Max(field string) any
- func (self *AggStats[T]) Min(field string) any
- func (self *AggStats[T]) Stats(field string) StatRet
- func (self *AggStats[T]) Sum(field string) any
- type StatRet
- type StatRetKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggStats ¶
type AggStats[T baseindex.IndexMapping] struct { *webfacade.WebFacade[T] }
func Default ¶
func Default[T baseindex.IndexMapping]() *AggStats[T]
func DefaultOf ¶
func DefaultOf[T baseindex.IndexMapping](q elastic.Query) *AggStats[T]
func NewAggStats ¶
func NewAggStats[T baseindex.IndexMapping]() *AggStats[T]
type StatRetKey ¶
type StatRetKey struct {
Key StatRet `json:"key"`
}
func NewStatRetKey ¶
func NewStatRetKey() *StatRetKey
func (*StatRetKey) FromDataAgg ¶
func (self *StatRetKey) FromDataAgg(agg any) error
Click to show internal directories.
Click to hide internal directories.