MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / HTTPClient

Method HTTPClient

dgraphtest/compose_cluster.go:33–40  ·  view source on GitHub ↗

HTTPClient creates an HTTP client

()

Source from the content-addressed store, hash-verified

31
32// HTTPClient creates an HTTP client
33func (c *ComposeCluster) HTTPClient() (*dgraphapi.HTTPClient, error) {
34 httpClient, err := dgraphapi.GetHttpClient(testutil.GetSockAddrHttp(), testutil.GetSockAddrZeroHttp())
35 if err != nil {
36 return nil, err
37 }
38 httpClient.HttpToken = &dgraphapi.HttpToken{}
39 return httpClient, nil
40}
41
42func (c *ComposeCluster) AlphasHealth() ([]string, error) {
43 return nil, errNotImplemented

Callers

nothing calls this directly

Calls 3

GetHttpClientFunction · 0.92
GetSockAddrHttpFunction · 0.92
GetSockAddrZeroHttpFunction · 0.92

Tested by

no test coverage detected