Predicates returns the list of predicates for given group
()
| 303 | |
| 304 | // Predicates returns the list of predicates for given group |
| 305 | func (s *state) Predicates() []string { |
| 306 | if s == nil { |
| 307 | return nil |
| 308 | } |
| 309 | |
| 310 | s.RLock() |
| 311 | defer s.RUnlock() |
| 312 | var out []string |
| 313 | for k := range s.predicate { |
| 314 | out = append(out, k) |
| 315 | } |
| 316 | return out |
| 317 | } |
| 318 | |
| 319 | // Types returns the list of types. |
| 320 | func (s *state) Types() []string { |
no test coverage detected