dgo: github.com/dgraph-io/dgo/protos/api Index | Files

package api

import "github.com/dgraph-io/dgo/protos/api"

Index

Package Files

api.pb.go

Variables

var (
    ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling")
    ErrIntOverflowApi   = fmt.Errorf("proto: integer overflow")
)
var Facet_ValType_name = map[int32]string{
    0:  "STRING",
    1:  "INT",
    2:  "FLOAT",
    3:  "BOOL",
    4:  "DATETIME",
}
var Facet_ValType_value = map[string]int32{
    "STRING":   0,
    "INT":      1,
    "FLOAT":    2,
    "BOOL":     3,
    "DATETIME": 4,
}
var Operation_DropOp_name = map[int32]string{
    0:  "NONE",
    1:  "ALL",
    2:  "DATA",
    3:  "ATTR",
    4:  "TYPE",
}
var Operation_DropOp_value = map[string]int32{
    "NONE": 0,
    "ALL":  1,
    "DATA": 2,
    "ATTR": 3,
    "TYPE": 4,
}

func RegisterDgraphServer Uses

func RegisterDgraphServer(s *grpc.Server, srv DgraphServer)

type Check Uses

type Check struct {
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*Check) Descriptor Uses

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

func (*Check) Marshal Uses

func (m *Check) Marshal() (dAtA []byte, err error)

func (*Check) MarshalTo Uses

func (m *Check) MarshalTo(dAtA []byte) (int, error)

func (*Check) MarshalToSizedBuffer Uses

func (m *Check) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Check) ProtoMessage Uses

func (*Check) ProtoMessage()

func (*Check) Reset Uses

func (m *Check) Reset()

func (*Check) Size Uses

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

func (*Check) String Uses

func (m *Check) String() string

func (*Check) Unmarshal Uses

func (m *Check) Unmarshal(dAtA []byte) error

func (*Check) XXX_DiscardUnknown Uses

func (m *Check) XXX_DiscardUnknown()

func (*Check) XXX_Marshal Uses

func (m *Check) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Check) XXX_Merge Uses

func (m *Check) XXX_Merge(src proto.Message)

func (*Check) XXX_Size Uses

func (m *Check) XXX_Size() int

func (*Check) XXX_Unmarshal Uses

func (m *Check) XXX_Unmarshal(b []byte) error

type DgraphClient Uses

type DgraphClient interface {
    Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*Response, error)
    Query(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
    Alter(ctx context.Context, in *Operation, opts ...grpc.CallOption) (*Payload, error)
    CommitOrAbort(ctx context.Context, in *TxnContext, opts ...grpc.CallOption) (*TxnContext, error)
    CheckVersion(ctx context.Context, in *Check, opts ...grpc.CallOption) (*Version, error)
}

DgraphClient is the client API for Dgraph service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewDgraphClient Uses

func NewDgraphClient(cc *grpc.ClientConn) DgraphClient

type DgraphServer Uses

type DgraphServer interface {
    Login(context.Context, *LoginRequest) (*Response, error)
    Query(context.Context, *Request) (*Response, error)
    Alter(context.Context, *Operation) (*Payload, error)
    CommitOrAbort(context.Context, *TxnContext) (*TxnContext, error)
    CheckVersion(context.Context, *Check) (*Version, error)
}

DgraphServer is the server API for Dgraph service.

type Facet Uses

type Facet struct {
    Key                  string        `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
    Value                []byte        `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
    ValType              Facet_ValType `protobuf:"varint,3,opt,name=val_type,json=valType,proto3,enum=api.Facet_ValType" json:"val_type,omitempty"`
    Tokens               []string      `protobuf:"bytes,4,rep,name=tokens,proto3" json:"tokens,omitempty"`
    Alias                string        `protobuf:"bytes,5,opt,name=alias,proto3" json:"alias,omitempty"`
    XXX_NoUnkeyedLiteral struct{}      `json:"-"`
    XXX_unrecognized     []byte        `json:"-"`
    XXX_sizecache        int32         `json:"-"`
}

func (*Facet) Descriptor Uses

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

func (*Facet) GetAlias Uses

func (m *Facet) GetAlias() string

func (*Facet) GetKey Uses

func (m *Facet) GetKey() string

func (*Facet) GetTokens Uses

func (m *Facet) GetTokens() []string

func (*Facet) GetValType Uses

func (m *Facet) GetValType() Facet_ValType

func (*Facet) GetValue Uses

func (m *Facet) GetValue() []byte

func (*Facet) Marshal Uses

func (m *Facet) Marshal() (dAtA []byte, err error)

func (*Facet) MarshalTo Uses

func (m *Facet) MarshalTo(dAtA []byte) (int, error)

func (*Facet) MarshalToSizedBuffer Uses

func (m *Facet) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Facet) ProtoMessage Uses

func (*Facet) ProtoMessage()

func (*Facet) Reset Uses

func (m *Facet) Reset()

func (*Facet) Size Uses

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

func (*Facet) String Uses

func (m *Facet) String() string

func (*Facet) Unmarshal Uses

func (m *Facet) Unmarshal(dAtA []byte) error

func (*Facet) XXX_DiscardUnknown Uses

func (m *Facet) XXX_DiscardUnknown()

func (*Facet) XXX_Marshal Uses

func (m *Facet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Facet) XXX_Merge Uses

func (m *Facet) XXX_Merge(src proto.Message)

func (*Facet) XXX_Size Uses

func (m *Facet) XXX_Size() int

func (*Facet) XXX_Unmarshal Uses

func (m *Facet) XXX_Unmarshal(b []byte) error

type Facet_ValType Uses

type Facet_ValType int32
const (
    Facet_STRING   Facet_ValType = 0
    Facet_INT      Facet_ValType = 1
    Facet_FLOAT    Facet_ValType = 2
    Facet_BOOL     Facet_ValType = 3
    Facet_DATETIME Facet_ValType = 4
)

func (Facet_ValType) EnumDescriptor Uses

func (Facet_ValType) EnumDescriptor() ([]byte, []int)

func (Facet_ValType) String Uses

func (x Facet_ValType) String() string

type Jwt Uses

type Jwt struct {
    AccessJwt            string   `protobuf:"bytes,1,opt,name=access_jwt,json=accessJwt,proto3" json:"access_jwt,omitempty"`
    RefreshJwt           string   `protobuf:"bytes,2,opt,name=refresh_jwt,json=refreshJwt,proto3" json:"refresh_jwt,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*Jwt) Descriptor Uses

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

func (*Jwt) GetAccessJwt Uses

func (m *Jwt) GetAccessJwt() string

func (*Jwt) GetRefreshJwt Uses

func (m *Jwt) GetRefreshJwt() string

func (*Jwt) Marshal Uses

func (m *Jwt) Marshal() (dAtA []byte, err error)

func (*Jwt) MarshalTo Uses

func (m *Jwt) MarshalTo(dAtA []byte) (int, error)

func (*Jwt) MarshalToSizedBuffer Uses

func (m *Jwt) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Jwt) ProtoMessage Uses

func (*Jwt) ProtoMessage()

func (*Jwt) Reset Uses

func (m *Jwt) Reset()

func (*Jwt) Size Uses

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

func (*Jwt) String Uses

func (m *Jwt) String() string

func (*Jwt) Unmarshal Uses

func (m *Jwt) Unmarshal(dAtA []byte) error

func (*Jwt) XXX_DiscardUnknown Uses

func (m *Jwt) XXX_DiscardUnknown()

func (*Jwt) XXX_Marshal Uses

func (m *Jwt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Jwt) XXX_Merge Uses

func (m *Jwt) XXX_Merge(src proto.Message)

func (*Jwt) XXX_Size Uses

func (m *Jwt) XXX_Size() int

func (*Jwt) XXX_Unmarshal Uses

func (m *Jwt) XXX_Unmarshal(b []byte) error

type Latency Uses

type Latency struct {
    ParsingNs            uint64   `protobuf:"varint,1,opt,name=parsing_ns,json=parsingNs,proto3" json:"parsing_ns,omitempty"`
    ProcessingNs         uint64   `protobuf:"varint,2,opt,name=processing_ns,json=processingNs,proto3" json:"processing_ns,omitempty"`
    EncodingNs           uint64   `protobuf:"varint,3,opt,name=encoding_ns,json=encodingNs,proto3" json:"encoding_ns,omitempty"`
    AssignTimestampNs    uint64   `protobuf:"varint,4,opt,name=assign_timestamp_ns,json=assignTimestampNs,proto3" json:"assign_timestamp_ns,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*Latency) Descriptor Uses

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

func (*Latency) GetAssignTimestampNs Uses

func (m *Latency) GetAssignTimestampNs() uint64

func (*Latency) GetEncodingNs Uses

func (m *Latency) GetEncodingNs() uint64

func (*Latency) GetParsingNs Uses

func (m *Latency) GetParsingNs() uint64

func (*Latency) GetProcessingNs Uses

func (m *Latency) GetProcessingNs() uint64

func (*Latency) Marshal Uses

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

func (*Latency) MarshalTo Uses

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

func (*Latency) MarshalToSizedBuffer Uses

func (m *Latency) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Latency) ProtoMessage Uses

func (*Latency) ProtoMessage()

func (*Latency) Reset Uses

func (m *Latency) Reset()

func (*Latency) Size Uses

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

func (*Latency) String Uses

func (m *Latency) String() string

func (*Latency) Unmarshal Uses

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

func (*Latency) XXX_DiscardUnknown Uses

func (m *Latency) XXX_DiscardUnknown()

func (*Latency) XXX_Marshal Uses

func (m *Latency) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Latency) XXX_Merge Uses

func (m *Latency) XXX_Merge(src proto.Message)

func (*Latency) XXX_Size Uses

func (m *Latency) XXX_Size() int

func (*Latency) XXX_Unmarshal Uses

func (m *Latency) XXX_Unmarshal(b []byte) error

type LoginRequest Uses

type LoginRequest struct {
    Userid               string   `protobuf:"bytes,1,opt,name=userid,proto3" json:"userid,omitempty"`
    Password             string   `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
    RefreshToken         string   `protobuf:"bytes,3,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*LoginRequest) Descriptor Uses

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

func (*LoginRequest) GetPassword Uses

func (m *LoginRequest) GetPassword() string

func (*LoginRequest) GetRefreshToken Uses

func (m *LoginRequest) GetRefreshToken() string

func (*LoginRequest) GetUserid Uses

func (m *LoginRequest) GetUserid() string

func (*LoginRequest) Marshal Uses

func (m *LoginRequest) Marshal() (dAtA []byte, err error)

func (*LoginRequest) MarshalTo Uses

func (m *LoginRequest) MarshalTo(dAtA []byte) (int, error)

func (*LoginRequest) MarshalToSizedBuffer Uses

func (m *LoginRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LoginRequest) ProtoMessage Uses

func (*LoginRequest) ProtoMessage()

func (*LoginRequest) Reset Uses

func (m *LoginRequest) Reset()

func (*LoginRequest) Size Uses

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

func (*LoginRequest) String Uses

func (m *LoginRequest) String() string

func (*LoginRequest) Unmarshal Uses

func (m *LoginRequest) Unmarshal(dAtA []byte) error

func (*LoginRequest) XXX_DiscardUnknown Uses

func (m *LoginRequest) XXX_DiscardUnknown()

func (*LoginRequest) XXX_Marshal Uses

func (m *LoginRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LoginRequest) XXX_Merge Uses

func (m *LoginRequest) XXX_Merge(src proto.Message)

func (*LoginRequest) XXX_Size Uses

func (m *LoginRequest) XXX_Size() int

func (*LoginRequest) XXX_Unmarshal Uses

func (m *LoginRequest) XXX_Unmarshal(b []byte) error

type Mutation Uses

type Mutation struct {
    SetJson    []byte   `protobuf:"bytes,1,opt,name=set_json,json=setJson,proto3" json:"set_json,omitempty"`
    DeleteJson []byte   `protobuf:"bytes,2,opt,name=delete_json,json=deleteJson,proto3" json:"delete_json,omitempty"`
    SetNquads  []byte   `protobuf:"bytes,3,opt,name=set_nquads,json=setNquads,proto3" json:"set_nquads,omitempty"`
    DelNquads  []byte   `protobuf:"bytes,4,opt,name=del_nquads,json=delNquads,proto3" json:"del_nquads,omitempty"`
    Set        []*NQuad `protobuf:"bytes,5,rep,name=set,proto3" json:"set,omitempty"`
    Del        []*NQuad `protobuf:"bytes,6,rep,name=del,proto3" json:"del,omitempty"`
    // This is being used for upserts.
    Cond string `protobuf:"bytes,9,opt,name=cond,proto3" json:"cond,omitempty"`
    // This field is a duplicate of the one in Request and placed here for convenience.
    CommitNow            bool     `protobuf:"varint,14,opt,name=commit_now,json=commitNow,proto3" json:"commit_now,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*Mutation) Descriptor Uses

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

func (*Mutation) GetCommitNow Uses

func (m *Mutation) GetCommitNow() bool

func (*Mutation) GetCond Uses

func (m *Mutation) GetCond() string

func (*Mutation) GetDel Uses

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

func (*Mutation) GetDelNquads Uses

func (m *Mutation) GetDelNquads() []byte

func (*Mutation) GetDeleteJson Uses

func (m *Mutation) GetDeleteJson() []byte

func (*Mutation) GetSet Uses

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

func (*Mutation) GetSetJson Uses

func (m *Mutation) GetSetJson() []byte

func (*Mutation) GetSetNquads Uses

func (m *Mutation) GetSetNquads() []byte

func (*Mutation) Marshal Uses

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

func (*Mutation) MarshalTo Uses

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

func (*Mutation) MarshalToSizedBuffer Uses

func (m *Mutation) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Mutation) ProtoMessage Uses

func (*Mutation) ProtoMessage()

func (*Mutation) Reset Uses

func (m *Mutation) Reset()

func (*Mutation) Size Uses

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

func (*Mutation) String Uses

func (m *Mutation) String() string

func (*Mutation) Unmarshal Uses

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

func (*Mutation) XXX_DiscardUnknown Uses

func (m *Mutation) XXX_DiscardUnknown()

func (*Mutation) XXX_Marshal Uses

func (m *Mutation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Mutation) XXX_Merge Uses

func (m *Mutation) XXX_Merge(src proto.Message)

func (*Mutation) XXX_Size Uses

func (m *Mutation) XXX_Size() int

func (*Mutation) XXX_Unmarshal Uses

func (m *Mutation) XXX_Unmarshal(b []byte) error

type NQuad Uses

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=object_id,json=objectId,proto3" json:"object_id,omitempty"`
    ObjectValue          *Value   `protobuf:"bytes,4,opt,name=object_value,json=objectValue,proto3" json:"object_value,omitempty"`
    Label                string   `protobuf:"bytes,5,opt,name=label,proto3" json:"label,omitempty"`
    Lang                 string   `protobuf:"bytes,6,opt,name=lang,proto3" json:"lang,omitempty"`
    Facets               []*Facet `protobuf:"bytes,7,rep,name=facets,proto3" json:"facets,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*NQuad) Descriptor Uses

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

func (*NQuad) GetFacets Uses

func (m *NQuad) GetFacets() []*Facet

func (*NQuad) GetLabel Uses

func (m *NQuad) GetLabel() string

func (*NQuad) GetLang Uses

func (m *NQuad) GetLang() string

func (*NQuad) GetObjectId Uses

func (m *NQuad) GetObjectId() string

func (*NQuad) GetObjectValue Uses

func (m *NQuad) GetObjectValue() *Value

func (*NQuad) GetPredicate Uses

func (m *NQuad) GetPredicate() string

func (*NQuad) GetSubject Uses

func (m *NQuad) GetSubject() string

func (*NQuad) Marshal Uses

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

func (*NQuad) MarshalTo Uses

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

func (*NQuad) MarshalToSizedBuffer Uses

func (m *NQuad) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NQuad) ProtoMessage Uses

func (*NQuad) ProtoMessage()

func (*NQuad) Reset Uses

func (m *NQuad) Reset()

func (*NQuad) Size Uses

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

func (*NQuad) String Uses

func (m *NQuad) String() string

func (*NQuad) Unmarshal Uses

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

func (*NQuad) XXX_DiscardUnknown Uses

func (m *NQuad) XXX_DiscardUnknown()

func (*NQuad) XXX_Marshal Uses

func (m *NQuad) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NQuad) XXX_Merge Uses

func (m *NQuad) XXX_Merge(src proto.Message)

func (*NQuad) XXX_Size Uses

func (m *NQuad) XXX_Size() int

func (*NQuad) XXX_Unmarshal Uses

func (m *NQuad) XXX_Unmarshal(b []byte) error

type Operation Uses

type Operation struct {
    Schema   string           `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"`
    DropAttr string           `protobuf:"bytes,2,opt,name=drop_attr,json=dropAttr,proto3" json:"drop_attr,omitempty"`
    DropAll  bool             `protobuf:"varint,3,opt,name=drop_all,json=dropAll,proto3" json:"drop_all,omitempty"`
    DropOp   Operation_DropOp `protobuf:"varint,4,opt,name=drop_op,json=dropOp,proto3,enum=api.Operation_DropOp" json:"drop_op,omitempty"`
    // If drop_op is ATTR or TYPE, drop_value holds the name of the predicate or
    // type to delete.
    DropValue            string   `protobuf:"bytes,5,opt,name=drop_value,json=dropValue,proto3" json:"drop_value,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*Operation) Descriptor Uses

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

func (*Operation) GetDropAll Uses

func (m *Operation) GetDropAll() bool

func (*Operation) GetDropAttr Uses

func (m *Operation) GetDropAttr() string

func (*Operation) GetDropOp Uses

func (m *Operation) GetDropOp() Operation_DropOp

func (*Operation) GetDropValue Uses

func (m *Operation) GetDropValue() string

func (*Operation) GetSchema Uses

func (m *Operation) GetSchema() string

func (*Operation) Marshal Uses

func (m *Operation) Marshal() (dAtA []byte, err error)

func (*Operation) MarshalTo Uses

func (m *Operation) MarshalTo(dAtA []byte) (int, error)

func (*Operation) MarshalToSizedBuffer Uses

func (m *Operation) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Operation) ProtoMessage Uses

func (*Operation) ProtoMessage()

func (*Operation) Reset Uses

func (m *Operation) Reset()

func (*Operation) Size Uses

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

func (*Operation) String Uses

func (m *Operation) String() string

func (*Operation) Unmarshal Uses

func (m *Operation) Unmarshal(dAtA []byte) error

func (*Operation) XXX_DiscardUnknown Uses

func (m *Operation) XXX_DiscardUnknown()

func (*Operation) XXX_Marshal Uses

func (m *Operation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Operation) XXX_Merge Uses

func (m *Operation) XXX_Merge(src proto.Message)

func (*Operation) XXX_Size Uses

func (m *Operation) XXX_Size() int

func (*Operation) XXX_Unmarshal Uses

func (m *Operation) XXX_Unmarshal(b []byte) error

type Operation_DropOp Uses

type Operation_DropOp int32
const (
    Operation_NONE Operation_DropOp = 0
    Operation_ALL  Operation_DropOp = 1
    Operation_DATA Operation_DropOp = 2
    Operation_ATTR Operation_DropOp = 3
    Operation_TYPE Operation_DropOp = 4
)

func (Operation_DropOp) EnumDescriptor Uses

func (Operation_DropOp) EnumDescriptor() ([]byte, []int)

func (Operation_DropOp) String Uses

func (x Operation_DropOp) String() string

type Payload Uses

type Payload struct {
    Data                 []byte   `protobuf:"bytes,1,opt,name=Data,proto3" json:"Data,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Worker services.

func (*Payload) Descriptor Uses

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

func (*Payload) GetData Uses

func (m *Payload) GetData() []byte

func (*Payload) Marshal Uses

func (m *Payload) Marshal() (dAtA []byte, err error)

func (*Payload) MarshalTo Uses

func (m *Payload) MarshalTo(dAtA []byte) (int, error)

func (*Payload) MarshalToSizedBuffer Uses

func (m *Payload) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Payload) ProtoMessage Uses

func (*Payload) ProtoMessage()

func (*Payload) Reset Uses

func (m *Payload) Reset()

func (*Payload) Size Uses

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

func (*Payload) String Uses

func (m *Payload) String() string

func (*Payload) Unmarshal Uses

func (m *Payload) Unmarshal(dAtA []byte) error

func (*Payload) XXX_DiscardUnknown Uses

func (m *Payload) XXX_DiscardUnknown()

func (*Payload) XXX_Marshal Uses

func (m *Payload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Payload) XXX_Merge Uses

func (m *Payload) XXX_Merge(src proto.Message)

func (*Payload) XXX_Size Uses

func (m *Payload) XXX_Size() int

func (*Payload) XXX_Unmarshal Uses

func (m *Payload) XXX_Unmarshal(b []byte) error

type Request Uses

type Request struct {
    StartTs              uint64            `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"`
    Query                string            `protobuf:"bytes,4,opt,name=query,proto3" json:"query,omitempty"`
    Vars                 map[string]string `protobuf:"bytes,5,rep,name=vars,proto3" json:"vars,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    ReadOnly             bool              `protobuf:"varint,6,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"`
    BestEffort           bool              `protobuf:"varint,7,opt,name=best_effort,json=bestEffort,proto3" json:"best_effort,omitempty"`
    Mutations            []*Mutation       `protobuf:"bytes,12,rep,name=mutations,proto3" json:"mutations,omitempty"`
    CommitNow            bool              `protobuf:"varint,13,opt,name=commit_now,json=commitNow,proto3" json:"commit_now,omitempty"`
    XXX_NoUnkeyedLiteral struct{}          `json:"-"`
    XXX_unrecognized     []byte            `json:"-"`
    XXX_sizecache        int32             `json:"-"`
}

func (*Request) Descriptor Uses

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

func (*Request) GetBestEffort Uses

func (m *Request) GetBestEffort() bool

func (*Request) GetCommitNow Uses

func (m *Request) GetCommitNow() bool

func (*Request) GetMutations Uses

func (m *Request) GetMutations() []*Mutation

func (*Request) GetQuery Uses

func (m *Request) GetQuery() string

func (*Request) GetReadOnly Uses

func (m *Request) GetReadOnly() bool

func (*Request) GetStartTs Uses

func (m *Request) GetStartTs() uint64

func (*Request) GetVars Uses

func (m *Request) GetVars() map[string]string

func (*Request) Marshal Uses

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

func (*Request) MarshalTo Uses

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

func (*Request) MarshalToSizedBuffer Uses

func (m *Request) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Request) ProtoMessage Uses

func (*Request) ProtoMessage()

func (*Request) Reset Uses

func (m *Request) Reset()

func (*Request) Size Uses

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

func (*Request) String Uses

func (m *Request) String() string

func (*Request) Unmarshal Uses

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

func (*Request) XXX_DiscardUnknown Uses

func (m *Request) XXX_DiscardUnknown()

func (*Request) XXX_Marshal Uses

func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Request) XXX_Merge Uses

func (m *Request) XXX_Merge(src proto.Message)

func (*Request) XXX_Size Uses

func (m *Request) XXX_Size() int

func (*Request) XXX_Unmarshal Uses

func (m *Request) XXX_Unmarshal(b []byte) error

type Response Uses

type Response struct {
    Json    []byte      `protobuf:"bytes,1,opt,name=json,proto3" json:"json,omitempty"`
    Txn     *TxnContext `protobuf:"bytes,2,opt,name=txn,proto3" json:"txn,omitempty"`
    Latency *Latency    `protobuf:"bytes,3,opt,name=latency,proto3" json:"latency,omitempty"`
    // Vars contains a map of variable name => [ uids...] used in mutations. It tells
    // the user about which uids were updated/deleted as part of an upsert operation.
    Vars map[string]*Uids `protobuf:"bytes,4,rep,name=vars,proto3" json:"vars,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    // uids contains a mapping of blank_node => uid for the node. It only returns uids
    // that were created as part of a mutation.
    Uids                 map[string]string `protobuf:"bytes,12,rep,name=uids,proto3" json:"uids,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    XXX_NoUnkeyedLiteral struct{}          `json:"-"`
    XXX_unrecognized     []byte            `json:"-"`
    XXX_sizecache        int32             `json:"-"`
}

func (*Response) Descriptor Uses

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

func (*Response) GetJson Uses

func (m *Response) GetJson() []byte

func (*Response) GetLatency Uses

func (m *Response) GetLatency() *Latency

func (*Response) GetTxn Uses

func (m *Response) GetTxn() *TxnContext

func (*Response) GetUids Uses

func (m *Response) GetUids() map[string]string

func (*Response) GetVars Uses

func (m *Response) GetVars() map[string]*Uids

func (*Response) Marshal Uses

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

func (*Response) MarshalTo Uses

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

func (*Response) MarshalToSizedBuffer Uses

func (m *Response) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Response) ProtoMessage Uses

func (*Response) ProtoMessage()

func (*Response) Reset Uses

func (m *Response) Reset()

func (*Response) Size Uses

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

func (*Response) String Uses

func (m *Response) String() string

func (*Response) Unmarshal Uses

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

func (*Response) XXX_DiscardUnknown Uses

func (m *Response) XXX_DiscardUnknown()

func (*Response) XXX_Marshal Uses

func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Response) XXX_Merge Uses

func (m *Response) XXX_Merge(src proto.Message)

func (*Response) XXX_Size Uses

func (m *Response) XXX_Size() int

func (*Response) XXX_Unmarshal Uses

func (m *Response) XXX_Unmarshal(b []byte) error

type TxnContext Uses

type TxnContext struct {
    StartTs              uint64   `protobuf:"varint,1,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"`
    CommitTs             uint64   `protobuf:"varint,2,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"`
    Aborted              bool     `protobuf:"varint,3,opt,name=aborted,proto3" json:"aborted,omitempty"`
    Keys                 []string `protobuf:"bytes,4,rep,name=keys,proto3" json:"keys,omitempty"`
    Preds                []string `protobuf:"bytes,5,rep,name=preds,proto3" json:"preds,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*TxnContext) Descriptor Uses

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

func (*TxnContext) GetAborted Uses

func (m *TxnContext) GetAborted() bool

func (*TxnContext) GetCommitTs Uses

func (m *TxnContext) GetCommitTs() uint64

func (*TxnContext) GetKeys Uses

func (m *TxnContext) GetKeys() []string

func (*TxnContext) GetPreds Uses

func (m *TxnContext) GetPreds() []string

func (*TxnContext) GetStartTs Uses

func (m *TxnContext) GetStartTs() uint64

func (*TxnContext) Marshal Uses

func (m *TxnContext) Marshal() (dAtA []byte, err error)

func (*TxnContext) MarshalTo Uses

func (m *TxnContext) MarshalTo(dAtA []byte) (int, error)

func (*TxnContext) MarshalToSizedBuffer Uses

func (m *TxnContext) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TxnContext) ProtoMessage Uses

func (*TxnContext) ProtoMessage()

func (*TxnContext) Reset Uses

func (m *TxnContext) Reset()

func (*TxnContext) Size Uses

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

func (*TxnContext) String Uses

func (m *TxnContext) String() string

func (*TxnContext) Unmarshal Uses

func (m *TxnContext) Unmarshal(dAtA []byte) error

func (*TxnContext) XXX_DiscardUnknown Uses

func (m *TxnContext) XXX_DiscardUnknown()

func (*TxnContext) XXX_Marshal Uses

func (m *TxnContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxnContext) XXX_Merge Uses

func (m *TxnContext) XXX_Merge(src proto.Message)

func (*TxnContext) XXX_Size Uses

func (m *TxnContext) XXX_Size() int

func (*TxnContext) XXX_Unmarshal Uses

func (m *TxnContext) XXX_Unmarshal(b []byte) error

type Uids Uses

type Uids struct {
    Uids                 []string `protobuf:"bytes,1,rep,name=uids,proto3" json:"uids,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*Uids) Descriptor Uses

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

func (*Uids) GetUids Uses

func (m *Uids) GetUids() []string

func (*Uids) Marshal Uses

func (m *Uids) Marshal() (dAtA []byte, err error)

func (*Uids) MarshalTo Uses

func (m *Uids) MarshalTo(dAtA []byte) (int, error)

func (*Uids) MarshalToSizedBuffer Uses

func (m *Uids) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Uids) ProtoMessage Uses

func (*Uids) ProtoMessage()

func (*Uids) Reset Uses

func (m *Uids) Reset()

func (*Uids) Size Uses

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

func (*Uids) String Uses

func (m *Uids) String() string

func (*Uids) Unmarshal Uses

func (m *Uids) Unmarshal(dAtA []byte) error

func (*Uids) XXX_DiscardUnknown Uses

func (m *Uids) XXX_DiscardUnknown()

func (*Uids) XXX_Marshal Uses

func (m *Uids) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Uids) XXX_Merge Uses

func (m *Uids) XXX_Merge(src proto.Message)

func (*Uids) XXX_Size Uses

func (m *Uids) XXX_Size() int

func (*Uids) XXX_Unmarshal Uses

func (m *Uids) XXX_Unmarshal(b []byte) error

type UnimplementedDgraphServer Uses

type UnimplementedDgraphServer struct {
}

UnimplementedDgraphServer can be embedded to have forward compatible implementations.

func (*UnimplementedDgraphServer) Alter Uses

func (*UnimplementedDgraphServer) Alter(ctx context.Context, req *Operation) (*Payload, error)

func (*UnimplementedDgraphServer) CheckVersion Uses

func (*UnimplementedDgraphServer) CheckVersion(ctx context.Context, req *Check) (*Version, error)

func (*UnimplementedDgraphServer) CommitOrAbort Uses

func (*UnimplementedDgraphServer) CommitOrAbort(ctx context.Context, req *TxnContext) (*TxnContext, error)

func (*UnimplementedDgraphServer) Login Uses

func (*UnimplementedDgraphServer) Login(ctx context.Context, req *LoginRequest) (*Response, error)

func (*UnimplementedDgraphServer) Query Uses

func (*UnimplementedDgraphServer) Query(ctx context.Context, req *Request) (*Response, error)

type Value Uses

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
    //	*Value_UidVal
    Val                  isValue_Val `protobuf_oneof:"val"`
    XXX_NoUnkeyedLiteral struct{}    `json:"-"`
    XXX_unrecognized     []byte      `json:"-"`
    XXX_sizecache        int32       `json:"-"`
}

func (*Value) Descriptor Uses

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

func (*Value) GetBoolVal Uses

func (m *Value) GetBoolVal() bool

func (*Value) GetBytesVal Uses

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

func (*Value) GetDateVal Uses

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

func (*Value) GetDatetimeVal Uses

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

func (*Value) GetDefaultVal Uses

func (m *Value) GetDefaultVal() string

func (*Value) GetDoubleVal Uses

func (m *Value) GetDoubleVal() float64

func (*Value) GetGeoVal Uses

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

func (*Value) GetIntVal Uses

func (m *Value) GetIntVal() int64

func (*Value) GetPasswordVal Uses

func (m *Value) GetPasswordVal() string

func (*Value) GetStrVal Uses

func (m *Value) GetStrVal() string

func (*Value) GetUidVal Uses

func (m *Value) GetUidVal() uint64

func (*Value) GetVal Uses

func (m *Value) GetVal() isValue_Val

func (*Value) Marshal Uses

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

func (*Value) MarshalTo Uses

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

func (*Value) MarshalToSizedBuffer Uses

func (m *Value) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Value) ProtoMessage Uses

func (*Value) ProtoMessage()

func (*Value) Reset Uses

func (m *Value) Reset()

func (*Value) Size Uses

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

func (*Value) String Uses

func (m *Value) String() string

func (*Value) Unmarshal Uses

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

func (*Value) XXX_DiscardUnknown Uses

func (m *Value) XXX_DiscardUnknown()

func (*Value) XXX_Marshal Uses

func (m *Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Value) XXX_Merge Uses

func (m *Value) XXX_Merge(src proto.Message)

func (*Value) XXX_OneofFuncs Uses

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.

func (*Value) XXX_Size Uses

func (m *Value) XXX_Size() int

func (*Value) XXX_Unmarshal Uses

func (m *Value) XXX_Unmarshal(b []byte) error

type Value_BoolVal Uses

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

func (*Value_BoolVal) MarshalTo Uses

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

func (*Value_BoolVal) MarshalToSizedBuffer Uses

func (m *Value_BoolVal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Value_BoolVal) Size Uses

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

type Value_BytesVal Uses

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

func (*Value_BytesVal) MarshalTo Uses

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

func (*Value_BytesVal) MarshalToSizedBuffer Uses

func (m *Value_BytesVal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Value_BytesVal) Size Uses

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

type Value_DateVal Uses

type Value_DateVal struct {
    DateVal []byte `protobuf:"bytes,8,opt,name=date_val,json=dateVal,proto3,oneof"`
}

func (*Value_DateVal) MarshalTo Uses

func (m *Value_DateVal) MarshalTo(dAtA []byte) (int, error)

func (*Value_DateVal) MarshalToSizedBuffer Uses

func (m *Value_DateVal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Value_DateVal) Size Uses

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

type Value_DatetimeVal Uses

type Value_DatetimeVal struct {
    DatetimeVal []byte `protobuf:"bytes,9,opt,name=datetime_val,json=datetimeVal,proto3,oneof"`
}

func (*Value_DatetimeVal) MarshalTo Uses

func (m *Value_DatetimeVal) MarshalTo(dAtA []byte) (int, error)

func (*Value_DatetimeVal) MarshalToSizedBuffer Uses

func (m *Value_DatetimeVal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Value_DatetimeVal) Size Uses

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

type Value_DefaultVal Uses

type Value_DefaultVal struct {
    DefaultVal string `protobuf:"bytes,1,opt,name=default_val,json=defaultVal,proto3,oneof"`
}

func (*Value_DefaultVal) MarshalTo Uses

func (m *Value_DefaultVal) MarshalTo(dAtA []byte) (int, error)

func (*Value_DefaultVal) MarshalToSizedBuffer Uses

func (m *Value_DefaultVal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Value_DefaultVal) Size Uses

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

type Value_DoubleVal Uses

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

func (*Value_DoubleVal) MarshalTo Uses

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

func (*Value_DoubleVal) MarshalToSizedBuffer Uses

func (m *Value_DoubleVal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Value_DoubleVal) Size Uses

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

type Value_GeoVal Uses

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

func (*Value_GeoVal) MarshalTo Uses

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

func (*Value_GeoVal) MarshalToSizedBuffer Uses

func (m *Value_GeoVal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Value_GeoVal) Size Uses

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

type Value_IntVal Uses

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

func (*Value_IntVal) MarshalTo Uses

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

func (*Value_IntVal) MarshalToSizedBuffer Uses

func (m *Value_IntVal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Value_IntVal) Size Uses

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

type Value_PasswordVal Uses

type Value_PasswordVal struct {
    PasswordVal string `protobuf:"bytes,10,opt,name=password_val,json=passwordVal,proto3,oneof"`
}

func (*Value_PasswordVal) MarshalTo Uses

func (m *Value_PasswordVal) MarshalTo(dAtA []byte) (int, error)

func (*Value_PasswordVal) MarshalToSizedBuffer Uses

func (m *Value_PasswordVal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Value_PasswordVal) Size Uses

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

type Value_StrVal Uses

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

func (*Value_StrVal) MarshalTo Uses

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

func (*Value_StrVal) MarshalToSizedBuffer Uses

func (m *Value_StrVal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Value_StrVal) Size Uses

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

type Value_UidVal Uses

type Value_UidVal struct {
    UidVal uint64 `protobuf:"varint,11,opt,name=uid_val,json=uidVal,proto3,oneof"`
}

func (*Value_UidVal) MarshalTo Uses

func (m *Value_UidVal) MarshalTo(dAtA []byte) (int, error)

func (*Value_UidVal) MarshalToSizedBuffer Uses

func (m *Value_UidVal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Value_UidVal) Size Uses

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

type Version Uses

type Version struct {
    Tag                  string   `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*Version) Descriptor Uses

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

func (*Version) GetTag Uses

func (m *Version) GetTag() string

func (*Version) Marshal Uses

func (m *Version) Marshal() (dAtA []byte, err error)

func (*Version) MarshalTo Uses

func (m *Version) MarshalTo(dAtA []byte) (int, error)

func (*Version) MarshalToSizedBuffer Uses

func (m *Version) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Version) ProtoMessage Uses

func (*Version) ProtoMessage()

func (*Version) Reset Uses

func (m *Version) Reset()

func (*Version) Size Uses

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

func (*Version) String Uses

func (m *Version) String() string

func (*Version) Unmarshal Uses

func (m *Version) Unmarshal(dAtA []byte) error

func (*Version) XXX_DiscardUnknown Uses

func (m *Version) XXX_DiscardUnknown()

func (*Version) XXX_Marshal Uses

func (m *Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Version) XXX_Merge Uses

func (m *Version) XXX_Merge(src proto.Message)

func (*Version) XXX_Size Uses

func (m *Version) XXX_Size() int

func (*Version) XXX_Unmarshal Uses

func (m *Version) XXX_Unmarshal(b []byte) error

Package api imports 10 packages (graph) and is imported by 29 packages. Updated 2019-10-11. Refresh now. Tools for package owners.