MCPcopy Create free account
hub / github.com/dgraph-io/dgraph / toPort

Function toPort

compose/compose.go:134–139  ·  view source on GitHub ↗
(i int)

Source from the content-addressed store, hash-verified

132}
133
134func toPort(i int) string {
135 if opts.ExposePorts {
136 return fmt.Sprintf("%d:%d", i, i)
137 }
138 return fmt.Sprintf("%d", i)
139}
140
141func getOffset(idx int) int {
142 if !opts.ExposePorts {

Callers 5

initServiceFunction · 0.85
getJaegerFunction · 0.85
getMinioFunction · 0.85
getRatelFunction · 0.85
addMetricsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…