Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dgraph-io/dgraph
/ getOffset
Function
getOffset
compose/compose.go:141–149 ·
view source on GitHub ↗
(idx int)
Source
from the content-addressed store, hash-verified
139
}
140
141
func
getOffset(idx int) int {
142
if
!opts.ExposePorts {
143
return
0
144
}
145
if
idx == 1 {
146
return
0
147
}
148
return
idx
149
}
150
151
func
initService(basename string, idx, grpcPort int) service {
152
var
svc service
Callers
2
getZero
Function · 0.70
getAlpha
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…