host

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlobalManager = &Manager{
	routers: make(map[string]http.Handler),
}

Functions

This section is empty.

Types

type Manager

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

func (*Manager) Clear

func (m *Manager) Clear()

func (*Manager) GetDomains

func (m *Manager) GetDomains() []string

func (*Manager) GetHandler

func (m *Manager) GetHandler(domain string) (http.Handler, bool)

func (*Manager) RegisterDomain

func (m *Manager) RegisterDomain(domain string)

func (*Manager) RegisterRouter

func (m *Manager) RegisterRouter(domain string, handler http.Handler)

Jump to

Keyboard shortcuts

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