eventstream

package
v0.0.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendOutboxEvents

func AppendOutboxEvents(ctx context.Context, store registrystore.MemoryStore, events ...registryeventbus.Event) ([]registryeventbus.Event, bool, error)

AppendOutboxEvents writes normalized business events into the store-backed outbox when the datastore supports that optional capability.

func EntryEventData

func EntryEventData(entry model.Entry, groupID uuid.UUID) map[string]any

func EntryRoleFromContent

func EntryRoleFromContent(content []byte) string

func PublishEvents

PublishEvents publishes committed events using their routing metadata.

func ReplaySupported

func ReplaySupported(ctx context.Context, store registrystore.MemoryStore, outbox registrystore.EventOutboxStore) error

ReplaySupported reports whether the configured outbox implementation supports durable replay reads.

Types

type EntryDetailLoader

type EntryDetailLoader func(ctx context.Context, conversationID string, entryID uuid.UUID, channel *model.Channel) (*model.Entry, error)

type EntryEventFilter

type EntryEventFilter struct {
	// contains filtered or unexported fields
}

func EntryEventFilterFromQuery

func EntryEventFilterFromQuery(values url.Values) EntryEventFilter

func NewEntryEventFilter

func NewEntryEventFilter(channels, contentTypes, roles []string) EntryEventFilter

func (EntryEventFilter) Matches

type EntryEventMetadata

type EntryEventMetadata struct {
	ConversationID string
	EntryID        uuid.UUID
	Channel        string
	ContentType    string
	Role           string
}

func EntryMetadataFromEntry

func EntryMetadataFromEntry(entry model.Entry) EntryEventMetadata

Jump to

Keyboard shortcuts

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