Documentation
¶
Rendered for windows/amd64
Index ¶
- type PerfCounterWatcherMock
- func (w *PerfCounterWatcherMock) Close() error
- func (PerfCounterWatcherMock) Path() string
- func (PerfCounterWatcherMock) Reset() error
- func (PerfCounterWatcherMock) ScrapeData() ([]winperfcounters.CounterValue, error)
- func (w *PerfCounterWatcherMock) ScrapeRawValue(rawValue *int64) (bool, error)
- func (w *PerfCounterWatcherMock) ScrapeRawValues() ([]winperfcounters.RawCounterValue, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PerfCounterWatcherMock ¶
type PerfCounterWatcherMock struct { Val int64 ScrapeErr error CloseErr error // contains filtered or unexported fields }
func (*PerfCounterWatcherMock) Close ¶
func (w *PerfCounterWatcherMock) Close() error
Close all counters/handles related to the query and free all associated memory.
func (PerfCounterWatcherMock) Path ¶
func (PerfCounterWatcherMock) Path() string
Path panics; It should not be called
func (PerfCounterWatcherMock) Reset ¶
func (PerfCounterWatcherMock) Reset() error
Reset panics; it should not be called
func (PerfCounterWatcherMock) ScrapeData ¶
func (PerfCounterWatcherMock) ScrapeData() ([]winperfcounters.CounterValue, error)
ScrapeData returns scrapeErr if it's set, otherwise it returns a single countervalue with the mock's val
func (*PerfCounterWatcherMock) ScrapeRawValue ¶
func (w *PerfCounterWatcherMock) ScrapeRawValue(rawValue *int64) (bool, error)
ScrapeRawValue implements winperfcounters.PerfCounterWatcher.
func (*PerfCounterWatcherMock) ScrapeRawValues ¶
func (w *PerfCounterWatcherMock) ScrapeRawValues() ([]winperfcounters.RawCounterValue, error)
ScrapeRawValues implements winperfcounters.PerfCounterWatcher.
Click to show internal directories.
Click to hide internal directories.