mirror

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

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mirror

func Mirror(p string) error

Types

type Cache

type Cache struct {
	HTML []byte
	JSON []byte
	// contains filtered or unexported fields
}

type File

type File struct {
	URL  string `json:"url"`
	Size int64  `json:"size"`
	// contains filtered or unexported fields
}

func (*File) HumanReadableSize

func (f *File) HumanReadableSize() string

func (*File) ShortName

func (f *File) ShortName() string

type Group

type Group struct {
	Name  string `json:"name"`
	Files []File `json:"urls"`
}

type JSONResponse

type JSONResponse struct {
	Data []Group `json:"data"`
}

Jump to

Keyboard shortcuts

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