event

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

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