MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / parseStatusFilter

Function parseStatusFilter

controller/channel.go:44–53  ·  view source on GitHub ↗
(statusParam string)

Source from the content-addressed store, hash-verified

42}
43
44func parseStatusFilter(statusParam string) int {
45 switch strings.ToLower(statusParam) {
46 case "enabled", "1":
47 return common.ChannelStatusEnabled
48 case "disabled", "0":
49 return 0
50 default:
51 return -1
52 }
53}
54
55func GetAllChannels(c *gin.Context) {
56 pageInfo := common.GetPageQuery(c)

Callers 2

GetAllChannelsFunction · 0.85
SearchChannelsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected