type Whitelist
structWhitelist manages whitelisted agent addresses.
Methods on Whitelist
func AddAddresses
method on WhitelistAddAddresses adds the given addresses to the whitelist.
func ClearAddresses
method on WhitelistClearAddresses removes all addresses from the whitelist and puts into a state that indicates it is moot and has no whitelist defined.
func HasAddress
method on WhitelistHasAddress returns true if the given address is in the whitelist.
func HasDefinition
method on WhitelistHasDefinition returns true if the whitelist has a definition. It retuns false if `ClearAddresses` has been called without any subsequent `AddAddresses` calls, or if `AddAddresses` has never been called.
func RemoveAddress
method on WhitelistRemoveAddress removes the given address from the whitelist if it exists.