Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { C chan struct{} // contains filtered or unexported fields }
An Event is used to communicate that something has happened.
type RoutingTable ¶
type RoutingTable struct {
// contains filtered or unexported fields
}
A RoutingTable contains the information needed to route a request.
func NewRoutingTable ¶
func NewRoutingTable(payload *watcher.Payload) *RoutingTable
NewRoutingTable creates a new RoutingTable.
func (*RoutingTable) GetBackend ¶
func (rt *RoutingTable) GetBackend(host, path string) (*url.URL, error)
GetBackend gets the backend for the given host and path.
func (*RoutingTable) GetCertificate ¶
func (rt *RoutingTable) GetCertificate(sni string) (*tls.Certificate, error)
GetCertificate gets a certificate.
Click to show internal directories.
Click to hide internal directories.