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 ¶
- Variables
- func RegisterDgraphServer(s *grpc.Server, srv DgraphServer)
- type DgraphClient
- type DgraphServer
- type Latency
- func (*Latency) Descriptor() ([]byte, []int)
- func (m *Latency) Marshal() (data []byte, err error)
- func (m *Latency) MarshalTo(data []byte) (int, error)
- func (*Latency) ProtoMessage()
- func (m *Latency) Reset()
- func (m *Latency) Size() (n int)
- func (m *Latency) String() string
- func (m *Latency) Unmarshal(data []byte) error
- type Node
- func (*Node) Descriptor() ([]byte, []int)
- func (m *Node) GetChildren() []*Node
- func (m *Node) GetProperties() []*Property
- func (m *Node) Marshal() (data []byte, err error)
- func (m *Node) MarshalTo(data []byte) (int, error)
- func (*Node) ProtoMessage()
- func (m *Node) Reset()
- func (m *Node) Size() (n int)
- func (m *Node) String() string
- func (m *Node) Unmarshal(data []byte) error
- type Property
- func (*Property) Descriptor() ([]byte, []int)
- func (m *Property) Marshal() (data []byte, err error)
- func (m *Property) MarshalTo(data []byte) (int, error)
- func (*Property) ProtoMessage()
- func (m *Property) Reset()
- func (m *Property) Size() (n int)
- func (m *Property) String() string
- func (m *Property) Unmarshal(data []byte) error
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) Marshal() (data []byte, err error)
- func (m *Request) MarshalTo(data []byte) (int, error)
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) Size() (n int)
- func (m *Request) String() string
- func (m *Request) Unmarshal(data []byte) error
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) GetL() *Latency
- func (m *Response) GetN() *Node
- func (m *Response) Marshal() (data []byte, err error)
- func (m *Response) MarshalTo(data []byte) (int, error)
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) Size() (n int)
- func (m *Response) String() string
- func (m *Response) Unmarshal(data []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthGraphresponse = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGraphresponse = fmt.Errorf("proto: integer overflow") )
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,proto3" json:"parsing,omitempty"` Processing string `protobuf:"bytes,2,opt,name=processing,proto3" json:"processing,omitempty"` Pb string `protobuf:"bytes,3,opt,name=pb,proto3" 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,proto3" json:"uid,omitempty"` Xid string `protobuf:"bytes,2,opt,name=xid,proto3" json:"xid,omitempty"` Attribute string `protobuf:"bytes,3,opt,name=attribute,proto3" 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,proto3" 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,proto3" 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.