mirror of
https://github.com/mainnika/nikita-tokarch-uk.git
synced 2026-05-25 01:03:35 +00:00
Describe frontend app configuration
This commit is contained in:
@@ -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"`
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user