elasticsearch

package
v0.0.0-...-bb20dc4 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2016 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BulkIndexer

type BulkIndexer interface {
	// Index documents
	Index(body []byte) error
	// Check if a flush is needed
	CheckFlush(count int, length int) bool
}

A BulkIndexer is used to index documents in ElasticSearch

type HttpBulkIndexer

type HttpBulkIndexer struct {
	// Protocol (http or https).
	Protocol string
	// Host name and port number (default to "localhost:9200").
	Domain string
	// Maximum number of documents.
	MaxCount int
	// contains filtered or unexported fields
}

A HttpBulkIndexer uses the HTTP REST Bulk Api of ElasticSearch in order to index documents

func NewHttpBulkIndexer

func NewHttpBulkIndexer(protocol string, domain string, maxCount int,
	username string, password string, httpTimeout uint32, httpDisableKeepalives bool,
	connectTimeout uint32, tlsConf *tls.Config) *HttpBulkIndexer

func (*HttpBulkIndexer) CheckFlush

func (h *HttpBulkIndexer) CheckFlush(count int, length int) bool

func (*HttpBulkIndexer) Index

func (h *HttpBulkIndexer) Index(body []byte) error

type MongodbOutput

type MongodbOutput struct {
	FailedCount int64
	// contains filtered or unexported fields
}

func (*MongodbOutput) Init

func (self *MongodbOutput) Init(conf toml.Primitive) error

func (*MongodbOutput) Run

func (self *MongodbOutput) Run(runner plugins.OutputRunner) error

type MongodbOutputConfig

type MongodbOutputConfig struct {
	Host, Port, Database, Collection string
	User, Password                   string
	Capped                           bool
	CappedSize                       int `toml:"capped_size"`
}

Jump to

Keyboard shortcuts

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