publishermetadatacache

package
v0.74.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Rendered for windows/amd64

Overview

Package publishermetadatacache provides a cache for Windows Event Log publisher metadata handles

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PublisherMetadataCache

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

PublisherMetadataCache implements the Component interface

func New

New creates a new publishermetadatacache

func (*PublisherMetadataCache) Flush

func (c *PublisherMetadataCache) Flush()

Flush cleans up all cached handles when the component shuts down

func (*PublisherMetadataCache) FormatMessage

func (c *PublisherMetadataCache) FormatMessage(publisherName string, event evtapi.EventRecordHandle, flags uint) (string, error)

FormatMessage formats an event message using the cached EventPublisherMetadataHandle.

func (*PublisherMetadataCache) Get

Get retrieves a cached EventPublisherMetadataHandle for the given publisher name. If not found in cache, it calls EvtOpenPublisherMetadata and caches the result.

Jump to

Keyboard shortcuts

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