Documentation ¶
Overview ¶
Package config provides functions/var/const for loading and accessing configuration settings for the application.
Package config provides functions/var/const for loading and accessing configuration settings for the application.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // EnableHTTPS is a boolean variable that indicates whether HTTPS is enabled or not for the application. // If set to true, it means the application uses HTTPS for all HTTP connections. // Otherwise, it's set to false and the application uses HTTP. EnableHTTPS = false // TLSPath is a string variable that specifies the absolute path to the directory where SSL certificates are stored. TLSPath = "/etc/ssl/certs" // TLSCertFile is a string variable that specifies the filename for the SSL certificate used to establish HTTPS connections. TLSCertFile = "/server.crt" // TLSKeyFile is a string variable that specifies the filename for the SSL private key used to establish HTTPS connections. TLSKeyFile = "/server.key" )
Declaration of multiple variables used to configure an HTTP application.
View Source
var Helper *cobra.Command = &cobra.Command{ Use: "fizzbuzz", Short: "FizzBuzz API Server", DisableAutoGenTag: true, DisableFlagsInUseLine: true, }
Helper use Cobra package to create a CLI and give Args gesture
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.