Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthData ¶ added in v0.0.2
type WebServer ¶
type WebServer struct { HealthCheck func() (bool, string) // contains filtered or unexported fields }
func NewWebServer ¶ added in v0.0.2
func NewWebServer(config *WebServerConfiguration) (*WebServer, error)
func (*WebServer) DebugRoutes ¶
type WebServerConfiguration ¶
type WebServerConfiguration struct { Host string `yaml:"host"` Port int `default:"7080" yaml:"port"` SslPort int `yaml:"sslport"` SslCert string `yaml:"sslcert"` SslKey string `yaml:"sslkey"` HealthCheckPeriod int `default:"30" yaml:"healthcheckperiod"` CertificateGenerationParams TLSCertificateGenerationParams `yaml:"tlsgenerationparams"` }
func (*WebServerConfiguration) BuildHostAddress ¶
func (c *WebServerConfiguration) BuildHostAddress(ssl bool) string
BuildHostAddress Builds a host address from configuration
func (*WebServerConfiguration) GetBindings ¶
func (c *WebServerConfiguration) GetBindings() string
Click to show internal directories.
Click to hide internal directories.