edgarimporter

package
v0.0.0-...-0697edd Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewEDGARClient

func NewEDGARClient(endpoint *url.URL, userAgent string) *Client

func (*Client) GetBulkData

func (c *Client) GetBulkData(ctx context.Context) ([]byte, error)

type EDGAR

type EDGAR struct {
	// contains filtered or unexported fields
}

func New

func New(
	insertCompany *usecases.InsertCompany,
	edgarClient EDGARClient,
) *EDGAR

func (*EDGAR) DoImport

func (e *EDGAR) DoImport(ctx context.Context) error

func (*EDGAR) ImportFile

func (e *EDGAR) ImportFile(ctx context.Context, file io.Reader) error

func (*EDGAR) ImportFilesFromArchive

func (e *EDGAR) ImportFilesFromArchive(
	ctx context.Context,
	archive *zip.Reader,
) error

type EDGARClient

type EDGARClient interface {
	// GetBulkData stores the whole file in memory as zip archives require to be
	// read in full in order to be unzipped.
	GetBulkData(ctx context.Context) ([]byte, error)
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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