|
|
@ -1,22 +1,6 @@
|
|
|
|
// 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"
|
|
|
@ -58,16 +42,40 @@ 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 fileDescriptor0, []int{1, 0} }
|
|
|
|
func (Operation_Type) EnumDescriptor() ([]byte, []int) {
|
|
|
|
|
|
|
|
return fileDescriptor_defs_7303098f1c775f7f, []int{1, 0}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type Batch struct {
|
|
|
|
type Batch struct {
|
|
|
|
Ops []*Operation `protobuf:"bytes,1,rep,name=ops" json:"ops,omitempty"`
|
|
|
|
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) Reset() { *m = Batch{} }
|
|
|
|
func (m *Batch) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (m *Batch) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Batch) ProtoMessage() {}
|
|
|
|
func (*Batch) ProtoMessage() {}
|
|
|
|
func (*Batch) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
|
|
|
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)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var xxx_messageInfo_Batch proto.InternalMessageInfo
|
|
|
|
|
|
|
|
|
|
|
|
func (m *Batch) GetOps() []*Operation {
|
|
|
|
func (m *Batch) GetOps() []*Operation {
|
|
|
|
if m != nil {
|
|
|
|
if m != nil {
|
|
|
@ -79,12 +87,34 @@ func (m *Batch) GetOps() []*Operation {
|
|
|
|
type Operation struct {
|
|
|
|
type Operation struct {
|
|
|
|
Entity *Entity `protobuf:"bytes,1,opt,name=entity" json:"entity,omitempty"`
|
|
|
|
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"`
|
|
|
|
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) Reset() { *m = Operation{} }
|
|
|
|
func (m *Operation) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (m *Operation) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Operation) ProtoMessage() {}
|
|
|
|
func (*Operation) ProtoMessage() {}
|
|
|
|
func (*Operation) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
|
|
|
|
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)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var xxx_messageInfo_Operation proto.InternalMessageInfo
|
|
|
|
|
|
|
|
|
|
|
|
func (m *Operation) GetEntity() *Entity {
|
|
|
|
func (m *Operation) GetEntity() *Entity {
|
|
|
|
if m != nil {
|
|
|
|
if m != nil {
|
|
|
@ -109,12 +139,34 @@ type Entity struct {
|
|
|
|
End []byte `protobuf:"bytes,6,opt,name=end,proto3" json:"end,omitempty"`
|
|
|
|
End []byte `protobuf:"bytes,6,opt,name=end,proto3" json:"end,omitempty"`
|
|
|
|
Err string `protobuf:"bytes,7,opt,name=err" json:"err,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"`
|
|
|
|
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:"-"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (m *Entity) Reset() { *m = Entity{} }
|
|
|
|
func (m *Entity) Reset() { *m = Entity{} }
|
|
|
|
func (m *Entity) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (m *Entity) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Entity) ProtoMessage() {}
|
|
|
|
func (*Entity) ProtoMessage() {}
|
|
|
|
func (*Entity) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
|
|
|
|
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) GetId() int32 {
|
|
|
|
func (m *Entity) GetId() int32 {
|
|
|
|
if m != nil {
|
|
|
|
if m != nil {
|
|
|
@ -173,22 +225,66 @@ 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) Reset() { *m = Nothing{} }
|
|
|
|
func (m *Nothing) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (m *Nothing) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Nothing) ProtoMessage() {}
|
|
|
|
func (*Nothing) ProtoMessage() {}
|
|
|
|
func (*Nothing) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
type Domain struct {
|
|
|
|
type Domain struct {
|
|
|
|
Start []byte `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"`
|
|
|
|
Start []byte `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"`
|
|
|
|
End []byte `protobuf:"bytes,2,opt,name=end,proto3" json:"end,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:"-"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (m *Domain) Reset() { *m = Domain{} }
|
|
|
|
func (m *Domain) Reset() { *m = Domain{} }
|
|
|
|
func (m *Domain) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (m *Domain) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Domain) ProtoMessage() {}
|
|
|
|
func (*Domain) ProtoMessage() {}
|
|
|
|
func (*Domain) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
|
|
|
|
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) GetStart() []byte {
|
|
|
|
func (m *Domain) GetStart() []byte {
|
|
|
|
if m != nil {
|
|
|
|
if m != nil {
|
|
|
@ -209,12 +305,34 @@ type Iterator struct {
|
|
|
|
Valid bool `protobuf:"varint,2,opt,name=valid" json:"valid,omitempty"`
|
|
|
|
Valid bool `protobuf:"varint,2,opt,name=valid" json:"valid,omitempty"`
|
|
|
|
Key []byte `protobuf:"bytes,3,opt,name=key,proto3" json:"key,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"`
|
|
|
|
Value []byte `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
|
|
|
|
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (m *Iterator) Reset() { *m = Iterator{} }
|
|
|
|
func (m *Iterator) Reset() { *m = Iterator{} }
|
|
|
|
func (m *Iterator) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (m *Iterator) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Iterator) ProtoMessage() {}
|
|
|
|
func (*Iterator) ProtoMessage() {}
|
|
|
|
func (*Iterator) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
|
|
|
|
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) GetDomain() *Domain {
|
|
|
|
func (m *Iterator) GetDomain() *Domain {
|
|
|
|
if m != nil {
|
|
|
|
if m != nil {
|
|
|
@ -247,12 +365,34 @@ 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"`
|
|
|
|
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"`
|
|
|
|
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:"-"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (m *Stats) Reset() { *m = Stats{} }
|
|
|
|
func (m *Stats) Reset() { *m = Stats{} }
|
|
|
|
func (m *Stats) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (m *Stats) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Stats) ProtoMessage() {}
|
|
|
|
func (*Stats) ProtoMessage() {}
|
|
|
|
func (*Stats) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
|
|
|
|
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) GetData() map[string]string {
|
|
|
|
func (m *Stats) GetData() map[string]string {
|
|
|
|
if m != nil {
|
|
|
|
if m != nil {
|
|
|
@ -272,12 +412,34 @@ type Init struct {
|
|
|
|
Type string `protobuf:"bytes,1,opt,name=Type" json:"Type,omitempty"`
|
|
|
|
Type string `protobuf:"bytes,1,opt,name=Type" json:"Type,omitempty"`
|
|
|
|
Name string `protobuf:"bytes,2,opt,name=Name" json:"Name,omitempty"`
|
|
|
|
Name string `protobuf:"bytes,2,opt,name=Name" json:"Name,omitempty"`
|
|
|
|
Dir string `protobuf:"bytes,3,opt,name=Dir" json:"Dir,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) Reset() { *m = Init{} }
|
|
|
|
func (m *Init) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (m *Init) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Init) ProtoMessage() {}
|
|
|
|
func (*Init) ProtoMessage() {}
|
|
|
|
func (*Init) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
|
|
|
|
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)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var xxx_messageInfo_Init proto.InternalMessageInfo
|
|
|
|
|
|
|
|
|
|
|
|
func (m *Init) GetType() string {
|
|
|
|
func (m *Init) GetType() string {
|
|
|
|
if m != nil {
|
|
|
|
if m != nil {
|
|
|
@ -308,6 +470,7 @@ 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)
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -320,8 +483,9 @@ 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
|
|
|
|
|
|
|
|
|
|
|
|
// Client API for DB service
|
|
|
|
// 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.
|
|
|
|
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)
|
|
|
@ -349,7 +513,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 := grpc.Invoke(ctx, "/protodb.DB/init", in, out, c.cc, opts...)
|
|
|
|
err := c.cc.Invoke(ctx, "/protodb.DB/init", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -358,7 +522,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 := grpc.Invoke(ctx, "/protodb.DB/get", in, out, c.cc, opts...)
|
|
|
|
err := c.cc.Invoke(ctx, "/protodb.DB/get", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -366,7 +530,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 := grpc.NewClientStream(ctx, &_DB_serviceDesc.Streams[0], c.cc, "/protodb.DB/getStream", opts...)
|
|
|
|
stream, err := c.cc.NewStream(ctx, &_DB_serviceDesc.Streams[0], "/protodb.DB/getStream", opts...)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -398,7 +562,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 := grpc.Invoke(ctx, "/protodb.DB/has", in, out, c.cc, opts...)
|
|
|
|
err := c.cc.Invoke(ctx, "/protodb.DB/has", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -407,7 +571,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 := grpc.Invoke(ctx, "/protodb.DB/set", in, out, c.cc, opts...)
|
|
|
|
err := c.cc.Invoke(ctx, "/protodb.DB/set", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -416,7 +580,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 := grpc.Invoke(ctx, "/protodb.DB/setSync", in, out, c.cc, opts...)
|
|
|
|
err := c.cc.Invoke(ctx, "/protodb.DB/setSync", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -425,7 +589,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 := grpc.Invoke(ctx, "/protodb.DB/delete", in, out, c.cc, opts...)
|
|
|
|
err := c.cc.Invoke(ctx, "/protodb.DB/delete", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -434,7 +598,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 := grpc.Invoke(ctx, "/protodb.DB/deleteSync", in, out, c.cc, opts...)
|
|
|
|
err := c.cc.Invoke(ctx, "/protodb.DB/deleteSync", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -442,7 +606,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 := grpc.NewClientStream(ctx, &_DB_serviceDesc.Streams[1], c.cc, "/protodb.DB/iterator", opts...)
|
|
|
|
stream, err := c.cc.NewStream(ctx, &_DB_serviceDesc.Streams[1], "/protodb.DB/iterator", opts...)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -474,7 +638,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 := grpc.NewClientStream(ctx, &_DB_serviceDesc.Streams[2], c.cc, "/protodb.DB/reverseIterator", opts...)
|
|
|
|
stream, err := c.cc.NewStream(ctx, &_DB_serviceDesc.Streams[2], "/protodb.DB/reverseIterator", opts...)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -507,7 +671,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 := grpc.Invoke(ctx, "/protodb.DB/stats", in, out, c.cc, opts...)
|
|
|
|
err := c.cc.Invoke(ctx, "/protodb.DB/stats", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -516,7 +680,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 := grpc.Invoke(ctx, "/protodb.DB/batchWrite", in, out, c.cc, opts...)
|
|
|
|
err := c.cc.Invoke(ctx, "/protodb.DB/batchWrite", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -525,7 +689,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 := grpc.Invoke(ctx, "/protodb.DB/batchWriteSync", in, out, c.cc, opts...)
|
|
|
|
err := c.cc.Invoke(ctx, "/protodb.DB/batchWriteSync", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -869,9 +1033,9 @@ var _DB_serviceDesc = grpc.ServiceDesc{
|
|
|
|
Metadata: "defs.proto",
|
|
|
|
Metadata: "defs.proto",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func init() { proto.RegisterFile("defs.proto", fileDescriptor0) }
|
|
|
|
func init() { proto.RegisterFile("defs.proto", fileDescriptor_defs_7303098f1c775f7f) }
|
|
|
|
|
|
|
|
|
|
|
|
var fileDescriptor0 = []byte{
|
|
|
|
var fileDescriptor_defs_7303098f1c775f7f = []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,
|