Versions in this module Expand all Collapse all v0 v0.1.1 Jul 11, 2023 v0.1.0 Jul 11, 2023 Changes in this version + const SkipAll + func Download(cl *Client, url string) (tmpname string, err error) + func ScanCsv(r io.Reader, enc encoding.Encoding, rower ReadCsvRower) error + func ScanZip(name string, filer ReadZipFiler) error + type Client struct + func NewClient(ctx context.Context, d time.Duration, cacheDir string, numTx int) (*Client, error) + func (cl *Client) Do(req *http.Request) (*http.Response, error) + func (cl *Client) Get(url string) (resp *http.Response, err error) + func (cl *Client) Head(url string) (resp *http.Response, err error) + func (cl *Client) LastTransaction() error + func (cl *Client) NewTransaction() error + func (cl *Client) Post(url, contentType string, body io.Reader) (resp *http.Response, err error) + func (cl *Client) PostForm(url string, data url.Values) (resp *http.Response, err error) + func (cl *Client) PostJson(url string, data any) (resp *http.Response, err error) + func (cl *Client) SetTransaction(name string) error + type ReadCsvRower interface + Done func() error + ReadRow func(i int, row []string) error + type ReadCsvRowerFunc func(int, []string) error + func (fn ReadCsvRowerFunc) Done() error + func (fn ReadCsvRowerFunc) ReadRow(i int, row []string) error + type ReadZipFiler interface + Done func() error + ReadFile func(file *zip.File) error + type ReadZipFilerFunc func(*zip.File) error + func (fn ReadZipFilerFunc) Done() error + func (fn ReadZipFilerFunc) ReadFile(file *zip.File) error + type TestEvents []string + func (ev *TestEvents) Add(a ...any) + func (ev *TestEvents) Addf(format string, a ...any) + func (ev *TestEvents) Reset()