Documentation
¶
Overview ¶
Package upstream provides the upstream service implementation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Upstream ¶
type Upstream interface {
// Shutdown gracefully terminates the upstream service.
Shutdown(ctx context.Context) error
// Register inspects the upstream service defined by the serviceConfig,
// discovers its capabilities, and registers them.
//
// ctx is the context for the registration process.
// serviceConfig contains the configuration for the upstream service.
// toolManager is the manager where discovered tools will be registered.
// promptManager is the manager where discovered prompts will be registered.
// resourceManager is the manager where discovered resources will be registered.
// isReload indicates whether this is an initial registration or a reload of an
// existing service.
// It returns a unique service key, a list of discovered tool definitions, and
// an error if registration fails.
Register(
ctx context.Context,
serviceConfig *configv1.UpstreamServiceConfig,
toolManager tool.ManagerInterface,
promptManager prompt.ManagerInterface,
resourceManager resource.ManagerInterface,
isReload bool,
) (string, []*configv1.ToolDefinition, []*configv1.ResourceDefinition, error)
}
Upstream defines the standard interface for all backend service integrations. Each implementation of this interface is responsible for discovering and registering its capabilities, such as tools, prompts, and resources, with the appropriate managers.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package command provides command execution functionality.
|
Package command provides command execution functionality. |
|
Package factory provides upstream factory functionality.
|
Package factory provides upstream factory functionality. |
|
Package graphql provides GraphQL upstream integration.
|
Package graphql provides GraphQL upstream integration. |
|
Package grpc provides gRPC upstream integration.
|
Package grpc provides gRPC upstream integration. |
|
protobufparser
Package protobufparser provides a parser for Protocol Buffers.
|
Package protobufparser provides a parser for Protocol Buffers. |
|
Package mcp provides MCP upstream integration.
|
Package mcp provides MCP upstream integration. |
|
Package openapi provides OpenAPI integration for the upstream service.
|
Package openapi provides OpenAPI integration for the upstream service. |
|
Package webrtc provides WebRTC upstream integration.
|
Package webrtc provides WebRTC upstream integration. |
|
Package websocket provides WebSocket upstream integration.
|
Package websocket provides WebSocket upstream integration. |
Click to show internal directories.
Click to hide internal directories.