Versions in this module Expand all Collapse all v1 v1.5.0 Jan 6, 2022 v1.4.0 Nov 16, 2021 Changes in this version + func GetIndicesNum(indices *IndexGroup) (num int) + type IndexEntry struct + Active bool + DocsCount int + DocsDeleted int + Fixed bool + Index string + Keys []string + MaxT time.Time + MinT time.Time + Num int64 + StoreBytes int64 + StoreSize string + type IndexEntrys []*IndexEntry + func (entrys IndexEntrys) Len() int + func (entrys IndexEntrys) Less(i, j int) bool + func (entrys IndexEntrys) Swap(i, j int) + type IndexGroup struct + Fixed []*IndexEntry + Groups map[string]*IndexGroup + List []*IndexEntry + type Interface interface + AllIndices func() *IndexGroup + Client func() *elastic.Client + IndexGroup func(path ...string) *IndexGroup + Indices func(ctx context.Context, start, end int64, path ...KeyPath) (list []string) + Keys func(path ...string) []string + LoadMode func() LoadMode + Match func(index string) *index.MatchResult + Prefixes func() []string + QueryIndexTimeRange func() bool + ReloadIndices func() error + RequestTimeout func() time.Duration + URLs func() string + WaitAndGetIndices func(ctx context.Context) *IndexGroup + WatchLoadEvent func(func(*IndexGroup)) + func Find(ctx servicehub.Context, log logs.Logger, required bool) (Interface, error) + type KeyPath struct + Keys []string + Recursive bool + type LoadMode string + const LoadFromCacheOnly + const LoadFromElasticSearchOnly + const LoadWithCache + type Matcher func(index *IndexEntry) bool