goVirtualHost

package
v1.10.2 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2020 License: MIT, MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadCertificate added in v1.4.0

func LoadCertificate(certFile, keyFile string) (*tls.Certificate, error)

Types

type HostInfo

type HostInfo struct {
	Listens      []string
	ListensPlain []string
	ListensTLS   []string
	Cert         *tls.Certificate
	HostNames    []string
	Handler      http.Handler
}

init host info

type Service

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

func NewService

func NewService() *Service

func (*Service) Add

func (svc *Service) Add(info *HostInfo) (errs []error)

func (*Service) Close

func (svc *Service) Close()

func (*Service) Open

func (svc *Service) Open() (errs []error)

Jump to

Keyboard shortcuts

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