Documentation
¶
Index ¶
- type AfterCompletionPlugin
- type ESClient
- func (c *ESClient) CompletedTask(ctx context.Context, taskID string) (bool, error)
- func (c *ESClient) GetIndexSetting(ctx context.Context, index string) (numberOfReplicas int, refreshInterval int, err error)
- func (c *ESClient) Reindex(ctx context.Context, src string, dest string) (string, error)
- func (c *ESClient) UpdateIndexSetting(ctx context.Context, index string, numberOfReplicas int, refreshInterval int) error
- type GetTaskRes
- type IndesSettingRes
- type ReindexManager
- type ReindexRes
- type Setting
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AfterCompletionPlugin ¶
type ESClient ¶
type ESClient struct {
// contains filtered or unexported fields
}
func NewESClient ¶
func NewESClient(es *elasticsearch.Client) *ESClient
func (*ESClient) CompletedTask ¶
func (*ESClient) GetIndexSetting ¶
type GetTaskRes ¶
type GetTaskRes struct {
Completed bool `json:"completed"`
}
type IndesSettingRes ¶
type ReindexManager ¶
type ReindexManager struct {
// contains filtered or unexported fields
}
func NewReindexManager ¶
func NewReindexManager(client *ESClient, store Store) *ReindexManager
func (*ReindexManager) NotifyCompletionPlugin ¶
func (m *ReindexManager) NotifyCompletionPlugin(p AfterCompletionPlugin)
func (*ReindexManager) PublishReindexTask ¶
type ReindexRes ¶
type ReindexRes struct {
Task string `json:"task"`
}
Click to show internal directories.
Click to hide internal directories.