(scope string)
| 50 | } |
| 51 | |
| 52 | func 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 | |
| 62 | func (b *BrokerType) SetClient(client Client) { |
| 63 | b.Lock.Lock() |