Documentation
¶
Overview ¶
Package amq provides an Agentic Message Queue SDK for agent communication
Index ¶
- func Version() string
- type AMQ
- func (a *AMQ) AdminSendDirect(ctx context.Context, from, to string, payload []byte) (*types.Message, error)
- func (a *AMQ) AdminSubmitTask(ctx context.Context, from, topic string, payload []byte) (*types.Message, error)
- func (a *AMQ) Close() error
- func (a *AMQ) CreateQueue(ctx context.Context, name string, qtype types.QueueType) error
- func (a *AMQ) DeleteQueue(ctx context.Context, name string) error
- func (a *AMQ) GetClientInfo(ctx context.Context, clientID string) (*types.Client, error)
- func (a *AMQ) GetQueueStats(ctx context.Context, queueName string) (*types.QueueStats, error)
- func (a *AMQ) ListClients(ctx context.Context, filter ClientFilter) ([]*types.Client, error)
- func (a *AMQ) ListQueues(ctx context.Context) ([]*types.Queue, error)
- func (a *AMQ) Manager() *queue.Manager
- func (a *AMQ) NewAsyncConsumer(id string, opts ...client.ClientOption) (client.AsyncConsumer, error)
- func (a *AMQ) NewClient(id string, opts ...client.ClientOption) (client.Client, error)
- type ClientFilter
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AMQ ¶
type AMQ struct {
// contains filtered or unexported fields
}
AMQ is the main client for the Agentic Message Queue
func (*AMQ) AdminSendDirect ¶
func (a *AMQ) AdminSendDirect(ctx context.Context, from, to string, payload []byte) (*types.Message, error)
AdminSendDirect allows direct message sending (for admin/testing)
func (*AMQ) AdminSubmitTask ¶
func (a *AMQ) AdminSubmitTask(ctx context.Context, from, topic string, payload []byte) (*types.Message, error)
AdminSubmitTask allows direct task submission (for admin/testing)
func (*AMQ) CreateQueue ¶
CreateQueue creates a new queue
func (*AMQ) DeleteQueue ¶
DeleteQueue deletes a queue
func (*AMQ) GetClientInfo ¶
GetClientInfo returns information about a client
func (*AMQ) GetQueueStats ¶
GetQueueStats returns statistics for a queue
func (*AMQ) ListClients ¶
ListClients returns clients based on filter
func (*AMQ) ListQueues ¶
ListQueues returns all queues in the system
func (*AMQ) NewAsyncConsumer ¶
func (a *AMQ) NewAsyncConsumer(id string, opts ...client.ClientOption) (client.AsyncConsumer, error)
NewAsyncConsumer creates a new asynchronous consumer
type ClientFilter ¶
ClientFilter defines filters for listing clients
type Config ¶
type Config struct {
// StorePath is the path to the BadgerDB data directory
StorePath string
// WorkerPoolSize is the number of worker goroutines per queue
WorkerPoolSize int
// HeartbeatInterval is how often agents should send heartbeats
HeartbeatInterval time.Duration
// MessageTimeout is the default timeout for message processing
MessageTimeout time.Duration
}
Config holds AMQ configuration
Directories
¶
| Path | Synopsis |
|---|---|
|
api
|
|
|
internal
|
|
|
version
Package version provides build version information.
|
Package version provides build version information. |
|
pkg
|
|
|
errors
Package errors provides error types for amq
|
Package errors provides error types for amq |
|
types
Package types contains shared types for amq
|
Package types contains shared types for amq |
|
Package main provides a shared library for signing and verification.
|
Package main provides a shared library for signing and verification. |
Click to show internal directories.
Click to hide internal directories.