graph

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2016 License: Apache-2.0 Imports: 5 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

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

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

func (*Latency) ProtoMessage

func (*Latency) ProtoMessage()

func (*Latency) Reset

func (m *Latency) Reset()

func (*Latency) String

func (m *Latency) String() string

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

func (*Node) GetChildren

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

func (*Node) GetProperties

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

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) Reset

func (m *Node) Reset()

func (*Node) String

func (m *Node) String() string

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

func (*Property) ProtoMessage

func (*Property) ProtoMessage()

func (*Property) Reset

func (m *Property) Reset()

func (*Property) String

func (m *Property) String() string

type Request

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

func (*Request) Descriptor

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

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) String

func (m *Request) String() string

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) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) String

func (m *Response) String() string

Jump to

Keyboard shortcuts

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