config

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ConfigKeyHost is the configuration key for host.
	ConfigKeyHost string = "host"
	// ConfigKeyPort is the configuration key for port.
	ConfigKeyPort string = "port"
	// ConfigKeyDatabase is the configuration key for default database.
	ConfigKeyDatabase string = "default_db"
	// ConfigKeyTlsEnabled is the configuration key for enabling TLS.
	ConfigKeyTlsEnabled string = "tls_enabled"
	// ConfigKeyTlsCertPath is the configuration key for TLS certificate path.
	ConfigKeyTlsCertPath string = "tls_cert_path"

	// EnvPrefix is the prefix for environment variables.
	EnvPrefix string = "KVDBCLI"
	// EnvVarPassword is the environment variable for password.
	EnvVarPassword string = EnvPrefix + "_PASSWORD"

	// DefaultDatabase is the name of the default database to use.
	DefaultDatabase string = "default"
)

Variables

This section is empty.

Functions

func InitConfig

func InitConfig()

InitConfig initializes and loads configurations.

Types

This section is empty.

Jump to

Keyboard shortcuts

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