You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
545 B
19 lines
545 B
2 years ago
|
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"`
|
||
|
}
|