dispatcher

package
v0.0.11-dev Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package dispatcher owns the bounded in-memory queue that decouples pollers from MCP workers.

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module(
	"dispatcher",
	fx.Provide(
		newPolledCommandQueue,
		newConfiguredChannelBindings,
		fx.Annotate(newHarpoonChannelBinding, fx.ResultTags(`group:"dispatcher_channel_bindings"`)),
		newProcessorChannelBindings,
		dispatcherinternal.NewProcessor,
		dispatcherinternal.NewQueueListener,
	),
	fx.Invoke(startQueueListener),
)

Module registers the dispatcher components with the Fx graph. It provides the bounded polled command queue sized according to ControlPlaneConfig, constructs the Processor that consumes commands from that queue and calls downstream MCP servers, and starts the listener goroutine that drains the queue when the app lifecycle begins.

Functions

This section is empty.

Types

type Params

type Params struct {
	fx.In

	ControlPlane  *config.ControlPlaneConfig
	MeterProvider *sdkmetric.MeterProvider
}

Params captures the dependencies needed to size the dispatcher work queue.

type Result

type Result struct {
	fx.Out

	PolledCommandQueue controlplane.PolledCommandQueue
}

Result exposes the bounded queue that downstream components consume.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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