downloader

package
v0.0.0-...-48c782e Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteCountIEC

func ByteCountIEC(b int64) string

func FindXMLInZipAndSave

func FindXMLInZipAndSave(b []byte) (fn string, err error)

func LoadDumpDate

func LoadDumpDate() (d int, err error)

func SaveDumpDate

func SaveDumpDate(d int) error

Types

type Downloader

type Downloader struct {
	SOAP *gosoap.Client
}

func New

func New(endpoint string) (*Downloader, error)

type GetdateRes

type GetdateRes struct {
	Date int `xml:"lastDumpDate"`
}

type Resp

type Resp struct {
	Result bool   `xml:"result"`
	Zip    []byte `xml:"registerZipArchive"`
}

Jump to

Keyboard shortcuts

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