(alphaID int)
| 1098 | } |
| 1099 | |
| 1100 | func (c *LocalCluster) GetAlphaHttpClient(alphaID int) (*dgraphapi.HTTPClient, error) { |
| 1101 | pubPort, err := publicPort(c.dcli, c.alphas[alphaID], alphaHttpPort) |
| 1102 | if err != nil { |
| 1103 | return nil, err |
| 1104 | } |
| 1105 | url := "0.0.0.0:" + pubPort |
| 1106 | return dgraphapi.GetHttpClient(url, "") |
| 1107 | } |
| 1108 | |
| 1109 | // serverURL returns url to the 'server' 'endpoint' |
| 1110 | func (c *LocalCluster) serverURL(server, endpoint string) (string, error) { |
nothing calls this directly
no test coverage detected