Documentation ¶
Index ¶
Constants ¶
View Source
const PacketDropLogTimeLayout = "2006-01-02T15:04:05.000000-07:00"
Variables ¶
This section is empty.
Functions ¶
func RunParsing ¶
func RunParsing(logPrefix string, logChangeCh <-chan string, packetDropCh chan<- PacketDrop)
Parse the logs from given channel and insert objects of PacketDrop as parsing result to another channel
Types ¶
type PacketDrop ¶
PacketDrop is the result object parsed from single raw log containing information about an iptables packet drop.
func (PacketDrop) GetLogTime ¶
func (pd PacketDrop) GetLogTime() (time.Time, error)
Get the time object of PacketDrop log time
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
Watcher handles detecting any changes on the given file and passing those changes through Go Channel to be parsed.
func InitWatcher ¶
Init a watcher object and return its pointer
Click to show internal directories.
Click to hide internal directories.