Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DefaultProxyListenPort is the default port that the HTTP frontend will listen on DefaultProxyListenPort = 8480 // DefaultProxyListenAddress is the default address that the HTTP frontend will listen on DefaultProxyListenAddress = "" // DefaultTLSProxyListenPort is the default port that the TLS frontend endpoint will listen on DefaultTLSProxyListenPort = 8483 // DefaultTLSProxyListenAddress is the default address that the TLS frontend endpoint will listen on DefaultTLSProxyListenAddress = "" // DefaultReadHeaderTimeout is the default amount of time allowed to read request headers by the frontend proxy server DefaultReadHeaderTimeout = 10 * time.Second )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
// ListenAddress is IP address for the main http listener for the application
ListenAddress string `yaml:"listen_address,omitempty"`
// ListenPort is TCP Port for the main http listener for the application
ListenPort int `yaml:"listen_port,omitempty"`
// TLSListenAddress is IP address for the tls http listener for the application
TLSListenAddress string `yaml:"tls_listen_address,omitempty"`
// TLSListenPort is the TCP Port for the tls http listener for the application
TLSListenPort int `yaml:"tls_listen_port,omitempty"`
// ConnectionsLimit indicates how many concurrent front end connections trickster will handle at any time
ConnectionsLimit int `yaml:"connections_limit,omitempty"`
// ReadHeaderTimeout is the amount of time allowed to read request headers.
ReadHeaderTimeout time.Duration `yaml:"read_header_timeout,omitempty"`
// ServeTLS indicates whether to listen and serve on the TLS port, meaning
// at least one backend options has a valid certificate and key file configured.
ServeTLS bool `yaml:"-"`
}
FrontendConfig is a collection of configurations for the main http frontend for the application
func (*Options) Validate ¶
func (o *Options) Validate(f TLSConfigFunc) error
type TLSConfigFunc ¶
Click to show internal directories.
Click to hide internal directories.