app

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package app 装配 agent 端服务到 app.AgentApplication 接口。

设计目标:让 relay pipeline 仅依赖 internal/pkg/app 抽象接口, 而非具体的 *cache.Store / *relay transport pool。 本包就是把这些具体类型适配/封装成接口实现,供 server 装配使用。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDefaultAgentApplication

func NewDefaultAgentApplication(
	store *cache.Store,
	bodyStore appkg.BodyStore,
	logger *zap.Logger,
	cfg *config.AgentRuntimeConfig,
	pool appkg.TransportPool,
	legacyOwners ...*agentlegacy.TransportOwner,
) appkg.AgentApplication

NewDefaultAgentApplication 装配 agent 服务到 app.AgentApplication 接口。

参数:

  • store: agent 缓存(内部包装成 agentCache 暴露 per-attempt route finders)
  • logger / cfg / pool: 直接持有

所有依赖均允许为 nil,构造本身不 panic——具体调用各 Getter 后用其方法可能 panic, 由调用方负责装配完整性。

Types

This section is empty.

Jump to

Keyboard shortcuts

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