MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / DefaultConfig

Function DefaultConfig

pkg/mcp/config.go:87–92  ·  view source on GitHub ↗

DefaultConfig returns a Config with all defaults applied (auth disabled).

()

Source from the content-addressed store, hash-verified

85
86// DefaultConfig returns a Config with all defaults applied (auth disabled).
87func DefaultConfig() *Config {
88 return &Config{
89 Host: "127.0.0.1",
90 Port: 8080,
91 }
92}
93
94// Addr returns the "host:port" string suitable for net/http ListenAndServe.
95func (c *Config) Addr() string {

Callers 6

TestDefaultConfigFunction · 0.70
newInProcessClientFunction · 0.70
TestNew_CreatesServerFunction · 0.70
TestServer_AuthDisabledFunction · 0.70
LoadConfigFunction · 0.70

Calls

no outgoing calls

Tested by 5

TestDefaultConfigFunction · 0.56
newInProcessClientFunction · 0.56
TestNew_CreatesServerFunction · 0.56
TestServer_AuthDisabledFunction · 0.56