eventlogging

package
v0.0.0-...-85bd4b8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2021 License: Apache-2.0, Apache-2.0 Imports: 19 Imported by: 0

Documentation

Rendered for windows/amd64

Overview

Copied from https://github.com/streamsets/windataextractor/tree/master/dev/src/lib/win/eventlog

Copied from https://github.com/streamsets/windataextractor/tree/master/dev/src/lib/win/eventlog

Index

Constants

View Source
const (
	//https://msdn.microsoft.com/en-us/library/windows/desktop/aa363674(v=vs.85).aspx
	// -> Max buffer size allowed 0x7ffff (which is equal to 524287)
	BufferSizeMax = uint32(524287)
	EventSize     = uint32(unsafe.Sizeof(w32.EVENTLOGRECORD{}))
)

Variables

This section is empty.

Functions

func NewEventLoggingReader

func NewEventLoggingReader(
	baseStage *common.BaseStage,
	logName string,
	mode wincommon.EventLogReaderMode,
	bufferSize int,
	maxBatchSize int,
	lastSourceOffset string,
) (wincommon.EventLogReader, error)

func ReadFromRegistryKey

func ReadFromRegistryKey(keyPath string, dataKeys []string) (map[string]string, error)

func ReleaseResourceLibraries

func ReleaseResourceLibraries()

Types

type ServiceStore

type ServiceStore struct {
	// contains filtered or unexported fields
}

func NewServiceConfig

func NewServiceConfig(serviceName string) *ServiceStore

func NewServiceData

func NewServiceData(serviceName string) *ServiceStore

func NewServiceRaw

func NewServiceRaw(serviceName string) *ServiceStore

func (*ServiceStore) Read

func (serviceStore *ServiceStore) Read(configKeys []string) (map[string]string, error)

func (*ServiceStore) Write

func (serviceStore *ServiceStore) Write(config map[string]string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL