mirror of
https://git.mills.io/saltyim/saltyim.git
synced 2024-07-03 00:33:38 +00:00
be4b4a5e9d
Co-authored-by: James Mills <prologic@shortcircuit.net.au> Co-authored-by: Jon Lundy <jon@xuu.cc> Reviewed-on: https://git.mills.io/prologic/saltyim/pulls/36
18 lines
348 B
Go
18 lines
348 B
Go
package internal
|
|
|
|
// Config contains the server configuration parameters
|
|
type Config struct {
|
|
Debug bool
|
|
Store string
|
|
}
|
|
|
|
// Validate validates the configuration is valid which for the most part
|
|
// just ensures that default secrets are actually configured correctly
|
|
func (c *Config) Validate() error {
|
|
if c.Debug {
|
|
return nil
|
|
}
|
|
|
|
return nil
|
|
}
|