MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / illegalChannelError

Function illegalChannelError

channels/set.go:56–58  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

54type present struct{}
55
56func illegalChannelError(name string) error {
57 return base.HTTPErrorf(400, "Illegal channel name %q", name)
58}
59
60func IsValidChannel(channel string) bool {
61 return len(channel) > 0 && !strings.Contains(channel, ",")

Callers 3

SetFromArrayFunction · 0.85
SetOfFunction · 0.85
ValidateMethod · 0.85

Calls 1

HTTPErrorfFunction · 0.92

Tested by

no test coverage detected