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.
Click to show internal directories.
Click to hide internal directories.