Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Server Server `yaml:"server,omitempty"` SearchUser Db `yaml:"search_user,omitempty"` SearchRepo Db `yaml:"search_repo,omitempty"` AnalysisConfig Db `yaml:"analysis_config,omitempty"` MongoAuth Db `yaml:"mongo_auth,omitempty"` }
func LoadConfig ¶
LoadConfig parses all flags from the command line and returns an initialized Settings object and an error object if any. For instance if it cannot find the SSL certificate file or the SSL key file it will set the returned error appropriately.
func (Config) GetEndpointConnectionString ¶
GetEndpointConnectionString builds and returns a string with the IP and port separated by a colon. Nothing special but anyway.
Click to show internal directories.
Click to hide internal directories.