elasticsearch

package
v0.0.0-...-59efaf5 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ESConfig

type ESConfig struct {
	Addresses    string `mapstructure:"EXPORTER_ELASTICSEARCH_ADDRESSES"`
	Username     string `mapstructure:"EXPORTER_ELASTICSEARCH_USERNAME"`
	Password     string `mapstructure:"EXPORTER_ELASTICSEARCH_PASSWORD"`
	CloudID      string `mapstructure:"EXPORTER_ELASTICSEARCH_CLOUDID"`
	APIKey       string `mapstructure:"EXPORTER_ELASTICSEARCH_APIKEY"`
	ServiceToken string `mapstructure:"EXPORTER_ELASTICSEARCH_SERVICETOKEN"`
	Fingerprint  string `mapstructure:"EXPORTER_ELASTICSEARCH_FINGERPRINT"`
}

type Exporter

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

func New

func New(cfg ESConfig) (*Exporter, error)

func (*Exporter) Export

func (e *Exporter) Export(ctx context.Context, msgc chan *pb.ProtoMessage)

func (*Exporter) ExportK8S

func (e *Exporter) ExportK8S(ctx context.Context, msgc chan *pb.K8SProtoMessage)

func (*Exporter) Stop

func (e *Exporter) Stop() error

Jump to

Keyboard shortcuts

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