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"` +}