From e0f5edd51ab63d25edd2aebbfae141ae22c38c7e Mon Sep 17 00:00:00 2001 From: Nikita Tokarchuk Date: Fri, 3 Dec 2021 00:52:05 +0100 Subject: [PATCH] Describe frontend app configuration --- frontend/config/config.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 frontend/config/config.go diff --git a/frontend/config/config.go b/frontend/config/config.go new file mode 100644 index 0000000..3fd2122 --- /dev/null +++ b/frontend/config/config.go @@ -0,0 +1,18 @@ +package config + +// Content contains content-specific configuration +type Content struct { + Backend string `mapstructure:"backend"` + Key string `mapstructure:"key"` + Pinned string `mapstructure:"pinned"` + PostsPerPage int `mapstructure:"postsPerPage"` +} + +// Config contains application configuration +type Config struct { + Verbose string `mapstructure:"verbose"` + Base string `mapstructure:"base"` + Addr string `mapstructure:"addr"` + Unix string `mapstructure:"unix"` + Content Content `mapstructure:"content"` +}