urlhandler

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsURL

func IsURL(path string) bool

IsURL checks if a path is a URL

Types

type URLHandler

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

URLHandler handles downloading files from URLs

func NewURLHandler

func NewURLHandler() *URLHandler

NewURLHandler creates a new URL handler

func (*URLHandler) Cleanup

func (h *URLHandler) Cleanup() error

Cleanup removes all downloaded temp files

func (*URLHandler) GetTempFiles

func (h *URLHandler) GetTempFiles() []string

GetTempFiles returns the list of downloaded temp files

func (*URLHandler) ResolveFiles

func (h *URLHandler) ResolveFiles(filePaths []string) ([]string, error)

ResolveFiles takes a list of file paths and resolves any URLs by downloading them Returns the list of local file paths (either original local paths or downloaded temp files)

Jump to

Keyboard shortcuts

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