syslog

package
v0.0.0-...-c2832fb Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2016 License: BSD-3-Clause Imports: 14 Imported by: 0

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"`
}

func (*CLI) Execute

func (s *CLI) Execute(args []string) error

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

func (p *Plugin) Description() string

func (*Plugin) Generator

func (s *Plugin) Generator() (cypress.Generator, error)

type Syslog

type Syslog struct {
	// Use RFC6587 encoded messages
	OctetCounted bool

	TotalBytes *uint64
	// contains filtered or unexported fields
}

func NewSyslogDgram

func NewSyslogDgram(path string) (*Syslog, error)

func NewSyslogFromConn

func NewSyslogFromConn(c net.Conn) (*Syslog, error)

func NewSyslogFromListener

func NewSyslogFromListener(l net.Listener) (*Syslog, error)

func NewSyslogTCP

func NewSyslogTCP(addr string) (*Syslog, error)

func (*Syslog) Run

func (s *Syslog) Run(r cypress.Receiver) error

func (*Syslog) Stop

func (s *Syslog) Stop() error

Jump to

Keyboard shortcuts

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