nsite

package
v1.2.12 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: Unlicense Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Handler = &MuxHandler{}
)

Functions

func GatewayHandler

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

gatewayHandler serves nsite sites. it is not registered in the mux; main.go calls it directly when the host matches an nsite subdomain.

func Init

func Init()

func MatchesHost

func MatchesHost(host string) bool

Types

type MuxHandler

type MuxHandler struct {
	// contains filtered or unexported fields
}

func (*MuxHandler) ServeHTTP

func (mh *MuxHandler) 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