MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / initConfig

Function initConfig

IceFireDB-PubSub/cmd/pubsub/main.go:110–125  ·  view source on GitHub ↗
(c *cli.Context)

Source from the content-addressed store, hash-verified

108}
109
110func initConfig(c *cli.Context) error {
111 // Read configuration file configuration
112 viper.SetConfigFile(c.String("config"))
113 if err := viper.ReadInConfig(); err != nil {
114 return err
115 }
116
117 // Map configuration file content to structure
118 err := config.InitConfig()
119 if err != nil {
120 return err
121 }
122 debug()
123
124 return nil
125}
126
127func debug() {
128 // Open pprof

Callers

nothing calls this directly

Calls 3

InitConfigFunction · 0.92
debugFunction · 0.70
StringMethod · 0.65

Tested by

no test coverage detected