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

Function IsValidChannel

channels/set.go:60–62  ·  view source on GitHub ↗
(channel string)

Source from the content-addressed store, hash-verified

58}
59
60func IsValidChannel(channel string) bool {
61 return len(channel) > 0 && !strings.Contains(channel, ",")
62}
63
64// Creates a new Set from an array of strings. Returns an error if any names are invalid.
65func SetFromArray(names []string, mode StarMode) (base.Set, error) {

Callers 5

SetFromArrayFunction · 0.85
SetOfFunction · 0.85
TestIsValidChannelFunction · 0.85
ValidateMethod · 0.85
TimedSetFromStringFunction · 0.85

Calls 1

ContainsMethod · 0.65

Tested by 1

TestIsValidChannelFunction · 0.68