htsget

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Htsget

func Htsget(_ []string, configPath string) error

Types

type HtsgetHeaders added in v0.3.1

type HtsgetHeaders struct {
	Range          string `json:"Range"`
	UserAgent      string `json:"user-agent"`
	Host           string `json:"host"`
	AcceptEncoding string `json:"accept-encoding"`
	Authorization  string `json:"authorization"`
}

type HtsgetInfo added in v0.3.1

type HtsgetInfo struct {
	Format  string      `json:"format"`
	Urls    []HtsgetURL `json:"urls"`
	Message string      `json:"message"` // message should be populated if http code != 200
}

type HtsgetResponse added in v0.3.1

type HtsgetResponse struct {
	Htsget HtsgetInfo `json:"htsget"`
}

type HtsgetURL added in v0.3.1

type HtsgetURL struct {
	URL     string        `json:"url"`
	Headers HtsgetHeaders `json:"headers"`
}

Jump to

Keyboard shortcuts

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