Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Version string // server git hash DeployTime time.Time Env string `yaml:"env"` Port string `yaml:"port"` Debug bool `yaml:"debug"` MongoDB struct { Name string `yaml:"name"` ConnectionString string `yaml:"connectionString"` UsersCollectionName string `yaml:"usersCollectionName"` ProjectsCollectionName string `yaml:"projectsCollectionName"` PrivKeysCollectionName string `yaml:"privKeysCollectionName"` PubKeysCollectionName string `yaml:"pubKeysCollectionName"` } `yaml:"mongodb"` Auth struct { SigningKey string `yaml:"signingKey"` } `yaml:"auth"` }
Config holds the service configuration necessary for endpoints to respond to requests
func BuildConfig ¶
BuildConfig returns a populated config struct from a yaml file
Click to show internal directories.
Click to hide internal directories.