service

package
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoIndexVersion  = errors.New("No index version has been specified")
	ErrNoElasticClient = errors.New("No ElasticSearch client available")
)

Functions

func NewElasticClient

func NewElasticClient(config EsAccessConfig) (*elastic.Client, error)

func NewEsService

func NewEsService(ch chan *elastic.Client, aliasName string, mappingFile string, aliasFilterFile string,
	indexVersion string, panicGuideUrl string, aliasForAllConcepts string) *esService

Types

type EsAccessConfig

type EsAccessConfig struct {
	// contains filtered or unexported fields
}

func NewAccessConfig

func NewAccessConfig(awsCreds *credentials.Credentials, region, endpoint, authType string, traceLogging bool) EsAccessConfig

type EsHealthService

type EsHealthService interface {
	GTG() gtg.Status
	ConnectivityHealthyCheck() fthealth.Check
	ClusterIsHealthyCheck() fthealth.Check
	IndexMappingsCheck() fthealth.Check
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL