Exemplo n.º 1
0
func init() {
	abfPlatformsSet = set.NewSet()
	for _, v := range abfPlatforms {
		abfPlatformsSet.Add(v.(string))
	}

	abfArchWhitelistSet = set.NewSet()
	for _, v := range abfArchWhitelist {
		abfArchWhitelistSet.Add(v.(string))
	}

	abfClient = &http.Client{
		Timeout: time.Second * 60,
	}

	if abfEnable {
		Implementations["abf"] = &ABF{}
	}
}
Exemplo n.º 2
0
func init() {
	adminWhitelistSet = set.NewSet()
	for _, v := range adminWhitelist {
		adminWhitelistSet.Add(v.(string))
	}
}