etcd: go.etcd.io/etcd/mvcc/mvccpb Index | Files

package mvccpb

import "go.etcd.io/etcd/mvcc/mvccpb"

Package mvccpb is a generated protocol buffer package.

It is generated from these files:

kv.proto

It has these top-level messages:

KeyValue
Event

Index

Package Files

kv.pb.go

Variables

var (
    ErrInvalidLengthKv = fmt.Errorf("proto: negative length found during unmarshaling")
    ErrIntOverflowKv   = fmt.Errorf("proto: integer overflow")
)
var Event_EventType_name = map[int32]string{
    0:  "PUT",
    1:  "DELETE",
}
var Event_EventType_value = map[string]int32{
    "PUT":    0,
    "DELETE": 1,
}

type Event Uses

type Event struct {
    // type is the kind of event. If type is a PUT, it indicates
    // new data has been stored to the key. If type is a DELETE,
    // it indicates the key was deleted.
    Type Event_EventType `protobuf:"varint,1,opt,name=type,proto3,enum=mvccpb.Event_EventType" json:"type,omitempty"`
    // kv holds the KeyValue for the event.
    // A PUT event contains current kv pair.
    // A PUT event with kv.Version=1 indicates the creation of a key.
    // A DELETE/EXPIRE event contains the deleted key with
    // its modification revision set to the revision of deletion.
    Kv  *KeyValue `protobuf:"bytes,2,opt,name=kv" json:"kv,omitempty"`
    // prev_kv holds the key-value pair before the event happens.
    PrevKv *KeyValue `protobuf:"bytes,3,opt,name=prev_kv,json=prevKv" json:"prev_kv,omitempty"`
}

func (*Event) Descriptor Uses

func (*Event) Descriptor() ([]byte, []int)

func (*Event) Marshal Uses

func (m *Event) Marshal() (dAtA []byte, err error)

func (*Event) MarshalTo Uses

func (m *Event) MarshalTo(dAtA []byte) (int, error)

func (*Event) ProtoMessage Uses

func (*Event) ProtoMessage()

func (*Event) Reset Uses

func (m *Event) Reset()

func (*Event) Size Uses

func (m *Event) Size() (n int)

func (*Event) String Uses

func (m *Event) String() string

func (*Event) Unmarshal Uses

func (m *Event) Unmarshal(dAtA []byte) error

type Event_EventType Uses

type Event_EventType int32
const (
    PUT    Event_EventType = 0
    DELETE Event_EventType = 1
)

func (Event_EventType) EnumDescriptor Uses

func (Event_EventType) EnumDescriptor() ([]byte, []int)

func (Event_EventType) String Uses

func (x Event_EventType) String() string

type KeyValue Uses

type KeyValue struct {
    // key is the key in bytes. An empty key is not allowed.
    Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
    // create_revision is the revision of last creation on this key.
    CreateRevision int64 `protobuf:"varint,2,opt,name=create_revision,json=createRevision,proto3" json:"create_revision,omitempty"`
    // mod_revision is the revision of last modification on this key.
    ModRevision int64 `protobuf:"varint,3,opt,name=mod_revision,json=modRevision,proto3" json:"mod_revision,omitempty"`
    // version is the version of the key. A deletion resets
    // the version to zero and any modification of the key
    // increases its version.
    Version int64 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"`
    // value is the value held by the key, in bytes.
    Value []byte `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"`
    // lease is the ID of the lease that attached to key.
    // When the attached lease expires, the key will be deleted.
    // If lease is 0, then no lease is attached to the key.
    Lease int64 `protobuf:"varint,6,opt,name=lease,proto3" json:"lease,omitempty"`
}

func (*KeyValue) Descriptor Uses

func (*KeyValue) Descriptor() ([]byte, []int)

func (*KeyValue) Marshal Uses

func (m *KeyValue) Marshal() (dAtA []byte, err error)

func (*KeyValue) MarshalTo Uses

func (m *KeyValue) MarshalTo(dAtA []byte) (int, error)

func (*KeyValue) ProtoMessage Uses

func (*KeyValue) ProtoMessage()

func (*KeyValue) Reset Uses

func (m *KeyValue) Reset()

func (*KeyValue) Size Uses

func (m *KeyValue) Size() (n int)

func (*KeyValue) String Uses

func (m *KeyValue) String() string

func (*KeyValue) Unmarshal Uses

func (m *KeyValue) Unmarshal(dAtA []byte) error

Package mvccpb imports 5 packages (graph) and is imported by 198 packages. Updated 2019-06-12. Refresh now. Tools for package owners.