MCPcopy Create free account
hub / github.com/go-dev-frame/sponge / Init

Function Init

internal/config/serverNameExample.go:11–14  ·  view source on GitHub ↗
(configFile string, fs ...func())

Source from the content-addressed store, hash-verified

9var config *Config
10
11func Init(configFile string, fs ...func()) error {
12 config = &Config{}
13 return conf.Parse(configFile, config, fs...)
14}
15
16func Show(hiddenFields ...string) string {
17 return conf.Show(config, hiddenFields...)

Callers 15

TestGetDBFunction · 0.92
TestInitMysqlErrorFunction · 0.92
TestInitPostgresqlErrorFunction · 0.92
TestInitSqliteErrorFunction · 0.92
TestInitRedisFunction · 0.92
TestGetCacheTypeFunction · 0.92
getRPCClientConnForTestFunction · 0.92
TestGRPCServerFunction · 0.92
TestGRPCServerMockFunction · 0.92

Calls 1

ParseFunction · 0.92

Tested by 15

TestGetDBFunction · 0.74
TestInitMysqlErrorFunction · 0.74
TestInitPostgresqlErrorFunction · 0.74
TestInitSqliteErrorFunction · 0.74
TestInitRedisFunction · 0.74
TestGetCacheTypeFunction · 0.74
getRPCClientConnForTestFunction · 0.74
TestGRPCServerFunction · 0.74
TestGRPCServerMockFunction · 0.74