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

Function getRatel

compose/compose.go:459–473  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

457}
458
459func getRatel() service {
460 portFlag := ""
461 if opts.RatelPort != 8000 {
462 portFlag = fmt.Sprintf(" -port=%d", opts.RatelPort)
463 }
464 svc := service{
465 Image: "dgraph/ratel:latest",
466 ContainerName: containerName("ratel"),
467 Ports: []string{
468 toPort(opts.RatelPort),
469 },
470 Command: portFlag,
471 }
472 return svc
473}
474
475func addMetrics(cfg *composeConfig) {
476 cfg.Volumes["prometheus-volume"] = stringMap{}

Callers 1

mainFunction · 0.85

Calls 2

containerNameFunction · 0.85
toPortFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…