netutils

package
v0.0.0-...-c5e0fe0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadHandler

func DownloadHandler(
	w http.ResponseWriter,
	r *http.Request,
	p string,
	h map[string]string,
	isExistf func(string) (bool, error)) (bool, error)

func ExtractHeaders

func ExtractHeaders(path string) (http.Header, error)

func GenerateCert

func GenerateCert(out string, name string, org []string, notAfter time.Time)

func IsIPv4

func IsIPv4(ip net.IP) bool

func SetHeaders

func SetHeaders(w http.ResponseWriter, h map[string]string)

Types

type AvailableIp

type AvailableIp struct {
	Name   string
	Ip     net.IP
	IsIPv4 bool
}

func AvailableInterfaces

func AvailableInterfaces() ([]AvailableIp, error)

type DownloadFileHeaders

type DownloadFileHeaders struct {
	Name      string
	Size      int
	Resumable bool
}

Jump to

Keyboard shortcuts

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