MCPcopy
hub / github.com/etcd-io/etcd / newEmbedURLs

Function newEmbedURLs

tests/integration/embed/embed_test.go:181–191  ·  view source on GitHub ↗
(secure bool, n int)

Source from the content-addressed store, hash-verified

179}
180
181func newEmbedURLs(secure bool, n int) (urls []url.URL) {
182 scheme := "unix"
183 if secure {
184 scheme = "unixs"
185 }
186 for i := 0; i < n; i++ {
187 u, _ := url.Parse(fmt.Sprintf("%s://localhost:%d%06d", scheme, os.Getpid(), i))
188 urls = append(urls, *u)
189 }
190 return urls
191}
192
193func setupEmbedCfg(cfg *embed.Config, curls []url.URL, purls []url.URL) {
194 cfg.Logger = "zap"

Calls 1

ParseMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…