config: add comments [skip ci]

This commit is contained in:
surtur 2023-08-16 16:10:49 +02:00
parent ab93161867
commit 2e49dd58d7
Signed by: wanderer
SSH Key Fingerprint: SHA256:MdCZyJ2sHLltrLBp0xQO0O1qTW9BT/xl5nXkDvhlMCI

@ -103,6 +103,7 @@ var (
quiet bool quiet bool
) )
// Load attempts to parse the Dhall configuration, returns (nil, err) on error.
func Load(conf string, isPath bool) (*Config, error) { func Load(conf string, isPath bool) (*Config, error) {
var config Config var config Config
@ -187,6 +188,7 @@ func Load(conf string, isPath bool) (*Config, error) {
return &config, nil return &config, nil
} }
// SessionSecretsAreHex returns whether session secrets are hex-encoded.
func (c *Config) SessionSecretsAreHex() (bool, bool) { func (c *Config) SessionSecretsAreHex() (bool, bool) {
return authSecretIsHex, encrSecretIsHex return authSecretIsHex, encrSecretIsHex
} }