Describe frontend app configuration

pull/1/head
Nikita Tokarchuk 3 years ago
parent ee0db5daa4
commit e0f5edd51a
Signed by: mainnika
GPG Key ID: A595FB7E3E56911C
  1. 18
      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"`
}
Loading…
Cancel
Save