Created
March 13, 2017 10:23
-
-
Save eamonnmcevoy/9372d8caafd481130d3ddf86769d8de2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package root | |
type MongoConfig struct { | |
Ip string `json:"ip"` | |
DbName string `json:"dbName"` | |
} | |
type ServerConfig struct { | |
Port string `json:"port"` | |
} | |
type AuthConfig struct { | |
Secret string `json:"secret"` | |
} | |
type Config struct { | |
Mongo *MongoConfig `json:"mongo"` | |
Server *ServerConfig `json:"server"` | |
Auth *AuthConfig `json:"auth"` | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment