mirror of
https://github.com/0ceanSlim/grain.git
synced 2024-10-30 01:26:32 +00:00
15 lines
401 B
Go
15 lines
401 B
Go
package config
|
|
|
|
type ServerConfig struct {
|
|
MongoDB struct {
|
|
URI string `yaml:"uri"`
|
|
Database string `yaml:"database"`
|
|
} `yaml:"mongodb"`
|
|
Server struct {
|
|
Port string `yaml:"port"`
|
|
} `yaml:"server"`
|
|
RateLimit RateLimitConfig `yaml:"rate_limit"`
|
|
PubkeyWhitelist PubkeyWhitelistConfig `yaml:"pubkey_whitelist"`
|
|
KindWhitelist KindWhitelistConfig `yaml:"kind_whitelist"`
|
|
}
|