2019-10-11 16:08:50 +03:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
2020-06-19 12:34:12 +03:00
|
|
|
// source: store/service/proto/store.proto
|
2019-10-11 16:08:50 +03:00
|
|
|
|
|
|
|
package go_micro_store
|
|
|
|
|
|
|
|
import (
|
2020-06-19 12:34:12 +03:00
|
|
|
context "context"
|
|
|
|
fmt "fmt"
|
2019-10-11 16:08:50 +03:00
|
|
|
proto "github.com/golang/protobuf/proto"
|
2020-06-19 12:34:12 +03:00
|
|
|
grpc "google.golang.org/grpc"
|
|
|
|
codes "google.golang.org/grpc/codes"
|
|
|
|
status "google.golang.org/grpc/status"
|
|
|
|
math "math"
|
2019-10-11 16:08:50 +03:00
|
|
|
)
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ = proto.Marshal
|
|
|
|
var _ = fmt.Errorf
|
|
|
|
var _ = math.Inf
|
2020-06-03 11:45:08 +03:00
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the proto package it is being compiled against.
|
|
|
|
// A compilation error at this line likely means your copy of the
|
|
|
|
// proto package needs to be updated.
|
|
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
2020-06-03 11:45:08 +03:00
|
|
|
|
|
|
|
type Field struct {
|
|
|
|
// type of value e.g string, int, int64, bool, float64
|
|
|
|
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
|
|
|
|
// the actual value
|
2020-06-19 12:34:12 +03:00
|
|
|
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2020-06-03 11:45:08 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *Field) Reset() { *m = Field{} }
|
|
|
|
func (m *Field) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Field) ProtoMessage() {}
|
|
|
|
func (*Field) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_1ba364858f5c3cdb, []int{0}
|
2020-06-03 11:45:08 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *Field) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_Field.Unmarshal(m, b)
|
2020-06-03 11:45:08 +03:00
|
|
|
}
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *Field) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_Field.Marshal(b, m, deterministic)
|
2020-06-03 11:45:08 +03:00
|
|
|
}
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *Field) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Field.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *Field) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_Field.Size(m)
|
2020-06-03 11:45:08 +03:00
|
|
|
}
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *Field) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Field.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_Field proto.InternalMessageInfo
|
2020-06-03 11:45:08 +03:00
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *Field) GetType() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Type
|
2020-06-03 11:45:08 +03:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
2019-10-11 16:08:50 +03:00
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *Field) GetValue() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Value
|
2020-06-03 11:45:08 +03:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
2019-10-11 16:08:50 +03:00
|
|
|
|
|
|
|
type Record struct {
|
|
|
|
// key of the record
|
|
|
|
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
|
|
|
// value in the record
|
|
|
|
Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
|
2020-03-12 16:41:30 +03:00
|
|
|
// time.Duration (signed int64 nanoseconds)
|
2020-06-03 11:45:08 +03:00
|
|
|
Expiry int64 `protobuf:"varint,3,opt,name=expiry,proto3" json:"expiry,omitempty"`
|
|
|
|
// the associated metadata
|
2020-06-19 12:34:12 +03:00
|
|
|
Metadata map[string]*Field `protobuf:"bytes,4,rep,name=metadata,proto3" json:"metadata,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:"-"`
|
2019-10-11 16:08:50 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *Record) Reset() { *m = Record{} }
|
|
|
|
func (m *Record) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Record) ProtoMessage() {}
|
|
|
|
func (*Record) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_1ba364858f5c3cdb, []int{1}
|
2019-10-11 16:08:50 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *Record) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_Record.Unmarshal(m, b)
|
2019-10-11 16:08:50 +03:00
|
|
|
}
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *Record) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_Record.Marshal(b, m, deterministic)
|
2019-10-11 16:08:50 +03:00
|
|
|
}
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *Record) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Record.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *Record) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_Record.Size(m)
|
|
|
|
}
|
|
|
|
func (m *Record) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Record.DiscardUnknown(m)
|
2020-06-03 11:45:08 +03:00
|
|
|
}
|
2019-10-11 16:08:50 +03:00
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
var xxx_messageInfo_Record proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *Record) GetKey() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Key
|
2019-10-11 16:08:50 +03:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *Record) GetValue() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.Value
|
2019-10-11 16:08:50 +03:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *Record) GetExpiry() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Expiry
|
2019-10-11 16:08:50 +03:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *Record) GetMetadata() map[string]*Field {
|
|
|
|
if m != nil {
|
|
|
|
return m.Metadata
|
2020-06-03 11:45:08 +03:00
|
|
|
}
|
|
|
|
return nil
|
2020-01-09 01:23:14 +03:00
|
|
|
}
|
|
|
|
|
2020-06-03 11:45:08 +03:00
|
|
|
type ReadOptions struct {
|
2020-06-19 12:34:12 +03:00
|
|
|
Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"`
|
|
|
|
Table string `protobuf:"bytes,2,opt,name=table,proto3" json:"table,omitempty"`
|
|
|
|
Prefix bool `protobuf:"varint,3,opt,name=prefix,proto3" json:"prefix,omitempty"`
|
|
|
|
Suffix bool `protobuf:"varint,4,opt,name=suffix,proto3" json:"suffix,omitempty"`
|
|
|
|
Limit uint64 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"`
|
|
|
|
Offset uint64 `protobuf:"varint,6,opt,name=offset,proto3" json:"offset,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ReadOptions) Reset() { *m = ReadOptions{} }
|
|
|
|
func (m *ReadOptions) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ReadOptions) ProtoMessage() {}
|
|
|
|
func (*ReadOptions) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_1ba364858f5c3cdb, []int{2}
|
2020-06-03 11:45:08 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *ReadOptions) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_ReadOptions.Unmarshal(m, b)
|
2020-01-09 01:23:14 +03:00
|
|
|
}
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *ReadOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_ReadOptions.Marshal(b, m, deterministic)
|
2020-01-09 01:23:14 +03:00
|
|
|
}
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *ReadOptions) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ReadOptions.Merge(m, src)
|
2020-01-09 01:23:14 +03:00
|
|
|
}
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *ReadOptions) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_ReadOptions.Size(m)
|
2020-06-03 11:45:08 +03:00
|
|
|
}
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *ReadOptions) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ReadOptions.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_ReadOptions proto.InternalMessageInfo
|
2020-01-09 01:23:14 +03:00
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *ReadOptions) GetDatabase() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Database
|
2020-05-01 00:51:25 +03:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *ReadOptions) GetTable() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Table
|
2020-05-01 00:51:25 +03:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *ReadOptions) GetPrefix() bool {
|
|
|
|
if m != nil {
|
|
|
|
return m.Prefix
|
2020-01-09 01:23:14 +03:00
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *ReadOptions) GetSuffix() bool {
|
|
|
|
if m != nil {
|
|
|
|
return m.Suffix
|
2020-03-12 16:41:30 +03:00
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *ReadOptions) GetLimit() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Limit
|
2020-03-12 16:41:30 +03:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *ReadOptions) GetOffset() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Offset
|
2020-03-12 16:41:30 +03:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2020-01-09 01:23:14 +03:00
|
|
|
type ReadRequest struct {
|
2020-06-19 12:34:12 +03:00
|
|
|
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
|
|
|
Options *ReadOptions `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2019-10-11 16:08:50 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *ReadRequest) Reset() { *m = ReadRequest{} }
|
|
|
|
func (m *ReadRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ReadRequest) ProtoMessage() {}
|
|
|
|
func (*ReadRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_1ba364858f5c3cdb, []int{3}
|
2019-10-11 16:08:50 +03:00
|
|
|
}
|
2020-06-03 11:45:08 +03:00
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *ReadRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_ReadRequest.Unmarshal(m, b)
|
2019-10-11 16:08:50 +03:00
|
|
|
}
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *ReadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_ReadRequest.Marshal(b, m, deterministic)
|
2019-10-11 16:08:50 +03:00
|
|
|
}
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *ReadRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ReadRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *ReadRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_ReadRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *ReadRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ReadRequest.DiscardUnknown(m)
|
2020-06-03 11:45:08 +03:00
|
|
|
}
|
2019-10-11 16:08:50 +03:00
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
var xxx_messageInfo_ReadRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *ReadRequest) GetKey() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Key
|
2020-01-09 01:23:14 +03:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *ReadRequest) GetOptions() *ReadOptions {
|
|
|
|
if m != nil {
|
|
|
|
return m.Options
|
2019-10-11 16:08:50 +03:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type ReadResponse struct {
|
2020-06-19 12:34:12 +03:00
|
|
|
Records []*Record `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2019-10-11 16:08:50 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *ReadResponse) Reset() { *m = ReadResponse{} }
|
|
|
|
func (m *ReadResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ReadResponse) ProtoMessage() {}
|
|
|
|
func (*ReadResponse) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_1ba364858f5c3cdb, []int{4}
|
2019-10-11 16:08:50 +03:00
|
|
|
}
|
2020-06-03 11:45:08 +03:00
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *ReadResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_ReadResponse.Unmarshal(m, b)
|
2019-10-11 16:08:50 +03:00
|
|
|
}
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *ReadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_ReadResponse.Marshal(b, m, deterministic)
|
2019-10-11 16:08:50 +03:00
|
|
|
}
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *ReadResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ReadResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *ReadResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_ReadResponse.Size(m)
|
2020-06-03 11:45:08 +03:00
|
|
|
}
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *ReadResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ReadResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_ReadResponse proto.InternalMessageInfo
|
2019-10-11 16:08:50 +03:00
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *ReadResponse) GetRecords() []*Record {
|
|
|
|
if m != nil {
|
|
|
|
return m.Records
|
2019-10-11 16:08:50 +03:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-03-12 16:41:30 +03:00
|
|
|
type WriteOptions struct {
|
2020-05-01 00:51:25 +03:00
|
|
|
Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"`
|
|
|
|
Table string `protobuf:"bytes,2,opt,name=table,proto3" json:"table,omitempty"`
|
2020-03-12 16:41:30 +03:00
|
|
|
// time.Time
|
2020-05-01 00:51:25 +03:00
|
|
|
Expiry int64 `protobuf:"varint,3,opt,name=expiry,proto3" json:"expiry,omitempty"`
|
2020-03-12 16:41:30 +03:00
|
|
|
// time.Duration
|
2020-06-19 12:34:12 +03:00
|
|
|
Ttl int64 `protobuf:"varint,4,opt,name=ttl,proto3" json:"ttl,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2019-10-11 16:08:50 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *WriteOptions) Reset() { *m = WriteOptions{} }
|
|
|
|
func (m *WriteOptions) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*WriteOptions) ProtoMessage() {}
|
|
|
|
func (*WriteOptions) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_1ba364858f5c3cdb, []int{5}
|
2020-03-12 16:41:30 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *WriteOptions) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_WriteOptions.Unmarshal(m, b)
|
2020-03-12 16:41:30 +03:00
|
|
|
}
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *WriteOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_WriteOptions.Marshal(b, m, deterministic)
|
2020-03-12 16:41:30 +03:00
|
|
|
}
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *WriteOptions) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_WriteOptions.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *WriteOptions) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_WriteOptions.Size(m)
|
2020-06-03 11:45:08 +03:00
|
|
|
}
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *WriteOptions) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_WriteOptions.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_WriteOptions proto.InternalMessageInfo
|
2020-03-12 16:41:30 +03:00
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *WriteOptions) GetDatabase() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Database
|
2020-05-01 00:51:25 +03:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *WriteOptions) GetTable() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Table
|
2020-05-01 00:51:25 +03:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *WriteOptions) GetExpiry() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Expiry
|
2020-03-12 16:41:30 +03:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *WriteOptions) GetTtl() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Ttl
|
2020-03-12 16:41:30 +03:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
type WriteRequest struct {
|
2020-06-19 12:34:12 +03:00
|
|
|
Record *Record `protobuf:"bytes,1,opt,name=record,proto3" json:"record,omitempty"`
|
|
|
|
Options *WriteOptions `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2019-10-11 16:08:50 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *WriteRequest) Reset() { *m = WriteRequest{} }
|
|
|
|
func (m *WriteRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*WriteRequest) ProtoMessage() {}
|
|
|
|
func (*WriteRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_1ba364858f5c3cdb, []int{6}
|
2019-10-11 16:08:50 +03:00
|
|
|
}
|
2020-06-03 11:45:08 +03:00
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *WriteRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_WriteRequest.Unmarshal(m, b)
|
2019-10-11 16:08:50 +03:00
|
|
|
}
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *WriteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_WriteRequest.Marshal(b, m, deterministic)
|
2019-10-11 16:08:50 +03:00
|
|
|
}
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *WriteRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_WriteRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *WriteRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_WriteRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *WriteRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_WriteRequest.DiscardUnknown(m)
|
2020-06-03 11:45:08 +03:00
|
|
|
}
|
2019-10-11 16:08:50 +03:00
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
var xxx_messageInfo_WriteRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *WriteRequest) GetRecord() *Record {
|
|
|
|
if m != nil {
|
|
|
|
return m.Record
|
2019-10-11 16:08:50 +03:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *WriteRequest) GetOptions() *WriteOptions {
|
|
|
|
if m != nil {
|
|
|
|
return m.Options
|
2020-03-12 16:41:30 +03:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2019-10-11 16:08:50 +03:00
|
|
|
type WriteResponse struct {
|
2020-06-19 12:34:12 +03:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2019-10-11 16:08:50 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *WriteResponse) Reset() { *m = WriteResponse{} }
|
|
|
|
func (m *WriteResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*WriteResponse) ProtoMessage() {}
|
|
|
|
func (*WriteResponse) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_1ba364858f5c3cdb, []int{7}
|
2019-10-11 16:08:50 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *WriteResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_WriteResponse.Unmarshal(m, b)
|
2019-10-11 16:08:50 +03:00
|
|
|
}
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *WriteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_WriteResponse.Marshal(b, m, deterministic)
|
2019-10-11 16:08:50 +03:00
|
|
|
}
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *WriteResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_WriteResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *WriteResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_WriteResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *WriteResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_WriteResponse.DiscardUnknown(m)
|
2020-03-12 16:41:30 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
var xxx_messageInfo_WriteResponse proto.InternalMessageInfo
|
2020-06-03 11:45:08 +03:00
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
type DeleteOptions struct {
|
|
|
|
Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"`
|
|
|
|
Table string `protobuf:"bytes,2,opt,name=table,proto3" json:"table,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2020-03-12 16:41:30 +03:00
|
|
|
}
|
2020-06-03 11:45:08 +03:00
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *DeleteOptions) Reset() { *m = DeleteOptions{} }
|
|
|
|
func (m *DeleteOptions) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*DeleteOptions) ProtoMessage() {}
|
|
|
|
func (*DeleteOptions) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_1ba364858f5c3cdb, []int{8}
|
2020-03-12 16:41:30 +03:00
|
|
|
}
|
2020-06-03 11:45:08 +03:00
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *DeleteOptions) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_DeleteOptions.Unmarshal(m, b)
|
2020-03-12 16:41:30 +03:00
|
|
|
}
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *DeleteOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_DeleteOptions.Marshal(b, m, deterministic)
|
2020-03-12 16:41:30 +03:00
|
|
|
}
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *DeleteOptions) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_DeleteOptions.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *DeleteOptions) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_DeleteOptions.Size(m)
|
|
|
|
}
|
|
|
|
func (m *DeleteOptions) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_DeleteOptions.DiscardUnknown(m)
|
2020-06-03 11:45:08 +03:00
|
|
|
}
|
2020-03-12 16:41:30 +03:00
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
var xxx_messageInfo_DeleteOptions proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *DeleteOptions) GetDatabase() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Database
|
2020-05-01 00:51:25 +03:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *DeleteOptions) GetTable() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Table
|
2020-05-01 00:51:25 +03:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-03-12 16:41:30 +03:00
|
|
|
type DeleteRequest struct {
|
2020-06-19 12:34:12 +03:00
|
|
|
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
|
|
|
Options *DeleteOptions `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2019-10-11 16:08:50 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *DeleteRequest) Reset() { *m = DeleteRequest{} }
|
|
|
|
func (m *DeleteRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*DeleteRequest) ProtoMessage() {}
|
|
|
|
func (*DeleteRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_1ba364858f5c3cdb, []int{9}
|
2019-10-11 16:08:50 +03:00
|
|
|
}
|
2020-06-03 11:45:08 +03:00
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *DeleteRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_DeleteRequest.Unmarshal(m, b)
|
2019-10-11 16:08:50 +03:00
|
|
|
}
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_DeleteRequest.Marshal(b, m, deterministic)
|
2019-10-11 16:08:50 +03:00
|
|
|
}
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *DeleteRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_DeleteRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *DeleteRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_DeleteRequest.Size(m)
|
2020-06-03 11:45:08 +03:00
|
|
|
}
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *DeleteRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_DeleteRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_DeleteRequest proto.InternalMessageInfo
|
2019-10-11 16:08:50 +03:00
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *DeleteRequest) GetKey() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Key
|
2019-10-11 16:08:50 +03:00
|
|
|
}
|
2020-01-09 01:23:14 +03:00
|
|
|
return ""
|
2019-10-11 16:08:50 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *DeleteRequest) GetOptions() *DeleteOptions {
|
|
|
|
if m != nil {
|
|
|
|
return m.Options
|
2020-03-12 16:41:30 +03:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2019-10-11 16:08:50 +03:00
|
|
|
type DeleteResponse struct {
|
2020-06-19 12:34:12 +03:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2019-10-11 16:08:50 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *DeleteResponse) Reset() { *m = DeleteResponse{} }
|
|
|
|
func (m *DeleteResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*DeleteResponse) ProtoMessage() {}
|
|
|
|
func (*DeleteResponse) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_1ba364858f5c3cdb, []int{10}
|
2019-10-11 16:08:50 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *DeleteResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_DeleteResponse.Unmarshal(m, b)
|
2019-10-11 16:08:50 +03:00
|
|
|
}
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_DeleteResponse.Marshal(b, m, deterministic)
|
2020-03-12 16:41:30 +03:00
|
|
|
}
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *DeleteResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_DeleteResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *DeleteResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_DeleteResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *DeleteResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_DeleteResponse.DiscardUnknown(m)
|
2020-03-12 16:41:30 +03:00
|
|
|
}
|
2020-06-03 11:45:08 +03:00
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
var xxx_messageInfo_DeleteResponse proto.InternalMessageInfo
|
2020-06-03 11:45:08 +03:00
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
type ListOptions struct {
|
|
|
|
Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"`
|
|
|
|
Table string `protobuf:"bytes,2,opt,name=table,proto3" json:"table,omitempty"`
|
|
|
|
Prefix string `protobuf:"bytes,3,opt,name=prefix,proto3" json:"prefix,omitempty"`
|
|
|
|
Suffix string `protobuf:"bytes,4,opt,name=suffix,proto3" json:"suffix,omitempty"`
|
|
|
|
Limit uint64 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"`
|
|
|
|
Offset uint64 `protobuf:"varint,6,opt,name=offset,proto3" json:"offset,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ListOptions) Reset() { *m = ListOptions{} }
|
|
|
|
func (m *ListOptions) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ListOptions) ProtoMessage() {}
|
|
|
|
func (*ListOptions) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_1ba364858f5c3cdb, []int{11}
|
2020-06-03 11:45:08 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *ListOptions) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_ListOptions.Unmarshal(m, b)
|
2020-03-12 16:41:30 +03:00
|
|
|
}
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *ListOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_ListOptions.Marshal(b, m, deterministic)
|
2020-03-12 16:41:30 +03:00
|
|
|
}
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *ListOptions) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ListOptions.Merge(m, src)
|
2020-03-12 16:41:30 +03:00
|
|
|
}
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *ListOptions) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_ListOptions.Size(m)
|
2020-06-03 11:45:08 +03:00
|
|
|
}
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *ListOptions) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ListOptions.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_ListOptions proto.InternalMessageInfo
|
2020-03-12 16:41:30 +03:00
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *ListOptions) GetDatabase() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Database
|
2020-05-01 00:51:25 +03:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *ListOptions) GetTable() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Table
|
2020-05-01 00:51:25 +03:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *ListOptions) GetPrefix() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Prefix
|
2020-03-12 16:41:30 +03:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *ListOptions) GetSuffix() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Suffix
|
2020-03-12 16:41:30 +03:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *ListOptions) GetLimit() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Limit
|
2020-03-12 16:41:30 +03:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *ListOptions) GetOffset() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Offset
|
2020-03-12 16:41:30 +03:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
type ListRequest struct {
|
2020-06-19 12:34:12 +03:00
|
|
|
Options *ListOptions `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2019-10-11 16:08:50 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *ListRequest) Reset() { *m = ListRequest{} }
|
|
|
|
func (m *ListRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ListRequest) ProtoMessage() {}
|
|
|
|
func (*ListRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_1ba364858f5c3cdb, []int{12}
|
2020-03-12 16:41:30 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *ListRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_ListRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *ListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_ListRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *ListRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ListRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *ListRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_ListRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *ListRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ListRequest.DiscardUnknown(m)
|
2019-10-11 16:08:50 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
var xxx_messageInfo_ListRequest proto.InternalMessageInfo
|
2019-10-11 16:08:50 +03:00
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *ListRequest) GetOptions() *ListOptions {
|
|
|
|
if m != nil {
|
|
|
|
return m.Options
|
2020-06-03 11:45:08 +03:00
|
|
|
}
|
2020-06-19 12:34:12 +03:00
|
|
|
return nil
|
2019-10-11 16:08:50 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
type ListResponse struct {
|
|
|
|
Keys []string `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ListResponse) Reset() { *m = ListResponse{} }
|
|
|
|
func (m *ListResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ListResponse) ProtoMessage() {}
|
|
|
|
func (*ListResponse) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_1ba364858f5c3cdb, []int{13}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ListResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_ListResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *ListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_ListResponse.Marshal(b, m, deterministic)
|
2020-06-03 11:45:08 +03:00
|
|
|
}
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *ListResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ListResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *ListResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_ListResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *ListResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ListResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_ListResponse proto.InternalMessageInfo
|
2019-10-11 16:08:50 +03:00
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *ListResponse) GetKeys() []string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Keys
|
2019-10-11 16:08:50 +03:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
type DatabasesRequest struct {
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2020-03-30 23:58:32 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *DatabasesRequest) Reset() { *m = DatabasesRequest{} }
|
|
|
|
func (m *DatabasesRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*DatabasesRequest) ProtoMessage() {}
|
|
|
|
func (*DatabasesRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_1ba364858f5c3cdb, []int{14}
|
2020-04-09 18:37:32 +03:00
|
|
|
}
|
2020-03-30 23:58:32 +03:00
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *DatabasesRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_DatabasesRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *DatabasesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_DatabasesRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *DatabasesRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_DatabasesRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *DatabasesRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_DatabasesRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *DatabasesRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_DatabasesRequest.DiscardUnknown(m)
|
2020-03-30 23:58:32 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
var xxx_messageInfo_DatabasesRequest proto.InternalMessageInfo
|
2020-03-30 23:58:32 +03:00
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
type DatabasesResponse struct {
|
|
|
|
Databases []string `protobuf:"bytes,1,rep,name=databases,proto3" json:"databases,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2020-04-09 18:37:32 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *DatabasesResponse) Reset() { *m = DatabasesResponse{} }
|
|
|
|
func (m *DatabasesResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*DatabasesResponse) ProtoMessage() {}
|
|
|
|
func (*DatabasesResponse) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_1ba364858f5c3cdb, []int{15}
|
2020-06-03 11:45:08 +03:00
|
|
|
}
|
2020-03-30 23:58:32 +03:00
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *DatabasesResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_DatabasesResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *DatabasesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_DatabasesResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *DatabasesResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_DatabasesResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *DatabasesResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_DatabasesResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *DatabasesResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_DatabasesResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_DatabasesResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *DatabasesResponse) GetDatabases() []string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Databases
|
2020-03-30 23:58:32 +03:00
|
|
|
}
|
2020-04-09 18:37:32 +03:00
|
|
|
return nil
|
2020-03-30 23:58:32 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
type TablesRequest struct {
|
|
|
|
Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2020-03-30 23:58:32 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *TablesRequest) Reset() { *m = TablesRequest{} }
|
|
|
|
func (m *TablesRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*TablesRequest) ProtoMessage() {}
|
|
|
|
func (*TablesRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_1ba364858f5c3cdb, []int{16}
|
2020-03-30 23:58:32 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *TablesRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_TablesRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *TablesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_TablesRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *TablesRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_TablesRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *TablesRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_TablesRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *TablesRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_TablesRequest.DiscardUnknown(m)
|
2020-04-09 18:37:32 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
var xxx_messageInfo_TablesRequest proto.InternalMessageInfo
|
2020-03-30 23:58:32 +03:00
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *TablesRequest) GetDatabase() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Database
|
2020-03-30 23:58:32 +03:00
|
|
|
}
|
2020-06-19 12:34:12 +03:00
|
|
|
return ""
|
2020-03-30 23:58:32 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
type TablesResponse struct {
|
|
|
|
Tables []string `protobuf:"bytes,1,rep,name=tables,proto3" json:"tables,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2020-03-30 23:58:32 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *TablesResponse) Reset() { *m = TablesResponse{} }
|
|
|
|
func (m *TablesResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*TablesResponse) ProtoMessage() {}
|
|
|
|
func (*TablesResponse) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_1ba364858f5c3cdb, []int{17}
|
|
|
|
}
|
2020-03-30 23:58:32 +03:00
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *TablesResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_TablesResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *TablesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_TablesResponse.Marshal(b, m, deterministic)
|
2020-03-30 23:58:32 +03:00
|
|
|
}
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *TablesResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_TablesResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *TablesResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_TablesResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *TablesResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_TablesResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_TablesResponse proto.InternalMessageInfo
|
2020-03-30 23:58:32 +03:00
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (m *TablesResponse) GetTables() []string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Tables
|
2020-03-30 23:58:32 +03:00
|
|
|
}
|
2020-06-19 12:34:12 +03:00
|
|
|
return nil
|
2020-03-30 23:58:32 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func init() {
|
|
|
|
proto.RegisterType((*Field)(nil), "go.micro.store.Field")
|
|
|
|
proto.RegisterType((*Record)(nil), "go.micro.store.Record")
|
|
|
|
proto.RegisterMapType((map[string]*Field)(nil), "go.micro.store.Record.MetadataEntry")
|
|
|
|
proto.RegisterType((*ReadOptions)(nil), "go.micro.store.ReadOptions")
|
|
|
|
proto.RegisterType((*ReadRequest)(nil), "go.micro.store.ReadRequest")
|
|
|
|
proto.RegisterType((*ReadResponse)(nil), "go.micro.store.ReadResponse")
|
|
|
|
proto.RegisterType((*WriteOptions)(nil), "go.micro.store.WriteOptions")
|
|
|
|
proto.RegisterType((*WriteRequest)(nil), "go.micro.store.WriteRequest")
|
|
|
|
proto.RegisterType((*WriteResponse)(nil), "go.micro.store.WriteResponse")
|
|
|
|
proto.RegisterType((*DeleteOptions)(nil), "go.micro.store.DeleteOptions")
|
|
|
|
proto.RegisterType((*DeleteRequest)(nil), "go.micro.store.DeleteRequest")
|
|
|
|
proto.RegisterType((*DeleteResponse)(nil), "go.micro.store.DeleteResponse")
|
|
|
|
proto.RegisterType((*ListOptions)(nil), "go.micro.store.ListOptions")
|
|
|
|
proto.RegisterType((*ListRequest)(nil), "go.micro.store.ListRequest")
|
|
|
|
proto.RegisterType((*ListResponse)(nil), "go.micro.store.ListResponse")
|
|
|
|
proto.RegisterType((*DatabasesRequest)(nil), "go.micro.store.DatabasesRequest")
|
|
|
|
proto.RegisterType((*DatabasesResponse)(nil), "go.micro.store.DatabasesResponse")
|
|
|
|
proto.RegisterType((*TablesRequest)(nil), "go.micro.store.TablesRequest")
|
|
|
|
proto.RegisterType((*TablesResponse)(nil), "go.micro.store.TablesResponse")
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() { proto.RegisterFile("store/service/proto/store.proto", fileDescriptor_1ba364858f5c3cdb) }
|
|
|
|
|
|
|
|
var fileDescriptor_1ba364858f5c3cdb = []byte{
|
|
|
|
// 655 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0xdb, 0x6e, 0xd3, 0x40,
|
|
|
|
0x10, 0xad, 0x6b, 0xc7, 0x8d, 0xa7, 0x49, 0x09, 0x2b, 0xa8, 0xac, 0xd0, 0x42, 0x58, 0xf1, 0x60,
|
|
|
|
0xa9, 0x92, 0x7b, 0x41, 0x5c, 0xc4, 0x53, 0x11, 0x6d, 0x25, 0x10, 0x08, 0x69, 0x41, 0x20, 0xf1,
|
|
|
|
0xe6, 0x36, 0x1b, 0x64, 0xea, 0xc6, 0xc6, 0xbb, 0x89, 0x9a, 0x8f, 0xe1, 0x73, 0xf8, 0x0d, 0xbe,
|
|
|
|
0x05, 0xed, 0xcd, 0xb1, 0x1d, 0xbb, 0x0f, 0x94, 0xb7, 0x9d, 0xd9, 0xd9, 0x33, 0xe7, 0x9c, 0x19,
|
|
|
|
0x27, 0xf0, 0x88, 0xf1, 0x34, 0xa7, 0xfb, 0x8c, 0xe6, 0xf3, 0xf8, 0x82, 0xee, 0x67, 0x79, 0xca,
|
|
|
|
0xd3, 0x7d, 0x99, 0x0b, 0xe5, 0x19, 0x6d, 0x7d, 0x4f, 0xc3, 0xab, 0xf8, 0x22, 0x4f, 0x43, 0x99,
|
|
|
|
0xc5, 0x87, 0xd0, 0x39, 0x8b, 0x69, 0x32, 0x46, 0x08, 0x1c, 0xbe, 0xc8, 0xa8, 0x6f, 0x8d, 0xac,
|
|
|
|
0xc0, 0x23, 0xf2, 0x8c, 0xee, 0x41, 0x67, 0x1e, 0x25, 0x33, 0xea, 0xaf, 0xcb, 0xa4, 0x0a, 0xf0,
|
|
|
|
0x1f, 0x0b, 0x5c, 0x42, 0x2f, 0xd2, 0x7c, 0x8c, 0x06, 0x60, 0x5f, 0xd2, 0x85, 0x7e, 0x23, 0x8e,
|
|
|
|
0xd5, 0x27, 0x3d, 0xfd, 0x04, 0x6d, 0x83, 0x4b, 0xaf, 0xb3, 0x38, 0x5f, 0xf8, 0xf6, 0xc8, 0x0a,
|
|
|
|
0x6c, 0xa2, 0x23, 0x74, 0x0c, 0xdd, 0x2b, 0xca, 0xa3, 0x71, 0xc4, 0x23, 0xdf, 0x19, 0xd9, 0xc1,
|
|
|
|
0xe6, 0xd1, 0x93, 0xb0, 0x4a, 0x30, 0x54, 0x9d, 0xc2, 0x0f, 0xba, 0xec, 0x74, 0xca, 0xf3, 0x05,
|
|
|
|
0x29, 0x5e, 0x0d, 0x09, 0xf4, 0x2b, 0x57, 0x0d, 0x94, 0xf6, 0xca, 0x94, 0x36, 0x8f, 0xee, 0xd7,
|
|
|
|
0x3b, 0x48, 0xfd, 0x9a, 0xe9, 0xab, 0xf5, 0x97, 0x16, 0xfe, 0x65, 0xc1, 0x26, 0xa1, 0xd1, 0xf8,
|
|
|
|
0x63, 0xc6, 0xe3, 0x74, 0xca, 0xd0, 0x10, 0xba, 0x02, 0xff, 0x3c, 0x62, 0xc6, 0x9e, 0x22, 0x16,
|
|
|
|
0x7a, 0x79, 0x74, 0x9e, 0x14, 0x16, 0xc9, 0x40, 0xe8, 0xcd, 0x72, 0x3a, 0x89, 0xaf, 0xa5, 0xde,
|
|
|
|
0x2e, 0xd1, 0x91, 0xc8, 0xb3, 0xd9, 0x44, 0xe4, 0x1d, 0x95, 0x57, 0x91, 0x40, 0x49, 0xe2, 0xab,
|
|
|
|
0x98, 0xfb, 0x9d, 0x91, 0x15, 0x38, 0x44, 0x05, 0xa2, 0x3a, 0x9d, 0x4c, 0x18, 0xe5, 0xbe, 0x2b,
|
|
|
|
0xd3, 0x3a, 0xc2, 0x5f, 0x14, 0x3d, 0x42, 0x7f, 0xce, 0x28, 0xe3, 0x0d, 0x8a, 0x9f, 0xc1, 0x46,
|
|
|
|
0xaa, 0xb8, 0x6b, 0xcd, 0x0f, 0x56, 0x5d, 0x2d, 0xe4, 0x11, 0x53, 0x8b, 0x8f, 0xa1, 0xa7, 0x70,
|
|
|
|
0x59, 0x96, 0x4e, 0x19, 0x45, 0x07, 0xb0, 0x91, 0x4b, 0xf7, 0x99, 0x6f, 0xc9, 0xe1, 0x6c, 0x37,
|
|
|
|
0x0f, 0x87, 0x98, 0x32, 0xfc, 0x03, 0x7a, 0x5f, 0xf3, 0x98, 0xd3, 0x5b, 0x39, 0xd7, 0xb8, 0x29,
|
|
|
|
0x03, 0xb0, 0x39, 0x4f, 0xa4, 0x6d, 0x36, 0x11, 0x47, 0x3c, 0xd7, 0xbd, 0x8c, 0x0d, 0x21, 0xb8,
|
|
|
|
0x8a, 0x86, 0xec, 0xd4, 0x4e, 0x56, 0x57, 0xa1, 0xe7, 0x75, 0x93, 0x76, 0xea, 0x0f, 0xca, 0x52,
|
|
|
|
0x96, 0x2e, 0xdd, 0x81, 0xbe, 0xee, 0xab, 0x6c, 0xc2, 0xaf, 0xa1, 0x7f, 0x42, 0x13, 0x7a, 0x0b,
|
|
|
|
0xd5, 0xf8, 0x9b, 0x81, 0x68, 0x9f, 0xe9, 0x8b, 0x3a, 0xdd, 0xdd, 0x3a, 0xdd, 0x0a, 0x89, 0x25,
|
|
|
|
0xdf, 0x01, 0x6c, 0x19, 0x6c, 0x4d, 0x58, 0xec, 0xf7, 0xfb, 0x98, 0xf1, 0xff, 0xb5, 0xdf, 0x5e,
|
|
|
|
0xcb, 0x7e, 0x7b, 0xff, 0xb8, 0xdf, 0x27, 0x8a, 0x9e, 0xf1, 0xa2, 0xb4, 0xcd, 0x56, 0xf3, 0x36,
|
|
|
|
0x97, 0xc4, 0x2c, 0x75, 0x07, 0xd0, 0x53, 0x28, 0x7a, 0x9b, 0x11, 0x38, 0x97, 0x74, 0x21, 0xdc,
|
|
|
|
0xb3, 0xc5, 0x0f, 0x9c, 0x38, 0xbf, 0x73, 0xba, 0xd6, 0x60, 0x1d, 0x23, 0x18, 0x9c, 0x68, 0xbd,
|
|
|
|
0x4c, 0x37, 0xc5, 0x87, 0x70, 0xb7, 0x94, 0xd3, 0x10, 0x3b, 0xe0, 0x19, 0x63, 0xd4, 0x27, 0xe1,
|
|
|
|
0x91, 0x65, 0x02, 0xef, 0x41, 0xff, 0xb3, 0x70, 0xc7, 0x60, 0xdc, 0xe4, 0x2b, 0x0e, 0x60, 0xcb,
|
|
|
|
0x14, 0x6b, 0xf0, 0x6d, 0x70, 0xa5, 0xb9, 0x06, 0x59, 0x47, 0x47, 0xbf, 0x6d, 0xe8, 0x7c, 0x12,
|
|
|
|
0x32, 0xd1, 0x1b, 0x70, 0xc4, 0xf7, 0x89, 0x1a, 0xbf, 0x66, 0xdd, 0x74, 0xb8, 0xd3, 0x7c, 0xa9,
|
|
|
|
0x47, 0xbf, 0x86, 0xce, 0xa0, 0x23, 0xd7, 0x17, 0x35, 0xaf, 0xbb, 0x81, 0xd9, 0x6d, 0xb9, 0x2d,
|
|
|
|
0x70, 0xde, 0x82, 0xab, 0xd6, 0x0a, 0xb5, 0x2c, 0xa2, 0x41, 0x7a, 0xd8, 0x76, 0x5d, 0x40, 0x9d,
|
|
|
|
0x82, 0x23, 0x26, 0x85, 0x1a, 0xe7, 0xda, 0xaa, 0xab, 0x3c, 0x5c, 0xbc, 0x76, 0x60, 0x21, 0x02,
|
|
|
|
0x5e, 0x31, 0x32, 0x34, 0x5a, 0xe9, 0x5a, 0x9b, 0xf0, 0xf0, 0xf1, 0x0d, 0x15, 0x65, 0x95, 0x6a,
|
|
|
|
0x4c, 0xab, 0x2a, 0x2b, 0xb3, 0x5e, 0x55, 0x59, 0x9d, 0x2e, 0x5e, 0x3b, 0x77, 0xe5, 0x1f, 0xf0,
|
|
|
|
0xd3, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xe9, 0x8d, 0xa6, 0x4b, 0xa3, 0x07, 0x00, 0x00,
|
|
|
|
}
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ context.Context
|
|
|
|
var _ grpc.ClientConn
|
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the grpc package it is being compiled against.
|
|
|
|
const _ = grpc.SupportPackageIsVersion4
|
|
|
|
|
|
|
|
// StoreClient is the client API for Store service.
|
|
|
|
//
|
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
|
|
type StoreClient interface {
|
|
|
|
Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (*ReadResponse, error)
|
|
|
|
Write(ctx context.Context, in *WriteRequest, opts ...grpc.CallOption) (*WriteResponse, error)
|
|
|
|
Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error)
|
|
|
|
List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (Store_ListClient, error)
|
|
|
|
Databases(ctx context.Context, in *DatabasesRequest, opts ...grpc.CallOption) (*DatabasesResponse, error)
|
|
|
|
Tables(ctx context.Context, in *TablesRequest, opts ...grpc.CallOption) (*TablesResponse, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
type storeClient struct {
|
|
|
|
cc *grpc.ClientConn
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewStoreClient(cc *grpc.ClientConn) StoreClient {
|
|
|
|
return &storeClient{cc}
|
|
|
|
}
|
2020-05-11 13:47:59 +03:00
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (c *storeClient) Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (*ReadResponse, error) {
|
|
|
|
out := new(ReadResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/go.micro.store.Store/Read", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
2020-05-11 13:47:59 +03:00
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (c *storeClient) Write(ctx context.Context, in *WriteRequest, opts ...grpc.CallOption) (*WriteResponse, error) {
|
|
|
|
out := new(WriteResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/go.micro.store.Store/Write", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
2020-05-11 13:47:59 +03:00
|
|
|
}
|
2020-06-19 12:34:12 +03:00
|
|
|
return out, nil
|
2020-05-11 13:47:59 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (c *storeClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) {
|
|
|
|
out := new(DeleteResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/go.micro.store.Store/Delete", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
2020-05-11 13:47:59 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (c *storeClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (Store_ListClient, error) {
|
|
|
|
stream, err := c.cc.NewStream(ctx, &_Store_serviceDesc.Streams[0], "/go.micro.store.Store/List", opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
2020-05-11 13:47:59 +03:00
|
|
|
}
|
2020-06-19 12:34:12 +03:00
|
|
|
x := &storeListClient{stream}
|
|
|
|
if err := x.ClientStream.SendMsg(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if err := x.ClientStream.CloseSend(); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return x, nil
|
2020-05-11 13:47:59 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
type Store_ListClient interface {
|
|
|
|
Recv() (*ListResponse, error)
|
|
|
|
grpc.ClientStream
|
|
|
|
}
|
2020-05-11 13:47:59 +03:00
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
type storeListClient struct {
|
|
|
|
grpc.ClientStream
|
2020-05-11 13:47:59 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (x *storeListClient) Recv() (*ListResponse, error) {
|
|
|
|
m := new(ListResponse)
|
|
|
|
if err := x.ClientStream.RecvMsg(m); err != nil {
|
|
|
|
return nil, err
|
2020-05-11 13:47:59 +03:00
|
|
|
}
|
2020-06-19 12:34:12 +03:00
|
|
|
return m, nil
|
2020-05-11 13:47:59 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (c *storeClient) Databases(ctx context.Context, in *DatabasesRequest, opts ...grpc.CallOption) (*DatabasesResponse, error) {
|
|
|
|
out := new(DatabasesResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/go.micro.store.Store/Databases", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
2020-05-11 13:47:59 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (c *storeClient) Tables(ctx context.Context, in *TablesRequest, opts ...grpc.CallOption) (*TablesResponse, error) {
|
|
|
|
out := new(TablesResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/go.micro.store.Store/Tables", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
2020-05-11 13:47:59 +03:00
|
|
|
}
|
2020-06-19 12:34:12 +03:00
|
|
|
return out, nil
|
2020-05-11 13:47:59 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
// StoreServer is the server API for Store service.
|
|
|
|
type StoreServer interface {
|
|
|
|
Read(context.Context, *ReadRequest) (*ReadResponse, error)
|
|
|
|
Write(context.Context, *WriteRequest) (*WriteResponse, error)
|
|
|
|
Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
|
|
|
|
List(*ListRequest, Store_ListServer) error
|
|
|
|
Databases(context.Context, *DatabasesRequest) (*DatabasesResponse, error)
|
|
|
|
Tables(context.Context, *TablesRequest) (*TablesResponse, error)
|
2020-05-11 13:47:59 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
// UnimplementedStoreServer can be embedded to have forward compatible implementations.
|
|
|
|
type UnimplementedStoreServer struct {
|
2020-05-11 13:47:59 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func (*UnimplementedStoreServer) Read(ctx context.Context, req *ReadRequest) (*ReadResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method Read not implemented")
|
|
|
|
}
|
|
|
|
func (*UnimplementedStoreServer) Write(ctx context.Context, req *WriteRequest) (*WriteResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method Write not implemented")
|
|
|
|
}
|
|
|
|
func (*UnimplementedStoreServer) Delete(ctx context.Context, req *DeleteRequest) (*DeleteResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
|
|
|
|
}
|
|
|
|
func (*UnimplementedStoreServer) List(req *ListRequest, srv Store_ListServer) error {
|
|
|
|
return status.Errorf(codes.Unimplemented, "method List not implemented")
|
|
|
|
}
|
|
|
|
func (*UnimplementedStoreServer) Databases(ctx context.Context, req *DatabasesRequest) (*DatabasesResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method Databases not implemented")
|
|
|
|
}
|
|
|
|
func (*UnimplementedStoreServer) Tables(ctx context.Context, req *TablesRequest) (*TablesResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method Tables not implemented")
|
|
|
|
}
|
2020-05-11 13:47:59 +03:00
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func RegisterStoreServer(s *grpc.Server, srv StoreServer) {
|
|
|
|
s.RegisterService(&_Store_serviceDesc, srv)
|
2020-05-11 13:47:59 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func _Store_Read_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(ReadRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(StoreServer).Read(ctx, in)
|
2020-05-11 13:47:59 +03:00
|
|
|
}
|
2020-06-19 12:34:12 +03:00
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/go.micro.store.Store/Read",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(StoreServer).Read(ctx, req.(*ReadRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
2020-05-11 13:47:59 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func _Store_Write_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(WriteRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(StoreServer).Write(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/go.micro.store.Store/Write",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(StoreServer).Write(ctx, req.(*WriteRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
2020-05-11 13:47:59 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func _Store_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(DeleteRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(StoreServer).Delete(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/go.micro.store.Store/Delete",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(StoreServer).Delete(ctx, req.(*DeleteRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
2020-05-11 13:47:59 +03:00
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func _Store_List_Handler(srv interface{}, stream grpc.ServerStream) error {
|
|
|
|
m := new(ListRequest)
|
|
|
|
if err := stream.RecvMsg(m); err != nil {
|
|
|
|
return err
|
2020-05-11 13:47:59 +03:00
|
|
|
}
|
2020-06-19 12:34:12 +03:00
|
|
|
return srv.(StoreServer).List(m, &storeListServer{stream})
|
2020-05-11 13:47:59 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
type Store_ListServer interface {
|
|
|
|
Send(*ListResponse) error
|
|
|
|
grpc.ServerStream
|
|
|
|
}
|
|
|
|
|
|
|
|
type storeListServer struct {
|
|
|
|
grpc.ServerStream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *storeListServer) Send(m *ListResponse) error {
|
|
|
|
return x.ServerStream.SendMsg(m)
|
2020-05-11 13:47:59 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func _Store_Databases_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(DatabasesRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
2020-05-11 13:47:59 +03:00
|
|
|
}
|
2020-06-19 12:34:12 +03:00
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(StoreServer).Databases(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/go.micro.store.Store/Databases",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(StoreServer).Databases(ctx, req.(*DatabasesRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
2020-05-11 13:47:59 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
func _Store_Tables_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(TablesRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(StoreServer).Tables(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/go.micro.store.Store/Tables",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(StoreServer).Tables(ctx, req.(*TablesRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
2020-06-03 11:45:08 +03:00
|
|
|
|
2020-06-19 12:34:12 +03:00
|
|
|
var _Store_serviceDesc = grpc.ServiceDesc{
|
|
|
|
ServiceName: "go.micro.store.Store",
|
|
|
|
HandlerType: (*StoreServer)(nil),
|
|
|
|
Methods: []grpc.MethodDesc{
|
|
|
|
{
|
|
|
|
MethodName: "Read",
|
|
|
|
Handler: _Store_Read_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "Write",
|
|
|
|
Handler: _Store_Write_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "Delete",
|
|
|
|
Handler: _Store_Delete_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "Databases",
|
|
|
|
Handler: _Store_Databases_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "Tables",
|
|
|
|
Handler: _Store_Tables_Handler,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Streams: []grpc.StreamDesc{
|
|
|
|
{
|
|
|
|
StreamName: "List",
|
|
|
|
Handler: _Store_List_Handler,
|
|
|
|
ServerStreams: true,
|
2020-05-11 13:47:59 +03:00
|
|
|
},
|
2020-06-19 12:34:12 +03:00
|
|
|
},
|
|
|
|
Metadata: "store/service/proto/store.proto",
|
2019-10-11 16:08:50 +03:00
|
|
|
}
|