Versions in this module Expand all Collapse all v0 v0.4.12 Feb 21, 2019 Changes in this version + type Channel uint8 + const ChannelTraceLogging + type EnableCallback func(*windows.GUID, ProviderState, Level, uint64, uint64, uintptr) + type EventData struct + func (ed *EventData) Bytes() []byte + func (ed *EventData) WriteInt16(value int16) + func (ed *EventData) WriteInt32(value int32) + func (ed *EventData) WriteInt64(value int64) + func (ed *EventData) WriteInt8(value int8) + func (ed *EventData) WriteString(data string) + func (ed *EventData) WriteUint16(value uint16) + func (ed *EventData) WriteUint32(value uint32) + func (ed *EventData) WriteUint64(value uint64) + func (ed *EventData) WriteUint8(value uint8) + type EventDescriptor struct + Channel Channel + Keyword uint64 + Level Level + Opcode uint8 + Task uint16 + func NewEventDescriptor() *EventDescriptor + func (ed *EventDescriptor) Identity() uint32 + func (ed *EventDescriptor) SetIdentity(identity uint32) + type EventMetadata struct + func (em *EventMetadata) Bytes() []byte + func (em *EventMetadata) WriteArray(name string, inType InType, outType OutType, tags uint32) + func (em *EventMetadata) WriteCountedArray(name string, count uint16, inType InType, outType OutType, tags uint32) + func (em *EventMetadata) WriteEventHeader(name string, tags uint32) + func (em *EventMetadata) WriteField(name string, inType InType, outType OutType, tags uint32) + func (em *EventMetadata) WriteStruct(name string, fieldCount uint8, tags uint32) + type EventOpt func(options *eventOptions) + func WithActivityID(activityID *windows.GUID) EventOpt + func WithChannel(channel Channel) EventOpt + func WithEventOpts(opts ...EventOpt) []EventOpt + func WithKeyword(keyword uint64) EventOpt + func WithLevel(level Level) EventOpt + func WithRelatedActivityID(activityID *windows.GUID) EventOpt + func WithTags(newTags uint32) EventOpt + type FieldOpt func(em *EventMetadata, ed *EventData) + func BoolArray(name string, values []bool) FieldOpt + func BoolField(name string, value bool) FieldOpt + func Float32Array(name string, values []float32) FieldOpt + func Float32Field(name string, value float32) FieldOpt + func Float64Array(name string, values []float64) FieldOpt + func Float64Field(name string, value float64) FieldOpt + func Int16Array(name string, values []int16) FieldOpt + func Int16Field(name string, value int16) FieldOpt + func Int32Array(name string, values []int32) FieldOpt + func Int32Field(name string, value int32) FieldOpt + func Int64Array(name string, values []int64) FieldOpt + func Int64Field(name string, value int64) FieldOpt + func Int8Array(name string, values []int8) FieldOpt + func Int8Field(name string, value int8) FieldOpt + func IntArray(name string, values []int) FieldOpt + func IntField(name string, value int) FieldOpt + func StringArray(name string, values []string) FieldOpt + func StringField(name string, value string) FieldOpt + func Struct(name string, opts ...FieldOpt) FieldOpt + func Uint16Array(name string, values []uint16) FieldOpt + func Uint16Field(name string, value uint16) FieldOpt + func Uint32Array(name string, values []uint32) FieldOpt + func Uint32Field(name string, value uint32) FieldOpt + func Uint64Array(name string, values []uint64) FieldOpt + func Uint64Field(name string, value uint64) FieldOpt + func Uint8Array(name string, values []uint8) FieldOpt + func Uint8Field(name string, value uint8) FieldOpt + func UintArray(name string, values []uint) FieldOpt + func UintField(name string, value uint) FieldOpt + func UintptrArray(name string, values []uintptr) FieldOpt + func UintptrField(name string, value uintptr) FieldOpt + func WithFields(opts ...FieldOpt) []FieldOpt + type InType byte + const InTypeANSIString + const InTypeArray + const InTypeBinary + const InTypeBool32 + const InTypeCountedANSIString + const InTypeCountedArray + const InTypeCountedBinary + const InTypeCountedString + const InTypeDouble + const InTypeFileTime + const InTypeFloat + const InTypeGUID + const InTypeHexInt32 + const InTypeHexInt64 + const InTypeInt16 + const InTypeInt32 + const InTypeInt64 + const InTypeInt8 + const InTypeNull + const InTypePointerUnsupported + const InTypeSID + const InTypeStruct + const InTypeSystemTime + const InTypeUint16 + const InTypeUint32 + const InTypeUint64 + const InTypeUint8 + const InTypeUnicodeString + type Level uint8 + const LevelAlways + const LevelCritical + const LevelError + const LevelInfo + const LevelVerbose + const LevelWarning + type OutType byte + const OutTypeBoolean + const OutTypeCodePointer + const OutTypeDateTimeUTC + const OutTypeDefault + const OutTypeFileTime + const OutTypeHResult + const OutTypeHex + const OutTypeIPv4 + const OutTypeIPv6 + const OutTypeJSON + const OutTypeNTStatus + const OutTypeNoPrint + const OutTypePID + const OutTypePKCS7WithTypeInfo + const OutTypePort + const OutTypeSigned + const OutTypeSocketAddress + const OutTypeString + const OutTypeTID + const OutTypeUTF8 + const OutTypeUnsigned + const OutTypeWin32Error + const OutTypeXML + type Provider struct + ID *windows.GUID + func NewProvider(name string, callback EnableCallback) (provider *Provider, err error) + func NewProviderWithID(name string, id *windows.GUID, callback EnableCallback) (provider *Provider, err error) + func (provider *Provider) Close() error + func (provider *Provider) IsEnabled() bool + func (provider *Provider) IsEnabledForLevel(level Level) bool + func (provider *Provider) IsEnabledForLevelAndKeywords(level Level, keywords uint64) bool + func (provider *Provider) String() string + func (provider *Provider) WriteEvent(name string, eventOpts []EventOpt, fieldOpts []FieldOpt) error + func (provider *Provider) WriteEventRaw(descriptor *EventDescriptor, activityID *windows.GUID, ...) error + type ProviderState uint32 + const ProviderStateCaptureState + const ProviderStateDisable + const ProviderStateEnable