eventlogtest

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 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 MemoryEventLog

type MemoryEventLog struct {
	AllEvents []*proto.ConversationEvent
	// contains filtered or unexported fields
}

MemoryEventLog is an in-memory EventLog useful for testing and short-lived executions. It does not survive process restarts.

func (*MemoryEventLog) Append

func (*MemoryEventLog) Close

func (m *MemoryEventLog) Close() error

func (*MemoryEventLog) DeleteAll

func (m *MemoryEventLog) DeleteAll(_ context.Context, conversationID string) error

func (*MemoryEventLog) Drop

func (m *MemoryEventLog) Drop(drop func(*proto.ConversationEvent) bool)

Drop removes every event for which drop returns true. It is provided for testing and crash-simulation purposes.

func (*MemoryEventLog) Events

func (m *MemoryEventLog) Events(_ context.Context, conversationID string) ([]*proto.ConversationEvent, error)

Jump to

Keyboard shortcuts

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