servicemux

package
v0.0.0-...-41bf266 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: CC0-1.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsHTTPS

func IsHTTPS(r *http.Request) bool

func URLPrefixMatcher

func URLPrefixMatcher(prefix string) cmux.Matcher

Types

type ServiceMux

type ServiceMux struct {
	Addr      string
	Listener  net.Listener
	Servers   []map[*http.Server]string
	TLSConfig tls.Config
}

func New

func New(addr string) *ServiceMux

func (*ServiceMux) AddServer

func (sm *ServiceMux) AddServer(s *http.Server, m string)

func (*ServiceMux) Close

func (sm *ServiceMux) Close()

func (*ServiceMux) Serve

func (sm *ServiceMux) Serve()

Jump to

Keyboard shortcuts

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