359b8bc503
* Add opts to service proto * Support database/table opts
884 lines
30 KiB
Go
884 lines
30 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: github.com/micro/go-micro/store/service/proto/store.proto
|
|
|
|
package go_micro_store
|
|
|
|
import (
|
|
fmt "fmt"
|
|
proto "github.com/golang/protobuf/proto"
|
|
math "math"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// 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
|
|
|
|
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"`
|
|
// time.Duration (signed int64 nanoseconds)
|
|
Expiry int64 `protobuf:"varint,3,opt,name=expiry,proto3" json:"expiry,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
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_42854049893ccb13, []int{0}
|
|
}
|
|
|
|
func (m *Record) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Record.Unmarshal(m, b)
|
|
}
|
|
func (m *Record) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Record.Marshal(b, m, deterministic)
|
|
}
|
|
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)
|
|
}
|
|
|
|
var xxx_messageInfo_Record proto.InternalMessageInfo
|
|
|
|
func (m *Record) GetKey() string {
|
|
if m != nil {
|
|
return m.Key
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Record) GetValue() []byte {
|
|
if m != nil {
|
|
return m.Value
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Record) GetExpiry() int64 {
|
|
if m != nil {
|
|
return m.Expiry
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ReadOptions 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 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_42854049893ccb13, []int{1}
|
|
}
|
|
|
|
func (m *ReadOptions) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ReadOptions.Unmarshal(m, b)
|
|
}
|
|
func (m *ReadOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ReadOptions.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ReadOptions) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ReadOptions.Merge(m, src)
|
|
}
|
|
func (m *ReadOptions) XXX_Size() int {
|
|
return xxx_messageInfo_ReadOptions.Size(m)
|
|
}
|
|
func (m *ReadOptions) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ReadOptions.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ReadOptions proto.InternalMessageInfo
|
|
|
|
func (m *ReadOptions) GetDatabase() string {
|
|
if m != nil {
|
|
return m.Database
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ReadOptions) GetTable() string {
|
|
if m != nil {
|
|
return m.Table
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ReadOptions) GetPrefix() bool {
|
|
if m != nil {
|
|
return m.Prefix
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *ReadOptions) GetSuffix() bool {
|
|
if m != nil {
|
|
return m.Suffix
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *ReadOptions) GetLimit() uint64 {
|
|
if m != nil {
|
|
return m.Limit
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ReadOptions) GetOffset() uint64 {
|
|
if m != nil {
|
|
return m.Offset
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ReadRequest struct {
|
|
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:"-"`
|
|
}
|
|
|
|
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_42854049893ccb13, []int{2}
|
|
}
|
|
|
|
func (m *ReadRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ReadRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *ReadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ReadRequest.Marshal(b, m, deterministic)
|
|
}
|
|
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)
|
|
}
|
|
|
|
var xxx_messageInfo_ReadRequest proto.InternalMessageInfo
|
|
|
|
func (m *ReadRequest) GetKey() string {
|
|
if m != nil {
|
|
return m.Key
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ReadRequest) GetOptions() *ReadOptions {
|
|
if m != nil {
|
|
return m.Options
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ReadResponse struct {
|
|
Records []*Record `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
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_42854049893ccb13, []int{3}
|
|
}
|
|
|
|
func (m *ReadResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ReadResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *ReadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ReadResponse.Marshal(b, m, deterministic)
|
|
}
|
|
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)
|
|
}
|
|
func (m *ReadResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ReadResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ReadResponse proto.InternalMessageInfo
|
|
|
|
func (m *ReadResponse) GetRecords() []*Record {
|
|
if m != nil {
|
|
return m.Records
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type WriteOptions 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"`
|
|
// time.Time
|
|
Expiry int64 `protobuf:"varint,3,opt,name=expiry,proto3" json:"expiry,omitempty"`
|
|
// time.Duration
|
|
Ttl int64 `protobuf:"varint,4,opt,name=ttl,proto3" json:"ttl,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
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_42854049893ccb13, []int{4}
|
|
}
|
|
|
|
func (m *WriteOptions) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_WriteOptions.Unmarshal(m, b)
|
|
}
|
|
func (m *WriteOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_WriteOptions.Marshal(b, m, deterministic)
|
|
}
|
|
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)
|
|
}
|
|
func (m *WriteOptions) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_WriteOptions.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_WriteOptions proto.InternalMessageInfo
|
|
|
|
func (m *WriteOptions) GetDatabase() string {
|
|
if m != nil {
|
|
return m.Database
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *WriteOptions) GetTable() string {
|
|
if m != nil {
|
|
return m.Table
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *WriteOptions) GetExpiry() int64 {
|
|
if m != nil {
|
|
return m.Expiry
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *WriteOptions) GetTtl() int64 {
|
|
if m != nil {
|
|
return m.Ttl
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type WriteRequest struct {
|
|
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:"-"`
|
|
}
|
|
|
|
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_42854049893ccb13, []int{5}
|
|
}
|
|
|
|
func (m *WriteRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_WriteRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *WriteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_WriteRequest.Marshal(b, m, deterministic)
|
|
}
|
|
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)
|
|
}
|
|
|
|
var xxx_messageInfo_WriteRequest proto.InternalMessageInfo
|
|
|
|
func (m *WriteRequest) GetRecord() *Record {
|
|
if m != nil {
|
|
return m.Record
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *WriteRequest) GetOptions() *WriteOptions {
|
|
if m != nil {
|
|
return m.Options
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type WriteResponse struct {
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
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_42854049893ccb13, []int{6}
|
|
}
|
|
|
|
func (m *WriteResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_WriteResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *WriteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_WriteResponse.Marshal(b, m, deterministic)
|
|
}
|
|
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)
|
|
}
|
|
|
|
var xxx_messageInfo_WriteResponse proto.InternalMessageInfo
|
|
|
|
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:"-"`
|
|
}
|
|
|
|
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_42854049893ccb13, []int{7}
|
|
}
|
|
|
|
func (m *DeleteOptions) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_DeleteOptions.Unmarshal(m, b)
|
|
}
|
|
func (m *DeleteOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_DeleteOptions.Marshal(b, m, deterministic)
|
|
}
|
|
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)
|
|
}
|
|
|
|
var xxx_messageInfo_DeleteOptions proto.InternalMessageInfo
|
|
|
|
func (m *DeleteOptions) GetDatabase() string {
|
|
if m != nil {
|
|
return m.Database
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *DeleteOptions) GetTable() string {
|
|
if m != nil {
|
|
return m.Table
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DeleteRequest struct {
|
|
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:"-"`
|
|
}
|
|
|
|
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_42854049893ccb13, []int{8}
|
|
}
|
|
|
|
func (m *DeleteRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_DeleteRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_DeleteRequest.Marshal(b, m, deterministic)
|
|
}
|
|
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)
|
|
}
|
|
func (m *DeleteRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_DeleteRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_DeleteRequest proto.InternalMessageInfo
|
|
|
|
func (m *DeleteRequest) GetKey() string {
|
|
if m != nil {
|
|
return m.Key
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *DeleteRequest) GetOptions() *DeleteOptions {
|
|
if m != nil {
|
|
return m.Options
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DeleteResponse struct {
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
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_42854049893ccb13, []int{9}
|
|
}
|
|
|
|
func (m *DeleteResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_DeleteResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_DeleteResponse.Marshal(b, m, deterministic)
|
|
}
|
|
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)
|
|
}
|
|
|
|
var xxx_messageInfo_DeleteResponse proto.InternalMessageInfo
|
|
|
|
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_42854049893ccb13, []int{10}
|
|
}
|
|
|
|
func (m *ListOptions) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ListOptions.Unmarshal(m, b)
|
|
}
|
|
func (m *ListOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ListOptions.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ListOptions) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ListOptions.Merge(m, src)
|
|
}
|
|
func (m *ListOptions) XXX_Size() int {
|
|
return xxx_messageInfo_ListOptions.Size(m)
|
|
}
|
|
func (m *ListOptions) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ListOptions.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ListOptions proto.InternalMessageInfo
|
|
|
|
func (m *ListOptions) GetDatabase() string {
|
|
if m != nil {
|
|
return m.Database
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ListOptions) GetTable() string {
|
|
if m != nil {
|
|
return m.Table
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ListOptions) GetPrefix() string {
|
|
if m != nil {
|
|
return m.Prefix
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ListOptions) GetSuffix() string {
|
|
if m != nil {
|
|
return m.Suffix
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ListOptions) GetLimit() uint64 {
|
|
if m != nil {
|
|
return m.Limit
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ListOptions) GetOffset() uint64 {
|
|
if m != nil {
|
|
return m.Offset
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ListRequest struct {
|
|
Options *ListOptions `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
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_42854049893ccb13, []int{11}
|
|
}
|
|
|
|
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)
|
|
}
|
|
|
|
var xxx_messageInfo_ListRequest proto.InternalMessageInfo
|
|
|
|
func (m *ListRequest) GetOptions() *ListOptions {
|
|
if m != nil {
|
|
return m.Options
|
|
}
|
|
return nil
|
|
}
|
|
|
|
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_42854049893ccb13, []int{12}
|
|
}
|
|
|
|
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)
|
|
}
|
|
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
|
|
|
|
func (m *ListResponse) GetKeys() []string {
|
|
if m != nil {
|
|
return m.Keys
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DatabasesRequest struct {
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
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_42854049893ccb13, []int{13}
|
|
}
|
|
|
|
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)
|
|
}
|
|
|
|
var xxx_messageInfo_DatabasesRequest proto.InternalMessageInfo
|
|
|
|
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:"-"`
|
|
}
|
|
|
|
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_42854049893ccb13, []int{14}
|
|
}
|
|
|
|
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
|
|
}
|
|
return nil
|
|
}
|
|
|
|
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:"-"`
|
|
}
|
|
|
|
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_42854049893ccb13, []int{15}
|
|
}
|
|
|
|
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)
|
|
}
|
|
|
|
var xxx_messageInfo_TablesRequest proto.InternalMessageInfo
|
|
|
|
func (m *TablesRequest) GetDatabase() string {
|
|
if m != nil {
|
|
return m.Database
|
|
}
|
|
return ""
|
|
}
|
|
|
|
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:"-"`
|
|
}
|
|
|
|
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_42854049893ccb13, []int{16}
|
|
}
|
|
|
|
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)
|
|
}
|
|
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
|
|
|
|
func (m *TablesResponse) GetTables() []string {
|
|
if m != nil {
|
|
return m.Tables
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*Record)(nil), "go.micro.store.Record")
|
|
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("github.com/micro/go-micro/store/service/proto/store.proto", fileDescriptor_42854049893ccb13)
|
|
}
|
|
|
|
var fileDescriptor_42854049893ccb13 = []byte{
|
|
// 598 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0xdd, 0x8e, 0xd2, 0x40,
|
|
0x14, 0xa6, 0xdb, 0xd2, 0xa5, 0x87, 0x1f, 0x71, 0x62, 0x48, 0x83, 0xac, 0xa9, 0x73, 0xd5, 0xc4,
|
|
0x58, 0x56, 0x8c, 0x1a, 0xef, 0x34, 0xa2, 0x51, 0x63, 0x62, 0x32, 0x1a, 0x4d, 0xbc, 0x2b, 0x30,
|
|
0x60, 0x5d, 0xd8, 0x62, 0x67, 0x20, 0xcb, 0xc3, 0xf8, 0x38, 0xbe, 0x97, 0x99, 0x3f, 0x28, 0xd0,
|
|
0xee, 0x85, 0xbb, 0x77, 0x73, 0xce, 0x1c, 0xbe, 0x39, 0xdf, 0x4f, 0x03, 0xbc, 0x9c, 0x25, 0xfc,
|
|
0xe7, 0x6a, 0x14, 0x8d, 0xd3, 0x45, 0x7f, 0x91, 0x8c, 0xb3, 0xb4, 0x3f, 0x4b, 0x1f, 0xab, 0x03,
|
|
0xe3, 0x69, 0x46, 0xfb, 0x8c, 0x66, 0xeb, 0x64, 0x4c, 0xfb, 0xcb, 0x2c, 0xe5, 0xba, 0x17, 0xc9,
|
|
0x33, 0x6a, 0xcd, 0xd2, 0x48, 0x4e, 0x46, 0xb2, 0x8b, 0xdf, 0x83, 0x4b, 0xe8, 0x38, 0xcd, 0x26,
|
|
0xa8, 0x0d, 0xf6, 0x05, 0xdd, 0xf8, 0x56, 0x60, 0x85, 0x1e, 0x11, 0x47, 0x74, 0x0f, 0xaa, 0xeb,
|
|
0x78, 0xbe, 0xa2, 0xfe, 0x49, 0x60, 0x85, 0x0d, 0xa2, 0x0a, 0xd4, 0x01, 0x97, 0x5e,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