golib

package module
v0.0.0-...-5c2aded Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 19 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IPDisplayHandler

func IPDisplayHandler(w http.ResponseWriter, r *http.Request)

func IPRecordHandler

func IPRecordHandler(fileName string) http.HandlerFunc

func IsInFile

func IsInFile(strName, filePath string) bool

func ProxyHandler

func ProxyHandler(hostname, username, password string, custom http.Handler) http.Handler

func ServeHTTP

func ServeHTTP(hostname, port string, handler http.Handler) error

func ServeHTTPS

func ServeHTTPS(hostname, port string, handler http.Handler, tlsConfig *tls.Config) error

func TLSConfigApplication

func TLSConfigApplication(hostname string) (*tls.Config, error)

func TLSConfigGeneration

func TLSConfigGeneration(hostname string) (*tls.Config, error)

func WebdavHandler

func WebdavHandler(dir, prefix string) http.Handler

Types

type ParsedURL

type ParsedURL struct {
	Scheme   string
	Username string
	Password string
	Hostname string
	Port     string
	Path     string
	Fragment string
}

func URLParse

func URLParse(rawURL string) (ParsedURL, error)

Jump to

Keyboard shortcuts

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