Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidFormat = errors.New("invalid format")
Functions ¶
This section is empty.
Types ¶
type CLI ¶
type CLI struct { Dgram string `long:"dgram" description:"Listen for unix diagrams at a path"` TCP string `short:"t" long:"tcp" description:"Listen on a TCP port"` UDP string `short:"u" long:"udp" description:"Listen on a UDP port"` OctetCounted bool `short:"c" long:"octet-counted" default:"true" description:"For TCP, use RFC6587 encoded messages"` }
type Plugin ¶
type Plugin struct { Dgram string `description:"unix datagram path to listen on"` TCP string `description:"tcp host:port to listen on"` UDP string `description:"udp host:port to listen on"` OctetCounted bool `toml:"octet_counted" description:"Use octet counted format"` }
func (*Plugin) Description ¶
type Syslog ¶
type Syslog struct { // Use RFC6587 encoded messages OctetCounted bool TotalBytes *uint64 // contains filtered or unexported fields }
func NewSyslogDgram ¶
func NewSyslogTCP ¶
Click to show internal directories.
Click to hide internal directories.