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: 0

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