Help us shape the future of Go! Take the 2026 Go Developer Survey

graph

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package graph is a generated protocol buffer package.

It is generated from these files:

graphresponse.proto

It has these top-level messages:

NQuad
Value
Mutation
Request
Latency
Property
Node
Response

Index

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 DgraphServer interface {
	Query(context.Context, *Request) (*Response, error)
}

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) Descriptor() ([]byte, []int)

func (*Latency) Marshal added in v0.4.3

func (m *Latency) Marshal() (data []byte, err error)

func (*Latency) MarshalTo added in v0.4.3

func (m *Latency) MarshalTo(data []byte) (int, error)

func (*Latency) ProtoMessage

func (*Latency) ProtoMessage()

func (*Latency) Reset

func (m *Latency) Reset()

func (*Latency) Size added in v0.4.3

func (m *Latency) Size() (n int)

func (*Latency) String

func (m *Latency) String() string

func (*Latency) Unmarshal added in v0.4.3

func (m *Latency) Unmarshal(data []byte) error

type Mutation added in v0.7.0

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 added in v0.7.0

func (*Mutation) Descriptor() ([]byte, []int)

func (*Mutation) GetDel added in v0.7.0

func (m *Mutation) GetDel() []*NQuad

func (*Mutation) GetSet added in v0.7.0

func (m *Mutation) GetSet() []*NQuad

func (*Mutation) Marshal added in v0.7.0

func (m *Mutation) Marshal() (data []byte, err error)

func (*Mutation) MarshalTo added in v0.7.0

func (m *Mutation) MarshalTo(data []byte) (int, error)

func (*Mutation) ProtoMessage added in v0.7.0

func (*Mutation) ProtoMessage()

func (*Mutation) Reset added in v0.7.0

func (m *Mutation) Reset()

func (*Mutation) Size added in v0.7.0

func (m *Mutation) Size() (n int)

func (*Mutation) String added in v0.7.0

func (m *Mutation) String() string

func (*Mutation) Unmarshal added in v0.7.0

func (m *Mutation) Unmarshal(data []byte) error

type NQuad added in v0.7.0

type NQuad struct {
	Sub   string `protobuf:"bytes,1,opt,name=sub,proto3" json:"sub,omitempty"`
	Pred  string `protobuf:"bytes,2,opt,name=pred,proto3" json:"pred,omitempty"`
	ObjId string `protobuf:"bytes,3,opt,name=objId,proto3" json:"objId,omitempty"`
	Value *Value `protobuf:"bytes,4,opt,name=value" json:"value,omitempty"`
	Label string `protobuf:"bytes,5,opt,name=label,proto3" json:"label,omitempty"`
}

func (*NQuad) Descriptor added in v0.7.0

func (*NQuad) Descriptor() ([]byte, []int)

func (*NQuad) GetValue added in v0.7.0

func (m *NQuad) GetValue() *Value

func (*NQuad) Marshal added in v0.7.0

func (m *NQuad) Marshal() (data []byte, err error)

func (*NQuad) MarshalTo added in v0.7.0

func (m *NQuad) MarshalTo(data []byte) (int, error)

func (*NQuad) ProtoMessage added in v0.7.0

func (*NQuad) ProtoMessage()

func (*NQuad) Reset added in v0.7.0

func (m *NQuad) Reset()

func (*NQuad) Size added in v0.7.0

func (m *NQuad) Size() (n int)

func (*NQuad) String added in v0.7.0

func (m *NQuad) String() string

func (*NQuad) Unmarshal added in v0.7.0

func (m *NQuad) Unmarshal(data []byte) error

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) Descriptor() ([]byte, []int)

func (*Node) GetChildren

func (m *Node) GetChildren() []*Node

func (*Node) GetProperties

func (m *Node) GetProperties() []*Property

func (*Node) Marshal added in v0.4.3

func (m *Node) Marshal() (data []byte, err error)

func (*Node) MarshalTo added in v0.4.3

func (m *Node) MarshalTo(data []byte) (int, error)

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) Reset

func (m *Node) Reset()

func (*Node) Size added in v0.4.3

func (m *Node) Size() (n int)

func (*Node) String

func (m *Node) String() string

func (*Node) Unmarshal added in v0.4.3

func (m *Node) Unmarshal(data []byte) error

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) Descriptor() ([]byte, []int)

func (*Property) GetValue added in v0.7.0

func (m *Property) GetValue() *Value

func (*Property) Marshal added in v0.4.3

func (m *Property) Marshal() (data []byte, err error)

func (*Property) MarshalTo added in v0.4.3

func (m *Property) MarshalTo(data []byte) (int, error)

func (*Property) ProtoMessage

func (*Property) ProtoMessage()

func (*Property) Reset

func (m *Property) Reset()

func (*Property) Size added in v0.4.3

func (m *Property) Size() (n int)

func (*Property) String

func (m *Property) String() string

func (*Property) Unmarshal added in v0.4.3

func (m *Property) Unmarshal(data []byte) error

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) Descriptor() ([]byte, []int)

func (*Request) GetMutation added in v0.7.0

func (m *Request) GetMutation() *Mutation

func (*Request) Marshal added in v0.4.3

func (m *Request) Marshal() (data []byte, err error)

func (*Request) MarshalTo added in v0.4.3

func (m *Request) MarshalTo(data []byte) (int, error)

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) Size added in v0.4.3

func (m *Request) Size() (n int)

func (*Request) String

func (m *Request) String() string

func (*Request) Unmarshal added in v0.4.3

func (m *Request) Unmarshal(data []byte) error

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"`
	AssignedUids map[string]uint64 `` /* 159-byte string literal not displayed */
}

func (*Response) Descriptor

func (*Response) Descriptor() ([]byte, []int)

func (*Response) GetAssignedUids added in v0.7.0

func (m *Response) GetAssignedUids() map[string]uint64

func (*Response) GetL

func (m *Response) GetL() *Latency

func (*Response) GetN

func (m *Response) GetN() *Node

func (*Response) Marshal added in v0.4.3

func (m *Response) Marshal() (data []byte, err error)

func (*Response) MarshalTo added in v0.4.3

func (m *Response) MarshalTo(data []byte) (int, error)

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) Size added in v0.4.3

func (m *Response) Size() (n int)

func (*Response) String

func (m *Response) String() string

func (*Response) Unmarshal added in v0.4.3

func (m *Response) Unmarshal(data []byte) error

type Value added in v0.7.0

type Value struct {
	// Types that are valid to be assigned to Val:
	//	*Value_BytesVal
	//	*Value_IntVal
	//	*Value_BoolVal
	//	*Value_StrVal
	//	*Value_DoubleVal
	//	*Value_GeoVal
	Val isValue_Val `protobuf_oneof:"val"`
}

func (*Value) Descriptor added in v0.7.0

func (*Value) Descriptor() ([]byte, []int)

func (*Value) GetBoolVal added in v0.7.0

func (m *Value) GetBoolVal() bool

func (*Value) GetBytesVal added in v0.7.0

func (m *Value) GetBytesVal() []byte

func (*Value) GetDoubleVal added in v0.7.0

func (m *Value) GetDoubleVal() float64

func (*Value) GetGeoVal added in v0.7.0

func (m *Value) GetGeoVal() []byte

func (*Value) GetIntVal added in v0.7.0

func (m *Value) GetIntVal() int32

func (*Value) GetStrVal added in v0.7.0

func (m *Value) GetStrVal() string

func (*Value) GetVal added in v0.7.0

func (m *Value) GetVal() isValue_Val

func (*Value) Marshal added in v0.7.0

func (m *Value) Marshal() (data []byte, err error)

func (*Value) MarshalTo added in v0.7.0

func (m *Value) MarshalTo(data []byte) (int, error)

func (*Value) ProtoMessage added in v0.7.0

func (*Value) ProtoMessage()

func (*Value) Reset added in v0.7.0

func (m *Value) Reset()

func (*Value) Size added in v0.7.0

func (m *Value) Size() (n int)

func (*Value) String added in v0.7.0

func (m *Value) String() string

func (*Value) Unmarshal added in v0.7.0

func (m *Value) Unmarshal(data []byte) error

func (*Value) XXX_OneofFuncs added in v0.7.0

func (*Value) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type Value_BoolVal added in v0.7.0

type Value_BoolVal struct {
	BoolVal bool `protobuf:"varint,3,opt,name=bool_val,json=boolVal,proto3,oneof"`
}

func (*Value_BoolVal) MarshalTo added in v0.7.0

func (m *Value_BoolVal) MarshalTo(data []byte) (int, error)

func (*Value_BoolVal) Size added in v0.7.0

func (m *Value_BoolVal) Size() (n int)

type Value_BytesVal added in v0.7.0

type Value_BytesVal struct {
	BytesVal []byte `protobuf:"bytes,1,opt,name=bytes_val,json=bytesVal,proto3,oneof"`
}

func (*Value_BytesVal) MarshalTo added in v0.7.0

func (m *Value_BytesVal) MarshalTo(data []byte) (int, error)

func (*Value_BytesVal) Size added in v0.7.0

func (m *Value_BytesVal) Size() (n int)

type Value_DoubleVal added in v0.7.0

type Value_DoubleVal struct {
	DoubleVal float64 `protobuf:"fixed64,5,opt,name=double_val,json=doubleVal,proto3,oneof"`
}

func (*Value_DoubleVal) MarshalTo added in v0.7.0

func (m *Value_DoubleVal) MarshalTo(data []byte) (int, error)

func (*Value_DoubleVal) Size added in v0.7.0

func (m *Value_DoubleVal) Size() (n int)

type Value_GeoVal added in v0.7.0

type Value_GeoVal struct {
	GeoVal []byte `protobuf:"bytes,6,opt,name=geo_val,json=geoVal,proto3,oneof"`
}

func (*Value_GeoVal) MarshalTo added in v0.7.0

func (m *Value_GeoVal) MarshalTo(data []byte) (int, error)

func (*Value_GeoVal) Size added in v0.7.0

func (m *Value_GeoVal) Size() (n int)

type Value_IntVal added in v0.7.0

type Value_IntVal struct {
	IntVal int32 `protobuf:"varint,2,opt,name=int_val,json=intVal,proto3,oneof"`
}

func (*Value_IntVal) MarshalTo added in v0.7.0

func (m *Value_IntVal) MarshalTo(data []byte) (int, error)

func (*Value_IntVal) Size added in v0.7.0

func (m *Value_IntVal) Size() (n int)

type Value_StrVal added in v0.7.0

type Value_StrVal struct {
	StrVal string `protobuf:"bytes,4,opt,name=str_val,json=strVal,proto3,oneof"`
}

func (*Value_StrVal) MarshalTo added in v0.7.0

func (m *Value_StrVal) MarshalTo(data []byte) (int, error)

func (*Value_StrVal) Size added in v0.7.0

func (m *Value_StrVal) Size() (n int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL