elasticsearch

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Test

func Test(endpoint string) bool

Test the schema to see if its an elasticsearch schema

Types

type Syslog

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

Syslog creates a new syslog output to elasticsearch

func Create

func Create(endpoint string, errorsCh chan<- error) (*Syslog, error)

Create a new elasticsearch endpoint

func (*Syslog) Close

func (log *Syslog) Close() error

Close closes the connection to elasticsearch

func (*Syslog) Dial

func (log *Syslog) Dial() error

Dial connects to an elasticsearch

func (*Syslog) Packets

func (log *Syslog) Packets() chan syslog.Packet

Packets returns a channel to send syslog packets on

func (*Syslog) Pools

func (log *Syslog) Pools() bool

Pools returns whether the elasticsearch end point pools connections

Jump to

Keyboard shortcuts

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