ctrl

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

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

Go to latest
Published: Feb 7, 2024 License: AGPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IconFavicon []byte

Functions

func ErrorPage

func ErrorPage(res http.ResponseWriter, err error, code int)

func HandleSocket

func HandleSocket(res http.ResponseWriter, req *http.Request)

func HandleStatic

func HandleStatic(res http.ResponseWriter, req *http.Request)

func HealthCheck

func HealthCheck(res http.ResponseWriter, req *http.Request)

func InitTunnel

func InitTunnel(tunnelServer string) (string, error)

func Main

func Main(res http.ResponseWriter, req *http.Request)

func Middleware

func Middleware(fn func(res http.ResponseWriter, req *http.Request)) func(res http.ResponseWriter, req *http.Request)

func RedirectTunnel

func RedirectTunnel(res http.ResponseWriter, req *http.Request)

func ServeFavicon

func ServeFavicon(res http.ResponseWriter, req *http.Request)

func ServeFile

func ServeFile(res http.ResponseWriter, req *http.Request, filePath string)

gzip compression was done using: find . -type f | grep -v '\.ts$' | grep -v '\.map$' | xargs gzip -f -k --best

Types

This section is empty.

Jump to

Keyboard shortcuts

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