ui_embed

package
v0.0.0-...-ef05d19 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const ProxyPortNo = 277

Variables

This section is empty.

Functions

func GetUIHandler

func GetUIHandler() http.Handler

func GetUISanitizer

func GetUISanitizer(handler http.HandlerFunc) http.HandlerFunc

GetUISanitizer removes sensitive values from a request, to ensure clients can't do shenanigans with them

func NewProxy

func NewProxy(
	dialer func(context.Context, string, string) (net.Conn, error),
	director func(*http.Request),
) *httputil.ReverseProxy

func OOBDialer

func OOBDialer(n proto.Netopus) func(context.Context, string, string) (net.Conn, error)

func OOBDirector

func OOBDirector(req *http.Request)

func PlaygroundHandler

func PlaygroundHandler(w http.ResponseWriter, req *http.Request)

func UnixSocketDialer

func UnixSocketDialer(socketFile string) func(ctx context.Context, network, addr string) (net.Conn, error)

func UnixSocketDirector

func UnixSocketDirector(req *http.Request)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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