Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FacilityGetName ¶
func SeverityGetName ¶
Types ¶
type SyslogMsgHandler ¶
type SyslogMsgHandler func(*SyslogMsg)
type SyslogServer ¶
type SyslogServer interface {
Close()
Start()
}
type SyslogServerTCP ¶
type SyslogServerTCP struct {
Running bool
SyslogCh chan *SyslogMsg
Closing chan bool
// contains filtered or unexported fields
}
func ListenTCP ¶
func ListenTCP(proto string, inaddr string, handler SyslogMsgHandler) (*SyslogServerTCP, error)
func (*SyslogServerTCP) Close ¶
func (t *SyslogServerTCP) Close()
func (*SyslogServerTCP) Start ¶
func (t *SyslogServerTCP) Start()
type SyslogServerUDP ¶
type SyslogServerUDP struct {
Running bool
SyslogCh chan *SyslogMsg
Closing chan bool
// contains filtered or unexported fields
}
func ListenUDP ¶
func ListenUDP(proto string, inaddr string, handler SyslogMsgHandler) (*SyslogServerUDP, error)
func (*SyslogServerUDP) Close ¶
func (u *SyslogServerUDP) Close()
func (*SyslogServerUDP) Start ¶
func (u *SyslogServerUDP) Start()
Click to show internal directories.
Click to hide internal directories.