Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var C = NewConfig()
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
ServerAddr string `envconfig:"SERVER_ADDR" default:"localhost:8888"`
RequestFile string `envconfig:"REQUEST_FILE"`
PrintSampleRequest bool `envconfig:"PRINT_SAMPLE_REQUEST"`
ResponseFormat string `envconfig:"RESPONSE_FORMAT" default:"json"`
Timeout time.Duration `envconfig:"TIMEOUT" default:"10s"`
TLS bool `envconfig:"TLS"`
ServerName string `envconfig:"TLS_SERVER_NAME"`
InsecureSkipVerify bool `envconfig:"TLS_INSECURE_SKIP_VERIFY"`
CACertFile string `envconfig:"TLS_CA_CERT_FILE"`
CertFile string `envconfig:"TLS_CERT_FILE"`
KeyFile string `envconfig:"TLS_KEY_FILE"`
AuthToken string `envconfig:"AUTH_TOKEN"`
AuthTokenType string `envconfig:"AUTH_TOKEN_TYPE" default:"Bearer"`
JWTKey string `envconfig:"JWT_KEY"`
JWTKeyFile string `envconfig:"JWT_KEY_FILE"`
}
Click to show internal directories.
Click to hide internal directories.