Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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)
Click to show internal directories.
Click to hide internal directories.