Documentation
¶
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 返回能力摘要。
Click to show internal directories.
Click to hide internal directories.