dpl

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download

func Download(logger log.Logger, initialDir string) (map[string]io.ReadCloser, error)

Download returns an array of absolute filepaths for files downloaded

Types

type DPL

type DPL struct {
	// Name is the name of the Denied Person
	Name string `json:"name"`
	// StreetAddress is the Denied Person's street address
	StreetAddress string `json:"streetAddress"`
	// City is the Denied Person's city
	City string `json:"city"`
	// State is the Denied Person's state
	State string `json:"state"`
	// Country is the Denied Person's country
	Country string `json:"country"`
	// PostalCode is the Denied Person's postal code
	PostalCode string `json:"postalCode"`
	// EffectiveDate is the date the denial came into effect
	EffectiveDate string `json:"effectiveDate"`
	// ExpirationDate is the date the denial expires. If blank, the denial has no expiration
	ExpirationDate string `json:"expirationDate"`
	// StandardOrder denotes whether or not the Person was added to the list by a "standard" order
	StandardOrder string `json:"standardOrder"`
	// LastUpdate is the date of the most recent change to the denial
	LastUpdate string `json:"lastUpdate"`
	// Action is the most recent action taken regarding the denial
	Action string `json:"action"`
	// FRCitation is the reference to the order's citation in the Federal Register
	FRCitation string `json:"frCitation"`
}

DPL is the BIS Denied Persons List

func Read

func Read(f io.ReadCloser) ([]*DPL, error)

Read parses DPL records from a TXT file and populates the associated arrays.

For more details on the raw DPL files see https://moov-io.github.io/watchman/file-structure.html

Jump to

Keyboard shortcuts

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