grain/config/types/serverConfig.go
2024-08-03 14:27:58 -04:00

14 lines
307 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"`
Whitelist WhitelistConfig `yaml:"whitelist"`
}