mirror of
https://git.mills.io/saltyim/saltyim.git
synced 2024-07-05 09:31:25 +00:00
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
|
||
|
}
|