Documentation ¶
Index ¶
- Variables
- func NewElasticsearch(conf output.Config, mgr bundle.NewManagement) (output.Streamed, error)
- type Elasticsearch
- func (e *Elasticsearch) CloseAsync()
- func (e *Elasticsearch) Connect() error
- func (e *Elasticsearch) ConnectWithContext(ctx context.Context) error
- func (e *Elasticsearch) WaitForClose(timeout time.Duration) error
- func (e *Elasticsearch) Write(msg message.Batch) error
- func (e *Elasticsearch) WriteWithContext(ctx context.Context, msg message.Batch) error
Constants ¶
This section is empty.
Variables ¶
var AWSOptFn = notImportedAWSOptFn
AWSOptFn is populated with the child `aws` package when imported.
Functions ¶
func NewElasticsearch ¶
NewElasticsearch creates a new Elasticsearch output type.
Types ¶
type Elasticsearch ¶
type Elasticsearch struct {
// contains filtered or unexported fields
}
Elasticsearch is a writer type that writes messages into elasticsearch.
func NewElasticsearchV2 ¶
func NewElasticsearchV2(conf output.ElasticsearchConfig, mgr bundle.NewManagement) (*Elasticsearch, error)
NewElasticsearchV2 creates a new Elasticsearch writer type.
func (*Elasticsearch) CloseAsync ¶
func (e *Elasticsearch) CloseAsync()
CloseAsync shuts down the Elasticsearch writer and stops processing messages.
func (*Elasticsearch) Connect ¶
func (e *Elasticsearch) Connect() error
Connect attempts to establish a connection to a Elasticsearch broker.
func (*Elasticsearch) ConnectWithContext ¶
func (e *Elasticsearch) ConnectWithContext(ctx context.Context) error
ConnectWithContext attempts to establish a connection to a Elasticsearch broker.
func (*Elasticsearch) WaitForClose ¶
func (e *Elasticsearch) WaitForClose(timeout time.Duration) error
WaitForClose blocks until the Elasticsearch writer has closed down.
func (*Elasticsearch) Write ¶
func (e *Elasticsearch) Write(msg message.Batch) error
Write will attempt to write a message to Elasticsearch, wait for acknowledgement, and returns an error if applicable.
func (*Elasticsearch) WriteWithContext ¶
WriteWithContext will attempt to write a message to Elasticsearch, wait for acknowledgement, and returns an error if applicable.