event

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: Apache-2.0 Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package event replaces libbeat's beat.Event, common.MapStr, publisher.Event, and publisher.Batch.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Batch

type Batch interface {
	Events() []Event
	SetEvents(events []Event)
	ACK()
	Drop()
	Retry()
	RetryEvents(events []Event)
	Cancelled()
	CancelledEvents(events []Event)
}

Batch is a collection of events to be published as a unit, replacing libbeat's publisher.Batch interface.

type Event

type Event struct {
	Timestamp time.Time
	Meta      MapStr
	Fields    MapStr
	Private   interface{}
}

Event is a single event to publish, replacing libbeat's beat.Event/publisher.Event.

type MapStr

type MapStr map[string]interface{}

MapStr is a flat string-keyed metadata/fields map, replacing libbeat's common.MapStr.

Jump to

Keyboard shortcuts

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