logstash

package
v0.0.0-...-d60b765 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EventChannel  chan string = make(chan string, 20)
	ConsoleOutput bool
)

Functions

This section is empty.

Types

type LogstashClient

type LogstashClient struct {
	Hostname      string
	Port          int
	Connection    *net.TCPConn
	SocketTimeout int
}

func NewLogstashClient

func NewLogstashClient(hostname string, port int, socketTimeoutMS int) *LogstashClient

func (*LogstashClient) Connect

func (logstash *LogstashClient) Connect() (*net.TCPConn, error)

func (*LogstashClient) ReadEventsFromBacklog

func (logstash *LogstashClient) ReadEventsFromBacklog()

func (*LogstashClient) Send

func (logstash *LogstashClient) Send(message string) error

func (*LogstashClient) SendEventToBacklog

func (logstash *LogstashClient) SendEventToBacklog(message string)

Jump to

Keyboard shortcuts

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