memevent

package
v0.0.0-...-9a2cfe9 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2021 License: Apache-2.0, MIT Imports: 8 Imported by: 0

Documentation

Overview

Package memevent implements the memory usage events controller, which periodically emits events via the eventchannel.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemoryEvents

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

MemoryEvents describes the configuration for the global memory event emitter.

func New

func New(k *kernel.Kernel, period time.Duration) *MemoryEvents

New creates a new MemoryEvents.

func (*MemoryEvents) Start

func (m *MemoryEvents) Start()

Start starts the memory usage events emitter goroutine. Start must not be called concurrently with Stop and may only be called once.

func (*MemoryEvents) Stop

func (m *MemoryEvents) Stop()

Stop stops the memory usage events emitter goroutine. Stop must not be called concurrently with Start and may only be called once.

Jump to

Keyboard shortcuts

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