Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/go-dev-frame/sponge
/ Get
Function
Get
internal/config/serverNameExample.go:20–25 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
18
}
19
20
func
Get() *Config {
21
if
config == nil {
22
panic(
"config is nil, please call config.Init() first"
)
23
}
24
return
config
25
}
26
27
func
Set(conf *Config) {
28
config = conf
Callers
15
InitSqlite
Function · 0.92
GetCacheType
Function · 0.92
InitRedis
Function · 0.92
InitDB
Function · 0.92
TestGetDB
Function · 0.92
TestInitMysqlError
Function · 0.92
TestInitPostgresqlError
Function · 0.92
TestInitRedis
Function · 0.92
InitMysql
Function · 0.92
InitPostgresql
Function · 0.92
getGRPCClientCfg
Function · 0.92
NewServerNameExampleRPCConn
Function · 0.92
Calls
no outgoing calls
Tested by
15
TestGetDB
Function · 0.74
TestInitMysqlError
Function · 0.74
TestInitPostgresqlError
Function · 0.74
TestInitRedis
Function · 0.74
getGRPCClientCfg
Function · 0.74
TestNewServerNameExampleRPCConn
Function · 0.74
TestGRPCServer
Function · 0.74
TestGRPCServerMock
Function · 0.74
Test_grpcServer_setOptions
Function · 0.74
TestHTTPServer
Function · 0.74
TestHTTPServerMock
Function · 0.74
TestNewRouter_pbExample
Function · 0.74