provider

package
v0.0.0-...-7224a45 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnumerateProviderKeywords

func EnumerateProviderKeywords(providerGUID GUID) (map[string]uint64, error)

EnumerateProviderKeywords returns a mapping of a keyword name to a keyword value.

For listing keywords (for "Windows Kernel Trace" provider) by a command line use: `logman query providers "Windows Kernel Trace"`.

func EnumerateProviders

func EnumerateProviders() (map[string]GUID, error)

EnumerateProviders returns a mapping of provider name to guid.

For enumerating providers by a command line use: `logman query providers "Windows Kernel Trace"`.

Types

type GUID

type GUID struct {
	Data1 uint32
	Data2 uint16
	Data3 uint16
	Data4 [8]byte
}

GUID is a Go-copy of windows GUID struct. See: https://docs.microsoft.com/en-us/windows/win32/api/guiddef/ns-guiddef-guid.

func ParseGUID

func ParseGUID(s string) (GUID, error)

ParseGUID return guid from string.

func ParseName

func ParseName(providerName string) (guid GUID, err error)

ParseName converts provider name into guid.

func (*GUID) MarshalJSON

func (g *GUID) MarshalJSON() ([]byte, error)

func (*GUID) String

func (g *GUID) String() string

Jump to

Keyboard shortcuts

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