capability

package
v0.1.27 Latest Latest
Warning

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

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

Documentation

Overview

Package capability 封装能力聚合(频道/配对计数等)的 HTTP handlers。

L2 | 父级: internal/handler(L1 见 AGENTS.md)

成员清单:

  • handlers.go:Handlers 及 ChannelSummaryCounter 计数聚合。

[PROTOCOL]: 变更时更新此头部,然后检查父级入口 AGENTS.md(L1)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelSummaryCounter

type ChannelSummaryCounter interface {
	CountConfiguredChannels(context.Context, string) (int, error)
	CountConnectedChannels(context.Context, string) (int, error)
	CountActivePairings(context.Context, string) (int, error)
}

ChannelSummaryCounter 抽象频道与配对计数能力。

type Handlers

type Handlers struct {
	// contains filtered or unexported fields
}

Handlers 封装 capability summary handler。

func New

func New(
	api *handlershared.API,
	skills *skillspkg.Service,
	connectors *connectorsvc.Service,
	automation *automationsvc.Service,
	channels ...ChannelSummaryCounter,
) *Handlers

New 创建 capability handlers。

func (*Handlers) HandleCapabilitySummary

func (h *Handlers) HandleCapabilitySummary(writer http.ResponseWriter, request *http.Request)

HandleCapabilitySummary 返回能力摘要。

Jump to

Keyboard shortcuts

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