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