chore: configuration attributes sorting

This commit is contained in:
Felipe M 2022-08-15 20:45:01 +02:00
parent fbc2e7a1af
commit 508d0204a0
Signed by: fmartingr
GPG Key ID: 716BC147715E716F
1 changed files with 2 additions and 2 deletions

View File

@ -43,6 +43,7 @@ func readDotEnv(logger *zap.Logger) map[string]string {
type Config struct {
Hostname string `env:"HOSTNAME,required"`
LogLevel string `env:"LOG_LEVEL,default=info"`
Http struct {
Enabled bool `env:"HTTP_ENABLED,default=True"`
Port int `env:"HTTP_PORT,default=8080"`
@ -59,8 +60,7 @@ type Config struct {
ThanksMessage string `env:"BRANDING_THANKS_MESSAGE"`
FooterExtraMessage string `env:"BRANDING_FOOTER_EXTRA"`
}
LogLevel string `env:"LOG_LEVEL,default=info"`
Notion struct {
Notion struct {
IntegrationToken string `env:"NOTION_INTEGRATION_TOKEN,required"`
MaxPagination int `env:"NOTION_MAX_PAGINATION,default=2"`
Client *notion.NotionClient // Must be manually set up