Documentation ¶
Index ¶
- type T
- func (s *T) Address() engine.Address
- func (s *T) GetFile() (*proxy.FileDescriptor, error)
- func (s *T) Key() engine.ListenerKey
- func (s *T) OnHostsUpdated(hostCfgs map[engine.HostKey]engine.Host)
- func (s *T) Shutdown()
- func (s *T) Start(hostCfgs map[engine.HostKey]engine.Host) error
- func (s *T) String() string
- func (s *T) TakeFile(fd *proxy.FileDescriptor, hostCfgs map[engine.HostKey]engine.Host) error
- func (s *T) Update(lsnCfg engine.Listener, hostCfgs map[engine.HostKey]engine.Host) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type T ¶
type T struct {
// contains filtered or unexported fields
}
T contains all that is necessary to run the HTTP(s) server. Note that it is not thread safe and therefore requires external synchronization.
func New ¶
func New(lsnCfg engine.Listener, router http.Handler, stapler stapler.Stapler, connTck conntracker.ConnectionTracker, autoCertCache autocert.Cache, wg *sync.WaitGroup, options proxy.Options, ) (*T, error)
New creates a new server instance.
func (*T) Key ¶
func (s *T) Key() engine.ListenerKey
func (*T) OnHostsUpdated ¶
OnHostsUpdated is supposed to be called whenever a list of hosts is updated, or an OCSP notification for a host is received.
Click to show internal directories.
Click to hide internal directories.