Package mvccpb
- Variables
- type Event
- func (*Event) Descriptor() ([]byte, []int)
- func (m *Event) Marshal() (dAtA []byte, err error)
- func (m *Event) MarshalTo(dAtA []byte) (int, error)
- func (m *Event) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Event) ProtoMessage()
- func (m *Event) Reset()
- func (m *Event) Size() (n int)
- func (m *Event) String() string
- func (m *Event) Unmarshal(dAtA []byte) error
- func (m *Event) XXX_DiscardUnknown()
- func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Event) XXX_Merge(src proto.Message)
- func (m *Event) XXX_Size() int
- func (m *Event) XXX_Unmarshal(b []byte) error
- type Event_EventType
- func (Event_EventType) EnumDescriptor() ([]byte, []int)
- func (x Event_EventType) String() string
- type KeyValue
- func (*KeyValue) Descriptor() ([]byte, []int)
- func (m *KeyValue) Marshal() (dAtA []byte, err error)
- func (m *KeyValue) MarshalTo(dAtA []byte) (int, error)
- func (m *KeyValue) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*KeyValue) ProtoMessage()
- func (m *KeyValue) Reset()
- func (m *KeyValue) Size() (n int)
- func (m *KeyValue) String() string
- func (m *KeyValue) Unmarshal(dAtA []byte) error
- func (m *KeyValue) XXX_DiscardUnknown()
- func (m *KeyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *KeyValue) XXX_Merge(src proto.Message)
- func (m *KeyValue) XXX_Size() int
- func (m *KeyValue) XXX_Unmarshal(b []byte) error
Package files
kv.pb.go
Variables
var (
ErrInvalidLengthKv = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowKv = fmt.Errorf("proto: integer overflow")
ErrUnexpectedEndOfGroupKv = fmt.Errorf("proto: unexpected end of group")
)
var Event_EventType_name = map[int32]string{
0: "PUT",
1: "DELETE",
}
var Event_EventType_value = map[string]int32{
"PUT": 0,
"DELETE": 1,
}
type Event struct {
Type Event_EventType `protobuf:"varint,1,opt,name=type,proto3,enum=mvccpb.Event_EventType" json:"type,omitempty"`
Kv *KeyValue `protobuf:"bytes,2,opt,name=kv,proto3" json:"kv,omitempty"`
PrevKv *KeyValue `protobuf:"bytes,3,opt,name=prev_kv,json=prevKv,proto3" json:"prev_kv,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Event) Descriptor() ([]byte, []int)
func (m *Event) Marshal() (dAtA []byte, err error)
func (m *Event) MarshalTo(dAtA []byte) (int, error)
func (m *Event) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Event) ProtoMessage()
func (*Event) Reset
¶
func (m *Event) Reset()
func (*Event) Size
¶
func (m *Event) Size() (n int)
func (*Event) String
¶
func (m *Event) String() string
func (m *Event) Unmarshal(dAtA []byte) error
func (m *Event) XXX_DiscardUnknown()
func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *Event) XXX_Merge(src proto.Message)
func (m *Event) XXX_Size() int
func (m *Event) XXX_Unmarshal(b []byte) error
type Event_EventType int32
const (
PUT Event_EventType = 0
DELETE Event_EventType = 1
)
func (Event_EventType) EnumDescriptor() ([]byte, []int)
func (Event_EventType) String
¶
func (x Event_EventType) String() string
type KeyValue struct {
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
CreateRevision int64 `protobuf:"varint,2,opt,name=create_revision,json=createRevision,proto3" json:"create_revision,omitempty"`
ModRevision int64 `protobuf:"varint,3,opt,name=mod_revision,json=modRevision,proto3" json:"mod_revision,omitempty"`
Version int64 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"`
Value []byte `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"`
Lease int64 `protobuf:"varint,6,opt,name=lease,proto3" json:"lease,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*KeyValue) Descriptor() ([]byte, []int)
func (*KeyValue) Marshal
¶
func (m *KeyValue) Marshal() (dAtA []byte, err error)
func (m *KeyValue) MarshalTo(dAtA []byte) (int, error)
func (m *KeyValue) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*KeyValue) ProtoMessage()
func (*KeyValue) Reset
¶
func (m *KeyValue) Reset()
func (*KeyValue) Size
¶
func (m *KeyValue) Size() (n int)
func (*KeyValue) String
¶
func (m *KeyValue) String() string
func (m *KeyValue) Unmarshal(dAtA []byte) error
func (m *KeyValue) XXX_DiscardUnknown()
func (m *KeyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *KeyValue) XXX_Merge(src proto.Message)
func (m *KeyValue) XXX_Size() int
func (m *KeyValue) XXX_Unmarshal(b []byte) error