downloader

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const URLTemplate = "https://tiles.telegeography.com/maps/submarine-cable-map-%d/%d/%d/%d.%s"

Variables

View Source
var ErrMissingYear = errors.New("could not find year")
View Source
var ErrNoFormat = errors.New("could not discover file format")
View Source
var ErrUnexpectedResponse = errors.New("unexpected response")

Functions

This section is empty.

Types

type Downloader

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

func New

func New(c *config.Config) *Downloader

func (*Downloader) CheckYear

func (d *Downloader) CheckYear(ctx context.Context) error

func (*Downloader) Do

func (d *Downloader) Do(ctx context.Context) (image.Image, error)

func (*Downloader) FindFormat

func (d *Downloader) FindFormat(ctx context.Context) error

Jump to

Keyboard shortcuts

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