From 2e49dd58d7d9c7ecb3ddec18e231dde58feaddc2 Mon Sep 17 00:00:00 2001 From: surtur Date: Wed, 16 Aug 2023 16:10:49 +0200 Subject: [PATCH] config: add comments [skip ci] --- config/config.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/config.go b/config/config.go index 3cbca88..3dcea7a 100644 --- a/config/config.go +++ b/config/config.go @@ -103,6 +103,7 @@ var ( quiet bool ) +// Load attempts to parse the Dhall configuration, returns (nil, err) on error. func Load(conf string, isPath bool) (*Config, error) { var config Config @@ -187,6 +188,7 @@ func Load(conf string, isPath bool) (*Config, error) { return &config, nil } +// SessionSecretsAreHex returns whether session secrets are hex-encoded. func (c *Config) SessionSecretsAreHex() (bool, bool) { return authSecretIsHex, encrSecretIsHex }