Documentation
¶
Overview ¶
A test router implementation.
Index ¶
Constants ¶
View Source
const ( ProtocolHttp = "http" ProtocolHttps = "https" ProtocolTls = "tls" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct { Id Identifier Servers Servers }
type Certificate ¶
type Certificate struct { Id Identifier Contents []byte PrivateKey []byte PrivateKeyPassword string }
type Certificates ¶
type Certificates []Certificate
type Frontend ¶
type Frontend struct { Host string Path string Protocols []string Certificate *Certificate }
type Identifier ¶
type Identifier string
func (Identifier) BackendPathfor ¶
func (i Identifier) BackendPathfor() string
type Server ¶
type Server struct { Id Identifier Host string Ports Ports }
Click to show internal directories.
Click to hide internal directories.