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

Function getChannelConfig

agent/app/service/agents_channels.go:1442–1449  ·  view source on GitHub ↗
(conf map[string]interface{}, channel string)

Source from the content-addressed store, hash-verified

1440}
1441
1442func getChannelConfig(conf map[string]interface{}, channel string) map[string]interface{} {
1443 channels, ok := conf["channels"].(map[string]interface{})
1444 if !ok {
1445 return nil
1446 }
1447 channelMap, _ := channels[channel].(map[string]interface{})
1448 return channelMap
1449}
1450
1451func childMap(parent map[string]interface{}, key string) map[string]interface{} {
1452 if parent == nil {

Callers 6

extractFeishuConfigFunction · 0.85
extractTelegramConfigFunction · 0.85
extractDiscordConfigFunction · 0.85
extractQQBotConfigFunction · 0.85
extractDingTalkConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected