Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEnvOrDefault ¶
GetEnvOrDefault returns the environment variable value if set, otherwise the default value
func LoadOrGenerateCert ¶
func LoadOrGenerateCert(certPath, keyPath string) (tls.Certificate, error)
LoadOrGenerateCert generates a self-signed certificate and private key if they do not exist at the specified paths. If the files already exist, they are loaded and returned.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.