Documentation ¶
Index ¶
Constants ¶
View Source
const ( CERT_FILE string = "CERT_FILE" KEY_FILE string = "KEY_FILE" HTTPS_ENABLED string = "HTTPS_ENABLED" HTTP_ADDRESS string = "HTTP_ADDRESS" HTTP_PORT string = "HTTP_PORT" TIMEOUT string = "TIMEOUT" CERTIFICATE_SERVER_NAME string = "CERTIFICATE_SERVER_NAME" CLIENT_AUTH_TYPE string = "CLIENT_AUTH_TYPE" CA_CERTIFICATE string = "CA_CERTIFICATE" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Configuration ¶
type Configuration struct { CertFile string KeyFile string Address string Port string CertificateServerName string HttpsEnabled bool Timeout time.Duration CaCertificate string }
func NewConfiguration ¶
func NewConfiguration() *Configuration
func (*Configuration) FromCli ¶
func (c *Configuration) FromCli(args []string)
func (*Configuration) FromEnvs ¶
func (c *Configuration) FromEnvs(envs map[string]string)
Click to show internal directories.
Click to hide internal directories.