Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ES ¶
func (*ES) GetIndexInfo ¶
func (e *ES) GetIndexInfo(name string) (SettingsIndexInfo, error)
func (*ES) GetIndexStatus ¶
func (e *ES) GetIndexStatus(name string) (IndexStatus, error)
*
type IndexStatus struct { IndexName string AliaseName string PlanIndexA bool PlanIndexB bool }
IndexName 为空 表示尚未场景索引,走首次推送流程 IndexName 有值 AliaseName 为空 表示有索引,但是非程序生成,返回空信息 IndexName 有值 AliaseName 有值 PlanIndexA&PlanIndexB 其中一个为true 表示非首次运行 PlanIndexA&PlanIndexB 为true 表示程序正在运行
type EsInterface ¶
type EsInterface interface { NewEsObj(config EsConfig) (*elastic.Client, error) GetIndexInfo(name string) (SettingsIndexInfo, error) GetIndexStatus(name string) (IndexStatus, error) }
type IndexStatus ¶
Click to show internal directories.
Click to hide internal directories.