Documentation ¶
Overview ¶
Package graph is a generated protocol buffer package.
It is generated from these files:
query/graph/graphresponse.proto
It has these top-level messages:
NQuad Value Mutation 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) GetParsing() string
- func (m *Latency) GetPb() string
- func (m *Latency) GetProcessing() string
- 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 Mutation
- func (*Mutation) Descriptor() ([]byte, []int)
- func (m *Mutation) GetDel() []*NQuad
- func (m *Mutation) GetSet() []*NQuad
- func (m *Mutation) Marshal() (dAtA []byte, err error)
- func (m *Mutation) MarshalTo(dAtA []byte) (int, error)
- func (*Mutation) ProtoMessage()
- func (m *Mutation) Reset()
- func (m *Mutation) Size() (n int)
- func (m *Mutation) String() string
- func (m *Mutation) Unmarshal(dAtA []byte) error
- type NQuad
- func (*NQuad) Descriptor() ([]byte, []int)
- func (m *NQuad) GetFacets() []*facets.Facet
- func (m *NQuad) GetLabel() string
- func (m *NQuad) GetLang() string
- func (m *NQuad) GetObjectId() string
- func (m *NQuad) GetObjectType() int32
- func (m *NQuad) GetObjectValue() *Value
- func (m *NQuad) GetPredicate() string
- func (m *NQuad) GetSubject() string
- func (m *NQuad) Marshal() (dAtA []byte, err error)
- func (m *NQuad) MarshalTo(dAtA []byte) (int, error)
- func (*NQuad) ProtoMessage()
- func (m *NQuad) Reset()
- func (m *NQuad) Size() (n int)
- func (m *NQuad) String() string
- func (m *NQuad) Unmarshal(dAtA []byte) error
- type Node
- func (*Node) Descriptor() ([]byte, []int)
- func (m *Node) GetAttribute() string
- func (m *Node) GetChildren() []*Node
- func (m *Node) GetProperties() []*Property
- func (m *Node) GetUid() uint64
- func (m *Node) GetXid() string
- 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) GetProp() string
- func (m *Property) GetValue() *Value
- 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) GetMutation() *Mutation
- func (m *Request) GetQuery() string
- 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) GetAssignedUids() map[string]uint64
- 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
- type Value
- func (*Value) Descriptor() ([]byte, []int)
- func (m *Value) GetBoolVal() bool
- func (m *Value) GetBytesVal() []byte
- func (m *Value) GetDateVal() []byte
- func (m *Value) GetDatetimeVal() []byte
- func (m *Value) GetDefaultVal() string
- func (m *Value) GetDoubleVal() float64
- func (m *Value) GetGeoVal() []byte
- func (m *Value) GetIntVal() int32
- func (m *Value) GetPasswordVal() string
- func (m *Value) GetStrVal() string
- func (m *Value) GetVal() isValue_Val
- func (m *Value) Marshal() (dAtA []byte, err error)
- func (m *Value) MarshalTo(dAtA []byte) (int, error)
- func (*Value) ProtoMessage()
- func (m *Value) Reset()
- func (m *Value) Size() (n int)
- func (m *Value) String() string
- func (m *Value) Unmarshal(dAtA []byte) error
- func (*Value) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type Value_BoolVal
- type Value_BytesVal
- type Value_DateVal
- type Value_DatetimeVal
- type Value_DefaultVal
- type Value_DoubleVal
- type Value_GeoVal
- type Value_IntVal
- type Value_PasswordVal
- type Value_StrVal
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 {
Run(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) GetParsing ¶
func (*Latency) GetProcessing ¶
func (*Latency) ProtoMessage ¶
func (*Latency) ProtoMessage()
type Mutation ¶
type Mutation struct { Set []*NQuad `protobuf:"bytes,1,rep,name=set" json:"set,omitempty"` Del []*NQuad `protobuf:"bytes,2,rep,name=del" json:"del,omitempty"` }
func (*Mutation) Descriptor ¶
func (*Mutation) ProtoMessage ¶
func (*Mutation) ProtoMessage()
type NQuad ¶
type NQuad struct { Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` Predicate string `protobuf:"bytes,2,opt,name=predicate,proto3" json:"predicate,omitempty"` ObjectId string `protobuf:"bytes,3,opt,name=objectId,proto3" json:"objectId,omitempty"` ObjectValue *Value `protobuf:"bytes,4,opt,name=objectValue" json:"objectValue,omitempty"` Label string `protobuf:"bytes,5,opt,name=label,proto3" json:"label,omitempty"` Lang string `protobuf:"bytes,7,opt,name=lang,proto3" json:"lang,omitempty"` ObjectType int32 `protobuf:"zigzag32,6,opt,name=objectType,proto3" json:"objectType,omitempty"` Facets []*facets.Facet `protobuf:"bytes,8,rep,name=facets" json:"facets,omitempty"` }
func (*NQuad) Descriptor ¶
func (*NQuad) GetObjectId ¶
func (*NQuad) GetObjectType ¶
func (*NQuad) GetObjectValue ¶
func (*NQuad) GetPredicate ¶
func (*NQuad) GetSubject ¶
func (*NQuad) ProtoMessage ¶
func (*NQuad) 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) GetAttribute ¶
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"` Value *Value `protobuf:"bytes,2,opt,name=value" json:"value,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"` Mutation *Mutation `protobuf:"bytes,2,opt,name=mutation" json:"mutation,omitempty"` }
func (*Request) Descriptor ¶
func (*Request) GetMutation ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
type Response ¶
type Response struct { N []*Node `protobuf:"bytes,1,rep,name=n" json:"n,omitempty"` L *Latency `protobuf:"bytes,2,opt,name=l" json:"l,omitempty"` AssignedUids map[string]uint64 `` /* 177-byte string literal not displayed */ }
func (*Response) Descriptor ¶
func (*Response) GetAssignedUids ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
type Value ¶
type Value struct { // Types that are valid to be assigned to Val: // *Value_DefaultVal // *Value_BytesVal // *Value_IntVal // *Value_BoolVal // *Value_StrVal // *Value_DoubleVal // *Value_GeoVal // *Value_DateVal // *Value_DatetimeVal // *Value_PasswordVal Val isValue_Val `protobuf_oneof:"val"` }
func (*Value) Descriptor ¶
func (*Value) GetBoolVal ¶
func (*Value) GetBytesVal ¶
func (*Value) GetDateVal ¶
func (*Value) GetDatetimeVal ¶
func (*Value) GetDefaultVal ¶
func (*Value) GetDoubleVal ¶
func (*Value) GetPasswordVal ¶
func (*Value) ProtoMessage ¶
func (*Value) ProtoMessage()
type Value_BoolVal ¶
type Value_BoolVal struct {
BoolVal bool `protobuf:"varint,4,opt,name=bool_val,json=boolVal,proto3,oneof"`
}
func (*Value_BoolVal) Size ¶
func (m *Value_BoolVal) Size() (n int)
type Value_BytesVal ¶
type Value_BytesVal struct {
BytesVal []byte `protobuf:"bytes,2,opt,name=bytes_val,json=bytesVal,proto3,oneof"`
}
func (*Value_BytesVal) Size ¶
func (m *Value_BytesVal) Size() (n int)
type Value_DateVal ¶
type Value_DateVal struct {
DateVal []byte `protobuf:"bytes,8,opt,name=date_val,json=dateVal,proto3,oneof"`
}
func (*Value_DateVal) Size ¶
func (m *Value_DateVal) Size() (n int)
type Value_DatetimeVal ¶
type Value_DatetimeVal struct {
DatetimeVal []byte `protobuf:"bytes,9,opt,name=datetime_val,json=datetimeVal,proto3,oneof"`
}
func (*Value_DatetimeVal) MarshalTo ¶
func (m *Value_DatetimeVal) MarshalTo(dAtA []byte) (int, error)
func (*Value_DatetimeVal) Size ¶
func (m *Value_DatetimeVal) Size() (n int)
type Value_DefaultVal ¶
type Value_DefaultVal struct {
DefaultVal string `protobuf:"bytes,1,opt,name=default_val,json=defaultVal,proto3,oneof"`
}
func (*Value_DefaultVal) Size ¶
func (m *Value_DefaultVal) Size() (n int)
type Value_DoubleVal ¶
type Value_DoubleVal struct {
DoubleVal float64 `protobuf:"fixed64,6,opt,name=double_val,json=doubleVal,proto3,oneof"`
}
func (*Value_DoubleVal) Size ¶
func (m *Value_DoubleVal) Size() (n int)
type Value_GeoVal ¶
type Value_GeoVal struct {
GeoVal []byte `protobuf:"bytes,7,opt,name=geo_val,json=geoVal,proto3,oneof"`
}
func (*Value_GeoVal) Size ¶
func (m *Value_GeoVal) Size() (n int)
type Value_IntVal ¶
type Value_IntVal struct {
IntVal int32 `protobuf:"varint,3,opt,name=int_val,json=intVal,proto3,oneof"`
}
func (*Value_IntVal) Size ¶
func (m *Value_IntVal) Size() (n int)
type Value_PasswordVal ¶
type Value_PasswordVal struct {
PasswordVal string `protobuf:"bytes,10,opt,name=password_val,json=passwordVal,proto3,oneof"`
}
func (*Value_PasswordVal) MarshalTo ¶
func (m *Value_PasswordVal) MarshalTo(dAtA []byte) (int, error)
func (*Value_PasswordVal) Size ¶
func (m *Value_PasswordVal) Size() (n int)
type Value_StrVal ¶
type Value_StrVal struct {
StrVal string `protobuf:"bytes,5,opt,name=str_val,json=strVal,proto3,oneof"`
}
func (*Value_StrVal) Size ¶
func (m *Value_StrVal) Size() (n int)
Click to show internal directories.
Click to hide internal directories.