graph

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 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:

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

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

func (*Latency) MarshalTo

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

func (*Latency) ProtoMessage

func (*Latency) ProtoMessage()

func (*Latency) Reset

func (m *Latency) Reset()

func (*Latency) Size

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

func (*Latency) String

func (m *Latency) String() string

func (*Latency) Unmarshal

func (m *Latency) 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

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

func (*Node) MarshalTo

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

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) Reset

func (m *Node) Reset()

func (*Node) Size

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

func (*Node) String

func (m *Node) String() string

func (*Node) Unmarshal

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

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

func (*Property) Marshal

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

func (*Property) MarshalTo

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

func (*Property) ProtoMessage

func (*Property) ProtoMessage()

func (*Property) Reset

func (m *Property) Reset()

func (*Property) Size

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

func (*Property) String

func (m *Property) String() string

func (*Property) Unmarshal

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

type Request

type Request struct {
	Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
}

func (*Request) Descriptor

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

func (*Request) Marshal

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

func (*Request) MarshalTo

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

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) Size

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

func (*Request) String

func (m *Request) String() string

func (*Request) Unmarshal

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"`
}

func (*Response) Descriptor

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

func (*Response) GetL

func (m *Response) GetL() *Latency

func (*Response) GetN

func (m *Response) GetN() *Node

func (*Response) Marshal

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

func (*Response) MarshalTo

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

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) Size

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

func (*Response) String

func (m *Response) String() string

func (*Response) Unmarshal

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

Jump to

Keyboard shortcuts

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