Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FlushDNSCache ¶
func FlushDNSCache() error
FlushDNSCache executes windows command to flush the DNS cache
func Unzip ¶
Unzip helper function to unzip a file to a destination folder source code from : https://stackoverflow.com/questions/20357223/easy-way-to-unzip-file-with-golang
Types ¶
type WindowsLogger ¶
type WindowsLogger struct { Channel string Source string // contains filtered or unexported fields }
WindowsLogger structure definition
func NewWindowsLogger ¶
func NewWindowsLogger(channel, source string) (wl *WindowsLogger, err error)
NewWindowsLogger creates a new WindowsLogger structure
func (*WindowsLogger) Close ¶
func (w *WindowsLogger) Close() error
Close closes the logger in a clean fashion
func (*WindowsLogger) Log ¶
func (w *WindowsLogger) Log(eventid int, entrytype, message string)
Log logs a message through powershell Write-EventLog
Click to show internal directories.
Click to hide internal directories.