wwiki

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

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

Go to latest
Published: Jun 2, 2021 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package wwiki handles the Wikimedia w.wiki link shortener.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadDumps

func DownloadDumps(dir string) error

DownloadDumps saves all short URL dumps to the given directory.

func DownloadIADumps

func DownloadIADumps(dir string) error

DownloadIADumps saves all short URL dumps that have been archived by the Internet Archive to the given directory.

Types

type DumpInfo

type DumpInfo struct {
	URL  *url.URL
	Time time.Time
	Size int64
}

DumpInfo contains information on a short URL dump.

func GetDumps

func GetDumps() ([]DumpInfo, error)

GetDumps retrieves information on all short URL dumps.

type IADumpInfo

type IADumpInfo struct {
	URL       string
	Timestamp string
	SHA1      [20]byte
}

IADumpInfo contains basic Internet Archive metadata on a short URL dump.

func GetIADumps

func GetIADumps() ([]IADumpInfo, error)

GetIADumps retrieves information on all short URL dumps that have been archived by the Internet Archive.

Jump to

Keyboard shortcuts

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