proxyUi

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func ReplaceTemplate

func ReplaceTemplate(path string) error

func WriteBadGateway

func WriteBadGateway(w http.ResponseWriter, variableData VariableData)

func WriteHealthOk

func WriteHealthOk(w http.ResponseWriter)

func WriteInterstitialAnnounce

func WriteInterstitialAnnounce(w http.ResponseWriter, htmlPath string)

func WriteNotFound

func WriteNotFound(w http.ResponseWriter, variableData VariableData)

func WriteTemplate

func WriteTemplate(w http.ResponseWriter, statusCode int, variableData VariableData)

func WriteUnauthorized

func WriteUnauthorized(w http.ResponseWriter, variableData VariableData)

Types

type VariableData

type VariableData struct {
	Title   string
	Banner  string
	Message string
	Error   error
}

func NotFoundData

func NotFoundData(shareToken string) VariableData

func RequiredData

func RequiredData(title, banner string) VariableData

func UnauthorizedData

func UnauthorizedData() VariableData

func UnauthorizedUser

func UnauthorizedUser(user string) VariableData

func (VariableData) WithError

func (vd VariableData) WithError(err error) VariableData

func (VariableData) WithMessage

func (vd VariableData) WithMessage(msg string) VariableData

Jump to

Keyboard shortcuts

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