dpa

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2026 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

This section is empty.

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 All

func All() []Authority

All returns every authority, in file order.

func ForCountry

func ForCountry(name string) *Authority

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.

func (Authority) Describe

func (a Authority) Describe() string

Describe is a one-line "Authority (ACRONYM) - website" for CLI/report output.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL