Documentation ¶
Overview ¶
Package graph is a generated protocol buffer package.
It is generated from these files:
graphresponse.proto
It has these top-level messages:
Request Latency Property Node Response
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterDgraphServer ¶
func RegisterDgraphServer(s *grpc.Server, srv DgraphServer)
Types ¶
type DgraphClient ¶
type DgraphClient interface {
Query(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}
func NewDgraphClient ¶
func NewDgraphClient(cc *grpc.ClientConn) DgraphClient
type DgraphServer ¶
type Latency ¶
type Latency struct { Parsing string `protobuf:"bytes,1,opt,name=parsing" json:"parsing,omitempty"` Processing string `protobuf:"bytes,2,opt,name=processing" json:"processing,omitempty"` Pb string `protobuf:"bytes,3,opt,name=pb" json:"pb,omitempty"` }
func (*Latency) Descriptor ¶
func (*Latency) ProtoMessage ¶
func (*Latency) ProtoMessage()
type Node ¶
type Node struct { Uid uint64 `protobuf:"varint,1,opt,name=uid" json:"uid,omitempty"` Xid string `protobuf:"bytes,2,opt,name=xid" json:"xid,omitempty"` Attribute string `protobuf:"bytes,3,opt,name=attribute" json:"attribute,omitempty"` Properties []*Property `protobuf:"bytes,4,rep,name=properties" json:"properties,omitempty"` Children []*Node `protobuf:"bytes,5,rep,name=children" json:"children,omitempty"` }
func (*Node) Descriptor ¶
func (*Node) GetChildren ¶
func (*Node) GetProperties ¶
func (*Node) ProtoMessage ¶
func (*Node) ProtoMessage()
type Property ¶
type Property struct { Prop string `protobuf:"bytes,1,opt,name=prop" json:"prop,omitempty"` Val []byte `protobuf:"bytes,2,opt,name=val,proto3" json:"val,omitempty"` }
func (*Property) Descriptor ¶
func (*Property) ProtoMessage ¶
func (*Property) ProtoMessage()
type Request ¶
type Request struct {
Query string `protobuf:"bytes,1,opt,name=query" json:"query,omitempty"`
}
func (*Request) Descriptor ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
type Response ¶
type Response struct { N *Node `protobuf:"bytes,1,opt,name=n" json:"n,omitempty"` L *Latency `protobuf:"bytes,2,opt,name=l" json:"l,omitempty"` }
func (*Response) Descriptor ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.