multiserverkit

package
v0.0.0-...-9e9b37c Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEncryptedAutocertCache

func NewEncryptedAutocertCache(encryptionKey []byte, underlying autocert.Cache) autocert.Cache

Types

type MultiServer

type MultiServer struct {
	TlsConfig              *tls.Config
	GetSite                func(domain string) http.Handler
	HandleTCP              func(conn net.Conn)
	HandleGRPC             func(lis net.Listener)
	BasicHttpAuthenticator func(req *http.Request, username string, password string) (bool, string)
	// contains filtered or unexported fields
}

func New

func New() *MultiServer

func NewWithAutocert

func NewWithAutocert(autocertCache autocert.Cache) *MultiServer

func (*MultiServer) Listen

func (s *MultiServer) Listen(ctx context.Context, listen string, useTls bool)

func (*MultiServer) ServeHTTP

func (s *MultiServer) ServeHTTP(w http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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