MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / countOpenclawConfiguredChannels

Function countOpenclawConfiguredChannels

agent/app/service/agents_overview.go:88–102  ·  view source on GitHub ↗
(conf map[string]interface{})

Source from the content-addressed store, hash-verified

86}
87
88func countOpenclawConfiguredChannels(conf map[string]interface{}) int {
89 channels, ok := conf["channels"].(map[string]interface{})
90 if !ok {
91 return 0
92 }
93 count := 0
94 for _, value := range channels {
95 channel, ok := value.(map[string]interface{})
96 if !ok || len(channel) == 0 {
97 continue
98 }
99 count++
100 }
101 return count
102}
103
104func loadOpenclawOverviewSkillStats(containerName string) (int, error) {
105 output, err := cmd.RunDockerExecWithStdout(5*time.Minute, containerName, "openclaw", "skills", "list", "--json")

Callers 1

GetOverviewMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected