Documentation
¶
Index ¶
- func DownloadFile(url, outFilePath string) error
- func DownloadFileBytes(url string) ([]byte, error)
- func DownloadZipsIfNotPresent(downloads []*DisclosureDownload) error
- func GenerateAllZipUrls() []string
- func GenerateZipUrlForYear(year int) string
- func GetTransactionReportMembers(downloads []*DisclosureDownload, dataFolder string) ([]*model.Member, error)
- type DisclosureDownload
- type Downloadable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadFile ¶
func DownloadFileBytes ¶
func DownloadZipsIfNotPresent ¶
func DownloadZipsIfNotPresent(downloads []*DisclosureDownload) error
func GenerateAllZipUrls ¶
func GenerateAllZipUrls() []string
func GenerateZipUrlForYear ¶
func GetTransactionReportMembers ¶
func GetTransactionReportMembers(downloads []*DisclosureDownload, dataFolder string) ([]*model.Member, error)
GetTransactionReportMembers returns a slice of members that have transaction reports This is the list of Members for which to download PDF files
Types ¶
type DisclosureDownload ¶
type DisclosureDownload struct { Url string FileName string BaseFilePath string ZipPath string XmlPath string CsvPath string }
func NewDisclosureDownload ¶
func NewDisclosureDownload(url, baseFolder string) *DisclosureDownload
func (*DisclosureDownload) Download ¶
func (d *DisclosureDownload) Download() error
func (*DisclosureDownload) Extract ¶
func (d *DisclosureDownload) Extract() error
func (*DisclosureDownload) ToString ¶
func (d *DisclosureDownload) ToString() string
func (*DisclosureDownload) XmlIsPresent ¶
func (d *DisclosureDownload) XmlIsPresent() bool
func (*DisclosureDownload) ZipIsPresent ¶
func (d *DisclosureDownload) ZipIsPresent() bool
type Downloadable ¶
func DownloadMultiple ¶
func DownloadMultiple(values []*Downloadable) ([]*Downloadable, error)
func (*Downloadable) UpdateBytes ¶
func (d *Downloadable) UpdateBytes(bytes []byte)
Click to show internal directories.
Click to hide internal directories.