testutil

package
v0.0.0-...-170c358 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InMemoryPublisher

type InMemoryPublisher struct {
	Events []beat.Event
	// contains filtered or unexported fields
}

InMemoryPublisher is a publisher which stores events in memory, to be used in unit tests

func NewInMemoryPublisher

func NewInMemoryPublisher() *InMemoryPublisher

NewInMemoryPublisher creates a new instance of InMemoryPublisher

func (*InMemoryPublisher) Publish

func (p *InMemoryPublisher) Publish(e beat.Event)

Publish stores a new event in memory

Jump to

Keyboard shortcuts

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