eventpipe

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package eventpipe provides a simple eventqueue.Queue implementation which is used to connect [a2asrv.AgentExecutor] with event processor. Events get to the real eventqueue only after they were successfully processed and applied to the [a2asrv.TaskStore].

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Local

type Local struct {
	Reader Reader
	// TODO(yarolegovich): change to eventqueue.Writer when AgentExecutor interface is updated
	Writer eventqueue.Queue
	// contains filtered or unexported fields
}

func NewLocal

func NewLocal(opts ...LocalPipeOption) *Local

func (*Local) Close

func (q *Local) Close()

type LocalPipeOption

type LocalPipeOption func(*localOptions)

func WithBufferSize

func WithBufferSize(size int) LocalPipeOption

type Reader added in v0.3.4

type Reader interface {
	// Read dequeues an event or blocks if the queue is empty.
	Read(ctx context.Context) (a2a.Event, error)
}

Jump to

Keyboard shortcuts

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