Documentation ¶
Index ¶
Constants ¶
View Source
const ( PortDefault = 2112 TLSRootDir = "/etc/secrets/rte" TLSCert = "tls.crt" TLSKey = "tls.key" )
View Source
const ( ServingDefault = ServingDisabled ServingDisabled = "disabled" ServingHTTP = "http" // plaintext ServingHTTPTLS = "httptls" )
Variables ¶
This section is empty.
Functions ¶
func PortFromEnv ¶ added in v0.17.0
func PortFromEnv() int
func ServingModeIsSupported ¶
func ServingModeSupported ¶
func ServingModeSupported() string
func WithClientAuth ¶ added in v0.18.1
Types ¶
type Config ¶
func NewDefaultConfig ¶
func NewDefaultConfig() Config
func (Config) BindAddress ¶ added in v0.17.1
type TLSConfig ¶ added in v0.17.0
type TLSConfig struct { CertsDir string `json:"certsDir,omitempty"` CertFile string `json:"certFile,omitempty"` KeyFile string `json:"keyFile,omitempty"` WantCliAuth bool `json:"wantCliAuth,omitempty"` }
func NewDefaultTLSConfig ¶ added in v0.17.0
func NewDefaultTLSConfig() TLSConfig
Click to show internal directories.
Click to hide internal directories.