Documentation
¶
Overview ¶
Package taskstore provides types and utilities for storing a2a.Task snapshots.
Index ¶
- type Authenticator
- type Mem
- func (s *Mem) Get(ctx context.Context, taskID a2a.TaskID) (*a2a.Task, a2a.TaskVersion, error)
- func (s *Mem) List(ctx context.Context, req *a2a.ListTasksRequest) (*a2a.ListTasksResponse, error)
- func (s *Mem) Save(ctx context.Context, task *a2a.Task, event a2a.Event, prev *a2a.Task, ...) (a2a.TaskVersion, error)
- type Option
- type TimeProvider
- type UserName
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mem ¶
type Mem struct {
// contains filtered or unexported fields
}
func (*Mem) List ¶ added in v0.3.4
func (s *Mem) List(ctx context.Context, req *a2a.ListTasksRequest) (*a2a.ListTasksResponse, 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
Click to show internal directories.
Click to hide internal directories.