taskstore

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: 11 Imported by: 0

Documentation

Overview

Package taskstore provides types and utilities for storing a2a.Task snapshots.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator added in v0.3.4

type Authenticator func(context.Context) (UserName, bool)

type Mem

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

func NewMem

func NewMem(opts ...Option) *Mem

NewMem creates an empty Mem store.

func (*Mem) Get

func (s *Mem) Get(ctx context.Context, taskID a2a.TaskID) (*a2a.Task, a2a.TaskVersion, error)

func (*Mem) List added in v0.3.4

func (*Mem) Save

func (s *Mem) Save(ctx context.Context, task *a2a.Task, event a2a.Event, prevVersion a2a.TaskVersion) (a2a.TaskVersion, error)

type Option added in v0.3.4

type Option func(*Mem)

func WithAuthenticator added in v0.3.4

func WithAuthenticator(a Authenticator) Option

func WithTimeProvider added in v0.3.4

func WithTimeProvider(tp TimeProvider) Option

type TimeProvider added in v0.3.4

type TimeProvider func() time.Time

type UserName added in v0.3.4

type UserName string

Jump to

Keyboard shortcuts

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