Alright, I found an example in the source code, nevertheless seems like a broken test.
This is the way it makes the connection:
conn, err := grpc.Dial("localhost:8888", grpc.WithInsecure())
if err != nil {
log.Fatal(err)
}
zero := protos.NewZeroClient(conn)
conn, err = grpc.Dial("localhost:9080", grpc.WithInsecure())
if err != nil {
log.Fatal(err)
}
dc := protos.NewDgraphClient(conn)
dg := client.NewDgraphClient(zero, dc)
Nevertheless is useless, it keeps throwing:
“2017/10/16 15:27:58 Error while retrieving timestamps: rpc error: code = Unimplemented desc = unknown method Timestamps. Will retry…”