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 }