elasticsearch

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Codec added in v0.5.1

type Codec interface {
	EncodeElasticRecords(records []*models.Record) ([]*models.ElasticRecord, error)
}

func NewCodec added in v0.5.1

func NewCodec(logger log.Logger, config Config) Codec

type Config

type Config struct {
	Host               string
	User               string
	Pwd                string
	IgnoreCertificate  bool
	Scheme             string
	Index              string
	IndexPrefix        string
	IndexColumn        string
	DocIDColumn        string
	BlacklistedColumns []string
	BulkTimeout        time.Duration
	Backoff            time.Duration
	TimeSuffix         TimeIndexSuffix
	DisableSniffing    bool
}

func NewConfig

func NewConfig() Config

type InsertResponse added in v0.5.3

type InsertResponse struct {
	AlreadyExists []string
	Retry         []*models.ElasticRecord
	Backoff       bool
}

type RecordDatabase

type RecordDatabase interface {
	Insert(records []*models.ElasticRecord) (*InsertResponse, error)
	ReadinessCheck() bool
	// contains filtered or unexported methods
}

func NewDatabase

func NewDatabase(logger log.Logger, config Config, metrics metrics.MetricsPublisher) RecordDatabase

type TimeIndexSuffix added in v0.6.0

type TimeIndexSuffix int
const (
	TimeSuffixDay  TimeIndexSuffix = 0
	TimeSuffixHour TimeIndexSuffix = 1
)

Jump to

Keyboard shortcuts

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