Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logstash ¶
type Logstash struct { Connection *net.TCPConn Timeout int //Timeout in seconds Host string // Host in host:port format // contains filtered or unexported fields }
Logstash is the basic struct
type Record ¶
type Record map[string]interface{}
Record holds the parent struct of what we will send to logstash
func (*Record) SetIfEmpty ¶
SetIfEmpty sets a value if one doesn't already exist
func (*Record) ToJSONBytes ¶
ToJSONBytes marshalls to a byte array
Click to show internal directories.
Click to hide internal directories.