hostswitch

package
v0.12.30 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: LGPL-3.0, LGPL-3.0 Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeginsWithCheck

func BeginsWithCheck(str string, beginsWith string) bool

func CheckErr

func CheckErr(err error, message ...interface{}) bool

func EndsWith

func EndsWith(str string, endsWith string) (string, bool)

func EndsWithCheck

func EndsWithCheck(str string, endsWith string) bool

func SmallSnakeCaseText

func SmallSnakeCaseText(str string) string

Types

type HostSwitch

type HostSwitch struct {
	HandlerMap           map[string]*gin.Engine
	SiteMap              map[string]subsite.SubSite
	AuthMiddleware       *auth.AuthMiddleware
	AdministratorGroupId daptinid.DaptinReferenceId
}

func (HostSwitch) GetAllRouter

func (hs HostSwitch) GetAllRouter() []*gin.Engine

func (HostSwitch) GetHostRouter

func (hs HostSwitch) GetHostRouter(name string) *gin.Engine

func (HostSwitch) ServeHTTP

func (hs HostSwitch) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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