Documentation ¶ Index ¶ func SetDefault(config *Config) type Config func ReadConfig(path, name, configType string) *Config func (s *Config) AddFlags(fs *pflag.FlagSet, c *Config) type Server Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func SetDefault ¶ func SetDefault(config *Config) Types ¶ type Config ¶ type Config struct { Server Server // Mongo config Mongo mongodb.Config } Config config for server func ReadConfig ¶ func ReadConfig(path, name, configType string) *Config ReadConfig config for server func (*Config) AddFlags ¶ func (s *Config) AddFlags(fs *pflag.FlagSet, c *Config) AddFlags adds flags to the specified FlagSet type Server ¶ type Server struct { // api server bind address BindAddr string // monitor metric path MetricPath string // PprofAddr the address for pprof to use while exporting profiling results. PprofAddr string } Source Files ¶ View all Source files config.go Click to show internal directories. Click to hide internal directories.