utils

package
v0.0.0-...-3478799 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package utils is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EtwEvent

type EtwEvent struct {
	Provider      string
	EventID       int
	TimeCreated   time.Time
	EventRecordID int
}

* Class that represents an ETW event.

type MockUtilsInterface

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

MockUtilsInterface is a mock of UtilsInterface interface.

func NewMockUtilsInterface

func NewMockUtilsInterface(ctrl *gomock.Controller) *MockUtilsInterface

NewMockUtilsInterface creates a new mock instance.

func (*MockUtilsInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockUtilsInterface) GetEventRecordIdBookmark

func (m *MockUtilsInterface) GetEventRecordIdBookmark(bookmarkStore store.PersistentKeyValueStoreInterface, query string) int

GetEventRecordIdBookmark mocks base method.

func (*MockUtilsInterface) ParseEventXML

func (m *MockUtilsInterface) ParseEventXML(eventXML string) EtwEvent

ParseEventXML mocks base method.

type MockUtilsInterfaceMockRecorder

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

MockUtilsInterfaceMockRecorder is the mock recorder for MockUtilsInterface.

func (*MockUtilsInterfaceMockRecorder) GetEventRecordIdBookmark

func (mr *MockUtilsInterfaceMockRecorder) GetEventRecordIdBookmark(bookmarkStore, query interface{}) *gomock.Call

GetEventRecordIdBookmark indicates an expected call of GetEventRecordIdBookmark.

func (*MockUtilsInterfaceMockRecorder) ParseEventXML

func (mr *MockUtilsInterfaceMockRecorder) ParseEventXML(eventXML interface{}) *gomock.Call

ParseEventXML indicates an expected call of ParseEventXML.

type Utils

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

* Class that contains utilities used in BladeMonRT classes.

func NewUtils

func NewUtils() *Utils

func (*Utils) GetEventRecordIdBookmark

func (utils *Utils) GetEventRecordIdBookmark(bookmarkStore store.PersistentKeyValueStoreInterface, query string) int

func (*Utils) ParseEventXML

func (utils *Utils) ParseEventXML(eventXML string) EtwEvent

* Parses out the event `Provider`, `EventID`, TimeCreated(`SystemTime`), `EventRecordID` (which is different from event ID) from the event XML.

type UtilsInterface

type UtilsInterface interface {
	ParseEventXML(eventXML string) EtwEvent
	GetEventRecordIdBookmark(bookmarkStore store.PersistentKeyValueStoreInterface, query string) int
}

Jump to

Keyboard shortcuts

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