package config
import "git.dotya.ml/mirre-mt/pcmt/config"
Index ¶
Functions ¶
func BeQuiet ¶
func BeQuiet()
BeQuiet instruct this package to be more frugal with logging/printing info.
Types ¶
type Config ¶
type Config struct { AppPath string Host string Port int HTTP httpRec LiveMode bool DevelMode bool Session session Registration struct{ Allowed bool } Logger struct { JSON bool Fmt string } Init initialiser // Mailer is currently a noop. Mailer mailer }
Config represents the Dhall configuration schema, https://git.dotya.ml/mirre-mt/pcmt-config-schema/ for reference.
func Load ¶
Load attempts to parse the Dhall configuration, returns (nil, err) on error.
func (*Config) SessionSecretsAreHex ¶
SessionSecretsAreHex returns whether session secrets are hex-encoded.
Source Files ¶
config.go
- Version
- v0.0.0-20230910121657-4d10510f5ba4 (latest)
- Published
- Sep 10, 2023
- Platform
- linux/amd64
- Imports
- 8 packages
- Last checked
- 1 month ago –
Tools for package owners.