config.go 186 B

12345678910
  1. package testing
  2. type CacheConfig struct {
  3. TrustedTags map[string]bool
  4. }
  5. func (this *CacheConfig) IsTrustedSource(tag string) bool {
  6. _, found := this.TrustedTags[tag]
  7. return found
  8. }