syslogd

package
v0.0.0-...-463082b Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2014 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Format

type Format int
const (
	RFC3164 Format = iota // RFC3164: http://www.ietf.org/rfc/rfc3164.txt
	RFC5424               // RFC5424: http://www.ietf.org/rfc/rfc5424.txt
)

type Server

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

func NewServer

func NewServer() *Server

NewServer build a new server

func (*Server) ListenUDP

func (s *Server) ListenUDP(addr string) error

ListenUDP add a server to listen on an UDP addr

func (*Server) ListenUnixgram

func (s *Server) ListenUnixgram(addr string) error

ListenUnixgram add a server to listen on a unix socket

func (*Server) SetFormat

func (s *Server) SetFormat(format Format)

SetFormat the syslog format

func (*Server) Start

func (s *Server) Start(channel chan syslogparser.LogParts)

Start reading syslog records

Jump to

Keyboard shortcuts

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