elasticsearch

package
v0.0.0-...-f6b4a90 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(content interface{}) (protocol.Output, error)

Types

type EsConfig

type EsConfig struct {
	Host      string `yaml:"host"`
	Index     string `yaml:"index"`
	BatchSize int    `yaml:"batchsize"`
}

type EsOutput

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

func (*EsOutput) Run

func (output *EsOutput) Run()

func (*EsOutput) Send

func (output *EsOutput) Send(doc map[string]interface{})

func (*EsOutput) Stop

func (output *EsOutput) Stop()

Jump to

Keyboard shortcuts

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