stream

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StreamItem

type StreamItem struct {
	Event     *events.Event           `json:"event,omitempty"`
	SelfAudit *storage.SelfAuditEntry `json:"self_audit,omitempty"`
}

StreamItem represents a single item to be streamed to a target.

type Target

type Target interface {
	// Name returns the name of the stream target.
	Name() string
	// Type returns the type identifier of the stream target.
	Type() string
	// Enabled returns true if the target is enabled.
	Enabled() bool
	// Send sends the stream items to the target.
	Send(ctx context.Context, items []StreamItem) error
	// Close allows the target to clean up any resources.
	Close() error
}

Target defines the interface for a stream destination.

Jump to

Keyboard shortcuts

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