fetch

package
v0.0.0-...-3c526b0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const CompanySearchURL = "https://e-disclosure.ru/poisk-po-kompaniyam"

Variables

This section is empty.

Functions

func DownloadReport

func DownloadReport(sess *Session, rep *models.Report, dstDir string) string

func DownloadReportToBrowser

func DownloadReportToBrowser(sess *Session, rep *models.Report, w http.ResponseWriter)

func FetchDocListPage

func FetchDocListPage(sess *Session, companyId int, t models.DocType) []byte

func FetchInfo

func FetchInfo(sess *Session, inn string) models.CompanyInfo

func FetchSpec

func FetchSpec(ticker string) (map[string]any, error)

Types

type Session

type Session struct {
	Client *http.Client
	Cookie []*http.Cookie
}

func NewSession

func NewSession(domain string) *Session

Jump to

Keyboard shortcuts

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