chore: harden production readiness gates and runbooks
This commit is contained in:
@@ -2,6 +2,7 @@ package http
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
)
|
||||
|
||||
const DefaultPrefix = "Http"
|
||||
@@ -60,3 +61,11 @@ func (h *Config) Address() string {
|
||||
|
||||
return fmt.Sprintf("%s:%d", h.Host, h.Port)
|
||||
}
|
||||
|
||||
func (h *Config) HasTLS() bool {
|
||||
if h == nil || h.TLS == nil {
|
||||
return false
|
||||
}
|
||||
|
||||
return strings.TrimSpace(h.TLS.Cert) != "" && strings.TrimSpace(h.TLS.Key) != ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user