observer

package
v0.1.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package observer lets an operator watch every task of an a2a-go server without touching the agent's executor.

a2a-go sends a push notification for each task event to every config that push.ConfigStore.List returns for that task. Store wraps the server's ConfigStore and appends one more config, the operator's subscriber, so the operator's console receives every event while client-registered webhooks keep working unchanged.

The subscriber also shows up when a client lists the task's push configs. A runtime that owns the task store should deliver to its own console directly instead.

Index

Constants

View Source
const SubscriberID = "operator-observer"

SubscriberID is the push config ID used for the operator's subscriber.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	push.ConfigStore
	// contains filtered or unexported fields
}

Store is a push.ConfigStore that adds the operator's subscriber to every task.

func Wrap

func Wrap(inner push.ConfigStore, url, token string) *Store

Wrap returns inner with a subscriber that receives every task event at url. token is sent in the A2A-Notification-Token header so the receiver can authenticate it.

func (*Store) List

func (s *Store) List(ctx context.Context, taskID a2a.TaskID) ([]*a2a.PushConfig, error)

List returns the configs stored for the task plus the operator's subscriber.

Jump to

Keyboard shortcuts

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