|
@ -1,6 +1,22 @@ |
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
// source: defs.proto
|
|
|
// source: defs.proto
|
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|
|
Package protodb is a generated protocol buffer package. |
|
|
|
|
|
|
|
|
|
|
|
It is generated from these files: |
|
|
|
|
|
defs.proto |
|
|
|
|
|
|
|
|
|
|
|
It has these top-level messages: |
|
|
|
|
|
Batch |
|
|
|
|
|
Operation |
|
|
|
|
|
Entity |
|
|
|
|
|
Nothing |
|
|
|
|
|
Domain |
|
|
|
|
|
Iterator |
|
|
|
|
|
Stats |
|
|
|
|
|
Init |
|
|
|
|
|
*/ |
|
|
package protodb |
|
|
package protodb |
|
|
|
|
|
|
|
|
import proto "github.com/golang/protobuf/proto" |
|
|
import proto "github.com/golang/protobuf/proto" |
|
@ -42,40 +58,16 @@ var Operation_Type_value = map[string]int32{ |
|
|
func (x Operation_Type) String() string { |
|
|
func (x Operation_Type) String() string { |
|
|
return proto.EnumName(Operation_Type_name, int32(x)) |
|
|
return proto.EnumName(Operation_Type_name, int32(x)) |
|
|
} |
|
|
} |
|
|
func (Operation_Type) EnumDescriptor() ([]byte, []int) { |
|
|
|
|
|
return fileDescriptor_defs_7303098f1c775f7f, []int{1, 0} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
func (Operation_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1, 0} } |
|
|
|
|
|
|
|
|
type Batch struct { |
|
|
type Batch struct { |
|
|
Ops []*Operation `protobuf:"bytes,1,rep,name=ops" json:"ops,omitempty"` |
|
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"` |
|
|
|
|
|
XXX_unrecognized []byte `json:"-"` |
|
|
|
|
|
XXX_sizecache int32 `json:"-"` |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (m *Batch) Reset() { *m = Batch{} } |
|
|
|
|
|
func (m *Batch) String() string { return proto.CompactTextString(m) } |
|
|
|
|
|
func (*Batch) ProtoMessage() {} |
|
|
|
|
|
func (*Batch) Descriptor() ([]byte, []int) { |
|
|
|
|
|
return fileDescriptor_defs_7303098f1c775f7f, []int{0} |
|
|
|
|
|
} |
|
|
|
|
|
func (m *Batch) XXX_Unmarshal(b []byte) error { |
|
|
|
|
|
return xxx_messageInfo_Batch.Unmarshal(m, b) |
|
|
|
|
|
} |
|
|
|
|
|
func (m *Batch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
|
|
|
|
|
return xxx_messageInfo_Batch.Marshal(b, m, deterministic) |
|
|
|
|
|
} |
|
|
|
|
|
func (dst *Batch) XXX_Merge(src proto.Message) { |
|
|
|
|
|
xxx_messageInfo_Batch.Merge(dst, src) |
|
|
|
|
|
} |
|
|
|
|
|
func (m *Batch) XXX_Size() int { |
|
|
|
|
|
return xxx_messageInfo_Batch.Size(m) |
|
|
|
|
|
} |
|
|
|
|
|
func (m *Batch) XXX_DiscardUnknown() { |
|
|
|
|
|
xxx_messageInfo_Batch.DiscardUnknown(m) |
|
|
|
|
|
|
|
|
Ops []*Operation `protobuf:"bytes,1,rep,name=ops" json:"ops,omitempty"` |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
var xxx_messageInfo_Batch proto.InternalMessageInfo |
|
|
|
|
|
|
|
|
func (m *Batch) Reset() { *m = Batch{} } |
|
|
|
|
|
func (m *Batch) String() string { return proto.CompactTextString(m) } |
|
|
|
|
|
func (*Batch) ProtoMessage() {} |
|
|
|
|
|
func (*Batch) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } |
|
|
|
|
|
|
|
|
func (m *Batch) GetOps() []*Operation { |
|
|
func (m *Batch) GetOps() []*Operation { |
|
|
if m != nil { |
|
|
if m != nil { |
|
@ -85,36 +77,14 @@ func (m *Batch) GetOps() []*Operation { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
type Operation struct { |
|
|
type Operation struct { |
|
|
Entity *Entity `protobuf:"bytes,1,opt,name=entity" json:"entity,omitempty"` |
|
|
|
|
|
Type Operation_Type `protobuf:"varint,2,opt,name=type,enum=protodb.Operation_Type" json:"type,omitempty"` |
|
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"` |
|
|
|
|
|
XXX_unrecognized []byte `json:"-"` |
|
|
|
|
|
XXX_sizecache int32 `json:"-"` |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (m *Operation) Reset() { *m = Operation{} } |
|
|
|
|
|
func (m *Operation) String() string { return proto.CompactTextString(m) } |
|
|
|
|
|
func (*Operation) ProtoMessage() {} |
|
|
|
|
|
func (*Operation) Descriptor() ([]byte, []int) { |
|
|
|
|
|
return fileDescriptor_defs_7303098f1c775f7f, []int{1} |
|
|
|
|
|
} |
|
|
|
|
|
func (m *Operation) XXX_Unmarshal(b []byte) error { |
|
|
|
|
|
return xxx_messageInfo_Operation.Unmarshal(m, b) |
|
|
|
|
|
} |
|
|
|
|
|
func (m *Operation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
|
|
|
|
|
return xxx_messageInfo_Operation.Marshal(b, m, deterministic) |
|
|
|
|
|
} |
|
|
|
|
|
func (dst *Operation) XXX_Merge(src proto.Message) { |
|
|
|
|
|
xxx_messageInfo_Operation.Merge(dst, src) |
|
|
|
|
|
} |
|
|
|
|
|
func (m *Operation) XXX_Size() int { |
|
|
|
|
|
return xxx_messageInfo_Operation.Size(m) |
|
|
|
|
|
} |
|
|
|
|
|
func (m *Operation) XXX_DiscardUnknown() { |
|
|
|
|
|
xxx_messageInfo_Operation.DiscardUnknown(m) |
|
|
|
|
|
|
|
|
Entity *Entity `protobuf:"bytes,1,opt,name=entity" json:"entity,omitempty"` |
|
|
|
|
|
Type Operation_Type `protobuf:"varint,2,opt,name=type,enum=protodb.Operation_Type" json:"type,omitempty"` |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
var xxx_messageInfo_Operation proto.InternalMessageInfo |
|
|
|
|
|
|
|
|
func (m *Operation) Reset() { *m = Operation{} } |
|
|
|
|
|
func (m *Operation) String() string { return proto.CompactTextString(m) } |
|
|
|
|
|
func (*Operation) ProtoMessage() {} |
|
|
|
|
|
func (*Operation) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } |
|
|
|
|
|
|
|
|
func (m *Operation) GetEntity() *Entity { |
|
|
func (m *Operation) GetEntity() *Entity { |
|
|
if m != nil { |
|
|
if m != nil { |
|
@ -131,42 +101,20 @@ func (m *Operation) GetType() Operation_Type { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
type Entity struct { |
|
|
type Entity struct { |
|
|
Id int32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` |
|
|
|
|
|
Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` |
|
|
|
|
|
Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` |
|
|
|
|
|
Exists bool `protobuf:"varint,4,opt,name=exists" json:"exists,omitempty"` |
|
|
|
|
|
Start []byte `protobuf:"bytes,5,opt,name=start,proto3" json:"start,omitempty"` |
|
|
|
|
|
End []byte `protobuf:"bytes,6,opt,name=end,proto3" json:"end,omitempty"` |
|
|
|
|
|
Err string `protobuf:"bytes,7,opt,name=err" json:"err,omitempty"` |
|
|
|
|
|
CreatedAt int64 `protobuf:"varint,8,opt,name=created_at,json=createdAt" json:"created_at,omitempty"` |
|
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"` |
|
|
|
|
|
XXX_unrecognized []byte `json:"-"` |
|
|
|
|
|
XXX_sizecache int32 `json:"-"` |
|
|
|
|
|
|
|
|
Id int32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` |
|
|
|
|
|
Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` |
|
|
|
|
|
Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` |
|
|
|
|
|
Exists bool `protobuf:"varint,4,opt,name=exists" json:"exists,omitempty"` |
|
|
|
|
|
Start []byte `protobuf:"bytes,5,opt,name=start,proto3" json:"start,omitempty"` |
|
|
|
|
|
End []byte `protobuf:"bytes,6,opt,name=end,proto3" json:"end,omitempty"` |
|
|
|
|
|
Err string `protobuf:"bytes,7,opt,name=err" json:"err,omitempty"` |
|
|
|
|
|
CreatedAt int64 `protobuf:"varint,8,opt,name=created_at,json=createdAt" json:"created_at,omitempty"` |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (m *Entity) Reset() { *m = Entity{} } |
|
|
|
|
|
func (m *Entity) String() string { return proto.CompactTextString(m) } |
|
|
|
|
|
func (*Entity) ProtoMessage() {} |
|
|
|
|
|
func (*Entity) Descriptor() ([]byte, []int) { |
|
|
|
|
|
return fileDescriptor_defs_7303098f1c775f7f, []int{2} |
|
|
|
|
|
} |
|
|
|
|
|
func (m *Entity) XXX_Unmarshal(b []byte) error { |
|
|
|
|
|
return xxx_messageInfo_Entity.Unmarshal(m, b) |
|
|
|
|
|
} |
|
|
|
|
|
func (m *Entity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
|
|
|
|
|
return xxx_messageInfo_Entity.Marshal(b, m, deterministic) |
|
|
|
|
|
} |
|
|
|
|
|
func (dst *Entity) XXX_Merge(src proto.Message) { |
|
|
|
|
|
xxx_messageInfo_Entity.Merge(dst, src) |
|
|
|
|
|
} |
|
|
|
|
|
func (m *Entity) XXX_Size() int { |
|
|
|
|
|
return xxx_messageInfo_Entity.Size(m) |
|
|
|
|
|
} |
|
|
|
|
|
func (m *Entity) XXX_DiscardUnknown() { |
|
|
|
|
|
xxx_messageInfo_Entity.DiscardUnknown(m) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var xxx_messageInfo_Entity proto.InternalMessageInfo |
|
|
|
|
|
|
|
|
func (m *Entity) Reset() { *m = Entity{} } |
|
|
|
|
|
func (m *Entity) String() string { return proto.CompactTextString(m) } |
|
|
|
|
|
func (*Entity) ProtoMessage() {} |
|
|
|
|
|
func (*Entity) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } |
|
|
|
|
|
|
|
|
func (m *Entity) GetId() int32 { |
|
|
func (m *Entity) GetId() int32 { |
|
|
if m != nil { |
|
|
if m != nil { |
|
@ -225,66 +173,22 @@ func (m *Entity) GetCreatedAt() int64 { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
type Nothing struct { |
|
|
type Nothing struct { |
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"` |
|
|
|
|
|
XXX_unrecognized []byte `json:"-"` |
|
|
|
|
|
XXX_sizecache int32 `json:"-"` |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (m *Nothing) Reset() { *m = Nothing{} } |
|
|
|
|
|
func (m *Nothing) String() string { return proto.CompactTextString(m) } |
|
|
|
|
|
func (*Nothing) ProtoMessage() {} |
|
|
|
|
|
func (*Nothing) Descriptor() ([]byte, []int) { |
|
|
|
|
|
return fileDescriptor_defs_7303098f1c775f7f, []int{3} |
|
|
|
|
|
} |
|
|
|
|
|
func (m *Nothing) XXX_Unmarshal(b []byte) error { |
|
|
|
|
|
return xxx_messageInfo_Nothing.Unmarshal(m, b) |
|
|
|
|
|
} |
|
|
|
|
|
func (m *Nothing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
|
|
|
|
|
return xxx_messageInfo_Nothing.Marshal(b, m, deterministic) |
|
|
|
|
|
} |
|
|
|
|
|
func (dst *Nothing) XXX_Merge(src proto.Message) { |
|
|
|
|
|
xxx_messageInfo_Nothing.Merge(dst, src) |
|
|
|
|
|
} |
|
|
|
|
|
func (m *Nothing) XXX_Size() int { |
|
|
|
|
|
return xxx_messageInfo_Nothing.Size(m) |
|
|
|
|
|
} |
|
|
|
|
|
func (m *Nothing) XXX_DiscardUnknown() { |
|
|
|
|
|
xxx_messageInfo_Nothing.DiscardUnknown(m) |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
var xxx_messageInfo_Nothing proto.InternalMessageInfo |
|
|
|
|
|
|
|
|
func (m *Nothing) Reset() { *m = Nothing{} } |
|
|
|
|
|
func (m *Nothing) String() string { return proto.CompactTextString(m) } |
|
|
|
|
|
func (*Nothing) ProtoMessage() {} |
|
|
|
|
|
func (*Nothing) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } |
|
|
|
|
|
|
|
|
type Domain struct { |
|
|
type Domain struct { |
|
|
Start []byte `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"` |
|
|
|
|
|
End []byte `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"` |
|
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"` |
|
|
|
|
|
XXX_unrecognized []byte `json:"-"` |
|
|
|
|
|
XXX_sizecache int32 `json:"-"` |
|
|
|
|
|
|
|
|
Start []byte `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"` |
|
|
|
|
|
End []byte `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"` |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (m *Domain) Reset() { *m = Domain{} } |
|
|
|
|
|
func (m *Domain) String() string { return proto.CompactTextString(m) } |
|
|
|
|
|
func (*Domain) ProtoMessage() {} |
|
|
|
|
|
func (*Domain) Descriptor() ([]byte, []int) { |
|
|
|
|
|
return fileDescriptor_defs_7303098f1c775f7f, []int{4} |
|
|
|
|
|
} |
|
|
|
|
|
func (m *Domain) XXX_Unmarshal(b []byte) error { |
|
|
|
|
|
return xxx_messageInfo_Domain.Unmarshal(m, b) |
|
|
|
|
|
} |
|
|
|
|
|
func (m *Domain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
|
|
|
|
|
return xxx_messageInfo_Domain.Marshal(b, m, deterministic) |
|
|
|
|
|
} |
|
|
|
|
|
func (dst *Domain) XXX_Merge(src proto.Message) { |
|
|
|
|
|
xxx_messageInfo_Domain.Merge(dst, src) |
|
|
|
|
|
} |
|
|
|
|
|
func (m *Domain) XXX_Size() int { |
|
|
|
|
|
return xxx_messageInfo_Domain.Size(m) |
|
|
|
|
|
} |
|
|
|
|
|
func (m *Domain) XXX_DiscardUnknown() { |
|
|
|
|
|
xxx_messageInfo_Domain.DiscardUnknown(m) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var xxx_messageInfo_Domain proto.InternalMessageInfo |
|
|
|
|
|
|
|
|
func (m *Domain) Reset() { *m = Domain{} } |
|
|
|
|
|
func (m *Domain) String() string { return proto.CompactTextString(m) } |
|
|
|
|
|
func (*Domain) ProtoMessage() {} |
|
|
|
|
|
func (*Domain) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } |
|
|
|
|
|
|
|
|
func (m *Domain) GetStart() []byte { |
|
|
func (m *Domain) GetStart() []byte { |
|
|
if m != nil { |
|
|
if m != nil { |
|
@ -301,38 +205,16 @@ func (m *Domain) GetEnd() []byte { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
type Iterator struct { |
|
|
type Iterator struct { |
|
|
Domain *Domain `protobuf:"bytes,1,opt,name=domain" json:"domain,omitempty"` |
|
|
|
|
|
Valid bool `protobuf:"varint,2,opt,name=valid" json:"valid,omitempty"` |
|
|
|
|
|
Key []byte `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` |
|
|
|
|
|
Value []byte `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` |
|
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"` |
|
|
|
|
|
XXX_unrecognized []byte `json:"-"` |
|
|
|
|
|
XXX_sizecache int32 `json:"-"` |
|
|
|
|
|
|
|
|
Domain *Domain `protobuf:"bytes,1,opt,name=domain" json:"domain,omitempty"` |
|
|
|
|
|
Valid bool `protobuf:"varint,2,opt,name=valid" json:"valid,omitempty"` |
|
|
|
|
|
Key []byte `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` |
|
|
|
|
|
Value []byte `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (m *Iterator) Reset() { *m = Iterator{} } |
|
|
|
|
|
func (m *Iterator) String() string { return proto.CompactTextString(m) } |
|
|
|
|
|
func (*Iterator) ProtoMessage() {} |
|
|
|
|
|
func (*Iterator) Descriptor() ([]byte, []int) { |
|
|
|
|
|
return fileDescriptor_defs_7303098f1c775f7f, []int{5} |
|
|
|
|
|
} |
|
|
|
|
|
func (m *Iterator) XXX_Unmarshal(b []byte) error { |
|
|
|
|
|
return xxx_messageInfo_Iterator.Unmarshal(m, b) |
|
|
|
|
|
} |
|
|
|
|
|
func (m *Iterator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
|
|
|
|
|
return xxx_messageInfo_Iterator.Marshal(b, m, deterministic) |
|
|
|
|
|
} |
|
|
|
|
|
func (dst *Iterator) XXX_Merge(src proto.Message) { |
|
|
|
|
|
xxx_messageInfo_Iterator.Merge(dst, src) |
|
|
|
|
|
} |
|
|
|
|
|
func (m *Iterator) XXX_Size() int { |
|
|
|
|
|
return xxx_messageInfo_Iterator.Size(m) |
|
|
|
|
|
} |
|
|
|
|
|
func (m *Iterator) XXX_DiscardUnknown() { |
|
|
|
|
|
xxx_messageInfo_Iterator.DiscardUnknown(m) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var xxx_messageInfo_Iterator proto.InternalMessageInfo |
|
|
|
|
|
|
|
|
func (m *Iterator) Reset() { *m = Iterator{} } |
|
|
|
|
|
func (m *Iterator) String() string { return proto.CompactTextString(m) } |
|
|
|
|
|
func (*Iterator) ProtoMessage() {} |
|
|
|
|
|
func (*Iterator) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } |
|
|
|
|
|
|
|
|
func (m *Iterator) GetDomain() *Domain { |
|
|
func (m *Iterator) GetDomain() *Domain { |
|
|
if m != nil { |
|
|
if m != nil { |
|
@ -363,36 +245,14 @@ func (m *Iterator) GetValue() []byte { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
type Stats struct { |
|
|
type Stats struct { |
|
|
Data map[string]string `protobuf:"bytes,1,rep,name=data" json:"data,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` |
|
|
|
|
|
TimeAt int64 `protobuf:"varint,2,opt,name=time_at,json=timeAt" json:"time_at,omitempty"` |
|
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"` |
|
|
|
|
|
XXX_unrecognized []byte `json:"-"` |
|
|
|
|
|
XXX_sizecache int32 `json:"-"` |
|
|
|
|
|
|
|
|
Data map[string]string `protobuf:"bytes,1,rep,name=data" json:"data,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` |
|
|
|
|
|
TimeAt int64 `protobuf:"varint,2,opt,name=time_at,json=timeAt" json:"time_at,omitempty"` |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (m *Stats) Reset() { *m = Stats{} } |
|
|
|
|
|
func (m *Stats) String() string { return proto.CompactTextString(m) } |
|
|
|
|
|
func (*Stats) ProtoMessage() {} |
|
|
|
|
|
func (*Stats) Descriptor() ([]byte, []int) { |
|
|
|
|
|
return fileDescriptor_defs_7303098f1c775f7f, []int{6} |
|
|
|
|
|
} |
|
|
|
|
|
func (m *Stats) XXX_Unmarshal(b []byte) error { |
|
|
|
|
|
return xxx_messageInfo_Stats.Unmarshal(m, b) |
|
|
|
|
|
} |
|
|
|
|
|
func (m *Stats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
|
|
|
|
|
return xxx_messageInfo_Stats.Marshal(b, m, deterministic) |
|
|
|
|
|
} |
|
|
|
|
|
func (dst *Stats) XXX_Merge(src proto.Message) { |
|
|
|
|
|
xxx_messageInfo_Stats.Merge(dst, src) |
|
|
|
|
|
} |
|
|
|
|
|
func (m *Stats) XXX_Size() int { |
|
|
|
|
|
return xxx_messageInfo_Stats.Size(m) |
|
|
|
|
|
} |
|
|
|
|
|
func (m *Stats) XXX_DiscardUnknown() { |
|
|
|
|
|
xxx_messageInfo_Stats.DiscardUnknown(m) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var xxx_messageInfo_Stats proto.InternalMessageInfo |
|
|
|
|
|
|
|
|
func (m *Stats) Reset() { *m = Stats{} } |
|
|
|
|
|
func (m *Stats) String() string { return proto.CompactTextString(m) } |
|
|
|
|
|
func (*Stats) ProtoMessage() {} |
|
|
|
|
|
func (*Stats) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } |
|
|
|
|
|
|
|
|
func (m *Stats) GetData() map[string]string { |
|
|
func (m *Stats) GetData() map[string]string { |
|
|
if m != nil { |
|
|
if m != nil { |
|
@ -409,37 +269,15 @@ func (m *Stats) GetTimeAt() int64 { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
type Init struct { |
|
|
type Init struct { |
|
|
Type string `protobuf:"bytes,1,opt,name=Type" json:"Type,omitempty"` |
|
|
|
|
|
Name string `protobuf:"bytes,2,opt,name=Name" json:"Name,omitempty"` |
|
|
|
|
|
Dir string `protobuf:"bytes,3,opt,name=Dir" json:"Dir,omitempty"` |
|
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"` |
|
|
|
|
|
XXX_unrecognized []byte `json:"-"` |
|
|
|
|
|
XXX_sizecache int32 `json:"-"` |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (m *Init) Reset() { *m = Init{} } |
|
|
|
|
|
func (m *Init) String() string { return proto.CompactTextString(m) } |
|
|
|
|
|
func (*Init) ProtoMessage() {} |
|
|
|
|
|
func (*Init) Descriptor() ([]byte, []int) { |
|
|
|
|
|
return fileDescriptor_defs_7303098f1c775f7f, []int{7} |
|
|
|
|
|
} |
|
|
|
|
|
func (m *Init) XXX_Unmarshal(b []byte) error { |
|
|
|
|
|
return xxx_messageInfo_Init.Unmarshal(m, b) |
|
|
|
|
|
} |
|
|
|
|
|
func (m *Init) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
|
|
|
|
|
return xxx_messageInfo_Init.Marshal(b, m, deterministic) |
|
|
|
|
|
} |
|
|
|
|
|
func (dst *Init) XXX_Merge(src proto.Message) { |
|
|
|
|
|
xxx_messageInfo_Init.Merge(dst, src) |
|
|
|
|
|
} |
|
|
|
|
|
func (m *Init) XXX_Size() int { |
|
|
|
|
|
return xxx_messageInfo_Init.Size(m) |
|
|
|
|
|
} |
|
|
|
|
|
func (m *Init) XXX_DiscardUnknown() { |
|
|
|
|
|
xxx_messageInfo_Init.DiscardUnknown(m) |
|
|
|
|
|
|
|
|
Type string `protobuf:"bytes,1,opt,name=Type" json:"Type,omitempty"` |
|
|
|
|
|
Name string `protobuf:"bytes,2,opt,name=Name" json:"Name,omitempty"` |
|
|
|
|
|
Dir string `protobuf:"bytes,3,opt,name=Dir" json:"Dir,omitempty"` |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
var xxx_messageInfo_Init proto.InternalMessageInfo |
|
|
|
|
|
|
|
|
func (m *Init) Reset() { *m = Init{} } |
|
|
|
|
|
func (m *Init) String() string { return proto.CompactTextString(m) } |
|
|
|
|
|
func (*Init) ProtoMessage() {} |
|
|
|
|
|
func (*Init) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } |
|
|
|
|
|
|
|
|
func (m *Init) GetType() string { |
|
|
func (m *Init) GetType() string { |
|
|
if m != nil { |
|
|
if m != nil { |
|
@ -470,7 +308,6 @@ func init() { |
|
|
proto.RegisterType((*Domain)(nil), "protodb.Domain") |
|
|
proto.RegisterType((*Domain)(nil), "protodb.Domain") |
|
|
proto.RegisterType((*Iterator)(nil), "protodb.Iterator") |
|
|
proto.RegisterType((*Iterator)(nil), "protodb.Iterator") |
|
|
proto.RegisterType((*Stats)(nil), "protodb.Stats") |
|
|
proto.RegisterType((*Stats)(nil), "protodb.Stats") |
|
|
proto.RegisterMapType((map[string]string)(nil), "protodb.Stats.DataEntry") |
|
|
|
|
|
proto.RegisterType((*Init)(nil), "protodb.Init") |
|
|
proto.RegisterType((*Init)(nil), "protodb.Init") |
|
|
proto.RegisterEnum("protodb.Operation_Type", Operation_Type_name, Operation_Type_value) |
|
|
proto.RegisterEnum("protodb.Operation_Type", Operation_Type_name, Operation_Type_value) |
|
|
} |
|
|
} |
|
@ -483,9 +320,8 @@ var _ grpc.ClientConn |
|
|
// is compatible with the grpc package it is being compiled against.
|
|
|
// is compatible with the grpc package it is being compiled against.
|
|
|
const _ = grpc.SupportPackageIsVersion4 |
|
|
const _ = grpc.SupportPackageIsVersion4 |
|
|
|
|
|
|
|
|
// DBClient is the client API for DB service.
|
|
|
|
|
|
//
|
|
|
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
|
|
|
|
|
|
|
// Client API for DB service
|
|
|
|
|
|
|
|
|
type DBClient interface { |
|
|
type DBClient interface { |
|
|
Init(ctx context.Context, in *Init, opts ...grpc.CallOption) (*Entity, error) |
|
|
Init(ctx context.Context, in *Init, opts ...grpc.CallOption) (*Entity, error) |
|
|
Get(ctx context.Context, in *Entity, opts ...grpc.CallOption) (*Entity, error) |
|
|
Get(ctx context.Context, in *Entity, opts ...grpc.CallOption) (*Entity, error) |
|
@ -513,7 +349,7 @@ func NewDBClient(cc *grpc.ClientConn) DBClient { |
|
|
|
|
|
|
|
|
func (c *dBClient) Init(ctx context.Context, in *Init, opts ...grpc.CallOption) (*Entity, error) { |
|
|
func (c *dBClient) Init(ctx context.Context, in *Init, opts ...grpc.CallOption) (*Entity, error) { |
|
|
out := new(Entity) |
|
|
out := new(Entity) |
|
|
err := c.cc.Invoke(ctx, "/protodb.DB/init", in, out, opts...) |
|
|
|
|
|
|
|
|
err := grpc.Invoke(ctx, "/protodb.DB/init", in, out, c.cc, opts...) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return nil, err |
|
|
return nil, err |
|
|
} |
|
|
} |
|
@ -522,7 +358,7 @@ func (c *dBClient) Init(ctx context.Context, in *Init, opts ...grpc.CallOption) |
|
|
|
|
|
|
|
|
func (c *dBClient) Get(ctx context.Context, in *Entity, opts ...grpc.CallOption) (*Entity, error) { |
|
|
func (c *dBClient) Get(ctx context.Context, in *Entity, opts ...grpc.CallOption) (*Entity, error) { |
|
|
out := new(Entity) |
|
|
out := new(Entity) |
|
|
err := c.cc.Invoke(ctx, "/protodb.DB/get", in, out, opts...) |
|
|
|
|
|
|
|
|
err := grpc.Invoke(ctx, "/protodb.DB/get", in, out, c.cc, opts...) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return nil, err |
|
|
return nil, err |
|
|
} |
|
|
} |
|
@ -530,7 +366,7 @@ func (c *dBClient) Get(ctx context.Context, in *Entity, opts ...grpc.CallOption) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (c *dBClient) GetStream(ctx context.Context, opts ...grpc.CallOption) (DB_GetStreamClient, error) { |
|
|
func (c *dBClient) GetStream(ctx context.Context, opts ...grpc.CallOption) (DB_GetStreamClient, error) { |
|
|
stream, err := c.cc.NewStream(ctx, &_DB_serviceDesc.Streams[0], "/protodb.DB/getStream", opts...) |
|
|
|
|
|
|
|
|
stream, err := grpc.NewClientStream(ctx, &_DB_serviceDesc.Streams[0], c.cc, "/protodb.DB/getStream", opts...) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return nil, err |
|
|
return nil, err |
|
|
} |
|
|
} |
|
@ -562,7 +398,7 @@ func (x *dBGetStreamClient) Recv() (*Entity, error) { |
|
|
|
|
|
|
|
|
func (c *dBClient) Has(ctx context.Context, in *Entity, opts ...grpc.CallOption) (*Entity, error) { |
|
|
func (c *dBClient) Has(ctx context.Context, in *Entity, opts ...grpc.CallOption) (*Entity, error) { |
|
|
out := new(Entity) |
|
|
out := new(Entity) |
|
|
err := c.cc.Invoke(ctx, "/protodb.DB/has", in, out, opts...) |
|
|
|
|
|
|
|
|
err := grpc.Invoke(ctx, "/protodb.DB/has", in, out, c.cc, opts...) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return nil, err |
|
|
return nil, err |
|
|
} |
|
|
} |
|
@ -571,7 +407,7 @@ func (c *dBClient) Has(ctx context.Context, in *Entity, opts ...grpc.CallOption) |
|
|
|
|
|
|
|
|
func (c *dBClient) Set(ctx context.Context, in *Entity, opts ...grpc.CallOption) (*Nothing, error) { |
|
|
func (c *dBClient) Set(ctx context.Context, in *Entity, opts ...grpc.CallOption) (*Nothing, error) { |
|
|
out := new(Nothing) |
|
|
out := new(Nothing) |
|
|
err := c.cc.Invoke(ctx, "/protodb.DB/set", in, out, opts...) |
|
|
|
|
|
|
|
|
err := grpc.Invoke(ctx, "/protodb.DB/set", in, out, c.cc, opts...) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return nil, err |
|
|
return nil, err |
|
|
} |
|
|
} |
|
@ -580,7 +416,7 @@ func (c *dBClient) Set(ctx context.Context, in *Entity, opts ...grpc.CallOption) |
|
|
|
|
|
|
|
|
func (c *dBClient) SetSync(ctx context.Context, in *Entity, opts ...grpc.CallOption) (*Nothing, error) { |
|
|
func (c *dBClient) SetSync(ctx context.Context, in *Entity, opts ...grpc.CallOption) (*Nothing, error) { |
|
|
out := new(Nothing) |
|
|
out := new(Nothing) |
|
|
err := c.cc.Invoke(ctx, "/protodb.DB/setSync", in, out, opts...) |
|
|
|
|
|
|
|
|
err := grpc.Invoke(ctx, "/protodb.DB/setSync", in, out, c.cc, opts...) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return nil, err |
|
|
return nil, err |
|
|
} |
|
|
} |
|
@ -589,7 +425,7 @@ func (c *dBClient) SetSync(ctx context.Context, in *Entity, opts ...grpc.CallOpt |
|
|
|
|
|
|
|
|
func (c *dBClient) Delete(ctx context.Context, in *Entity, opts ...grpc.CallOption) (*Nothing, error) { |
|
|
func (c *dBClient) Delete(ctx context.Context, in *Entity, opts ...grpc.CallOption) (*Nothing, error) { |
|
|
out := new(Nothing) |
|
|
out := new(Nothing) |
|
|
err := c.cc.Invoke(ctx, "/protodb.DB/delete", in, out, opts...) |
|
|
|
|
|
|
|
|
err := grpc.Invoke(ctx, "/protodb.DB/delete", in, out, c.cc, opts...) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return nil, err |
|
|
return nil, err |
|
|
} |
|
|
} |
|
@ -598,7 +434,7 @@ func (c *dBClient) Delete(ctx context.Context, in *Entity, opts ...grpc.CallOpti |
|
|
|
|
|
|
|
|
func (c *dBClient) DeleteSync(ctx context.Context, in *Entity, opts ...grpc.CallOption) (*Nothing, error) { |
|
|
func (c *dBClient) DeleteSync(ctx context.Context, in *Entity, opts ...grpc.CallOption) (*Nothing, error) { |
|
|
out := new(Nothing) |
|
|
out := new(Nothing) |
|
|
err := c.cc.Invoke(ctx, "/protodb.DB/deleteSync", in, out, opts...) |
|
|
|
|
|
|
|
|
err := grpc.Invoke(ctx, "/protodb.DB/deleteSync", in, out, c.cc, opts...) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return nil, err |
|
|
return nil, err |
|
|
} |
|
|
} |
|
@ -606,7 +442,7 @@ func (c *dBClient) DeleteSync(ctx context.Context, in *Entity, opts ...grpc.Call |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (c *dBClient) Iterator(ctx context.Context, in *Entity, opts ...grpc.CallOption) (DB_IteratorClient, error) { |
|
|
func (c *dBClient) Iterator(ctx context.Context, in *Entity, opts ...grpc.CallOption) (DB_IteratorClient, error) { |
|
|
stream, err := c.cc.NewStream(ctx, &_DB_serviceDesc.Streams[1], "/protodb.DB/iterator", opts...) |
|
|
|
|
|
|
|
|
stream, err := grpc.NewClientStream(ctx, &_DB_serviceDesc.Streams[1], c.cc, "/protodb.DB/iterator", opts...) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return nil, err |
|
|
return nil, err |
|
|
} |
|
|
} |
|
@ -638,7 +474,7 @@ func (x *dBIteratorClient) Recv() (*Iterator, error) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (c *dBClient) ReverseIterator(ctx context.Context, in *Entity, opts ...grpc.CallOption) (DB_ReverseIteratorClient, error) { |
|
|
func (c *dBClient) ReverseIterator(ctx context.Context, in *Entity, opts ...grpc.CallOption) (DB_ReverseIteratorClient, error) { |
|
|
stream, err := c.cc.NewStream(ctx, &_DB_serviceDesc.Streams[2], "/protodb.DB/reverseIterator", opts...) |
|
|
|
|
|
|
|
|
stream, err := grpc.NewClientStream(ctx, &_DB_serviceDesc.Streams[2], c.cc, "/protodb.DB/reverseIterator", opts...) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return nil, err |
|
|
return nil, err |
|
|
} |
|
|
} |
|
@ -671,7 +507,7 @@ func (x *dBReverseIteratorClient) Recv() (*Iterator, error) { |
|
|
|
|
|
|
|
|
func (c *dBClient) Stats(ctx context.Context, in *Nothing, opts ...grpc.CallOption) (*Stats, error) { |
|
|
func (c *dBClient) Stats(ctx context.Context, in *Nothing, opts ...grpc.CallOption) (*Stats, error) { |
|
|
out := new(Stats) |
|
|
out := new(Stats) |
|
|
err := c.cc.Invoke(ctx, "/protodb.DB/stats", in, out, opts...) |
|
|
|
|
|
|
|
|
err := grpc.Invoke(ctx, "/protodb.DB/stats", in, out, c.cc, opts...) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return nil, err |
|
|
return nil, err |
|
|
} |
|
|
} |
|
@ -680,7 +516,7 @@ func (c *dBClient) Stats(ctx context.Context, in *Nothing, opts ...grpc.CallOpti |
|
|
|
|
|
|
|
|
func (c *dBClient) BatchWrite(ctx context.Context, in *Batch, opts ...grpc.CallOption) (*Nothing, error) { |
|
|
func (c *dBClient) BatchWrite(ctx context.Context, in *Batch, opts ...grpc.CallOption) (*Nothing, error) { |
|
|
out := new(Nothing) |
|
|
out := new(Nothing) |
|
|
err := c.cc.Invoke(ctx, "/protodb.DB/batchWrite", in, out, opts...) |
|
|
|
|
|
|
|
|
err := grpc.Invoke(ctx, "/protodb.DB/batchWrite", in, out, c.cc, opts...) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return nil, err |
|
|
return nil, err |
|
|
} |
|
|
} |
|
@ -689,7 +525,7 @@ func (c *dBClient) BatchWrite(ctx context.Context, in *Batch, opts ...grpc.CallO |
|
|
|
|
|
|
|
|
func (c *dBClient) BatchWriteSync(ctx context.Context, in *Batch, opts ...grpc.CallOption) (*Nothing, error) { |
|
|
func (c *dBClient) BatchWriteSync(ctx context.Context, in *Batch, opts ...grpc.CallOption) (*Nothing, error) { |
|
|
out := new(Nothing) |
|
|
out := new(Nothing) |
|
|
err := c.cc.Invoke(ctx, "/protodb.DB/batchWriteSync", in, out, opts...) |
|
|
|
|
|
|
|
|
err := grpc.Invoke(ctx, "/protodb.DB/batchWriteSync", in, out, c.cc, opts...) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return nil, err |
|
|
return nil, err |
|
|
} |
|
|
} |
|
@ -1033,9 +869,9 @@ var _DB_serviceDesc = grpc.ServiceDesc{ |
|
|
Metadata: "defs.proto", |
|
|
Metadata: "defs.proto", |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func init() { proto.RegisterFile("defs.proto", fileDescriptor_defs_7303098f1c775f7f) } |
|
|
|
|
|
|
|
|
func init() { proto.RegisterFile("defs.proto", fileDescriptor0) } |
|
|
|
|
|
|
|
|
var fileDescriptor_defs_7303098f1c775f7f = []byte{ |
|
|
|
|
|
|
|
|
var fileDescriptor0 = []byte{ |
|
|
// 606 bytes of a gzipped FileDescriptorProto
|
|
|
// 606 bytes of a gzipped FileDescriptorProto
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0x4f, 0x6f, 0xd3, 0x4e, |
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0x4f, 0x6f, 0xd3, 0x4e, |
|
|
0x10, 0xcd, 0xda, 0x8e, 0x13, 0x4f, 0x7f, 0xbf, 0x34, 0x8c, 0x10, 0xb5, 0x8a, 0x90, 0x22, 0x0b, |
|
|
0x10, 0xcd, 0xda, 0x8e, 0x13, 0x4f, 0x7f, 0xbf, 0x34, 0x8c, 0x10, 0xb5, 0x8a, 0x90, 0x22, 0x0b, |
|
|