Documentation
¶
Overview ¶
Package dpa exposes the worldwide privacy / data-protection authority reference embedded from data/authorities.yaml.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Authority ¶
type Authority struct {
Country string `yaml:"country" json:"country"`
Code string `yaml:"code" json:"code"`
Region string `yaml:"region" json:"region"`
Law string `yaml:"law,omitempty" json:"law,omitempty"` // omitted for EU/EEA (always GDPR)
Authority string `yaml:"authority" json:"authority"`
Acronym string `yaml:"acronym,omitempty" json:"acronym,omitempty"`
Website string `yaml:"website" json:"website"`
Notes string `yaml:"notes,omitempty" json:"notes,omitempty"`
}
Authority is one privacy / data-protection authority. Website is the authority's own site in its own language.
func ForCountry ¶
ForCountry looks an authority up by the country name or ISO code a user might have in their profile (case-insensitive, tolerant of common variants). Returns nil if there's no match.