MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / scopeHasStarMatch

Function scopeHasStarMatch

pkg/wps/wps.go:52–60  ·  view source on GitHub ↗
(scope string)

Source from the content-addressed store, hash-verified

50}
51
52func scopeHasStarMatch(scope string) bool {
53 parts := strings.Split(scope, ":")
54 for _, part := range parts {
55 if part == "*" || part == "**" {
56 return true
57 }
58 }
59 return false
60}
61
62func (b *BrokerType) SetClient(client Client) {
63 b.Lock.Lock()

Callers 1

SubscribeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected