Versions in this module Expand all Collapse all v1 v1.1.1 Feb 11, 2016 v1.1.0 Feb 2, 2016 Changes in this version + const DONT_RESOLVE_DLL_REFERENCES — windows/amd64 + const ERROR_EVENTLOG_FILE_CHANGED — windows/amd64 + const ERROR_EVENTLOG_FILE_CORRUPT — windows/amd64 + const ERROR_MR_MID_NOT_FOUND — windows/amd64 + const EVENTLOG_AUDIT_FAILURE — windows/amd64 + const EVENTLOG_AUDIT_SUCCESS — windows/amd64 + const EVENTLOG_ERROR_TYPE — windows/amd64 + const EVENTLOG_INFORMATION_TYPE — windows/amd64 + const EVENTLOG_SUCCESS — windows/amd64 + const EVENTLOG_WARNING_TYPE — windows/amd64 + const LOAD_IGNORE_CODE_AUTHZ_LEVEL — windows/amd64 + const LOAD_LIBRARY_AS_DATAFILE — windows/amd64 + const LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE — windows/amd64 + const LOAD_LIBRARY_AS_IMAGE_RESOURCE — windows/amd64 + const LOAD_LIBRARY_SEARCH_APPLICATION_DIR — windows/amd64 + const LOAD_LIBRARY_SEARCH_DEFAULT_DIRS — windows/amd64 + const LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR — windows/amd64 + const LOAD_LIBRARY_SEARCH_SYSTEM32 — windows/amd64 + const LOAD_LIBRARY_SEARCH_USER_DIRS — windows/amd64 + const LOAD_WITH_ALTERED_SEARCH_PATH — windows/amd64 + const MaxEventBufferSize — windows/amd64 + const MaxFormatMessageBufferSize — windows/amd64 + func ClearEventLog(handle Handle, backupFileName string) error — windows/amd64 + func CloseEventLog(handle Handle) error — windows/amd64 + func EventLogs() ([]string, error) — windows/amd64 + func FreeLibrary(handle uintptr) error — windows/amd64 + func GetNumberOfEventLogRecords(handle Handle) (uint32, error) — windows/amd64 + func GetOldestEventLogRecord(handle Handle) (uint32, error) — windows/amd64 + func IsAvailable() (bool, error) — windows/amd64 + func ReadEventLog(handle Handle, flags EventLogReadFlag, recordID uint32, buffer []byte) (int, error) — windows/amd64 + func RemoveWindowsLineEndings(s string) string + func UTF16BytesToString(b []byte) (string, int, error) + type Event struct + Category string + Computer string + EventID uint32 + Level string + Message string + MessageErr error + MessageInserts []string + RecordID uint32 + SourceName string + TimeGenerated *time.Time + TimeWritten *time.Time + UserSID *SID + UserSIDErr error + func RenderEvents(eventsRaw []byte, lang uint32, buffer []byte, ...) ([]Event, int, error) + type EventLogReadFlag uint32 — windows/amd64 + const EVENTLOG_BACKWARDS_READ + const EVENTLOG_FORWARDS_READ + const EVENTLOG_SEEK_READ + const EVENTLOG_SEQUENTIAL_READ + type EventType uint16 — windows/amd64 + func (et EventType) String() string + type FileHandle struct + Err error + File string + Handle uintptr + type Handle uintptr — windows/amd64 + func OpenEventLog(uncServerPath, logName string) (Handle, error) + type InsufficientBufferError struct + Cause error + RequiredSize int + func (e InsufficientBufferError) Error() string + type MessageFiles struct + Err error + Handles []FileHandle + SourceName string + func QueryEventMessageFiles(providerName, sourceName string) MessageFiles + type SID struct + Domain string + Identifier string + Name string + Type SIDType + func (a SID) String() string + type SIDType uint32 + const SidTypeAlias + const SidTypeComputer + const SidTypeDeletedAccount + const SidTypeDomain + const SidTypeGroup + const SidTypeInvalid + const SidTypeLabel + const SidTypeUnknown + const SidTypeUser + const SidTypeWellKnownGroup + func (st SIDType) String() string