config

package
v0.0.0-...-f7f2675 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL