package storagepb
import "github.com/coreos/etcd/storage/storagepb"
Package storagepb is a generated protocol buffer package.
It is generated from these files:
kv.proto
It has these top-level messages:
KeyValue Event
Index ¶
- Variables
- type Event
- func (m *Event) Marshal() (data []byte, err error)
- func (m *Event) MarshalTo(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
- type Event_EventType
- type KeyValue
Variables ¶
Types ¶
type Event ¶
type Event struct { Type Event_EventType `protobuf:"varint,1,opt,name=type,proto3,enum=storagepb.Event_EventType" json:"type,omitempty"` // a put event contains the current key-value // a delete/expire event contains the previous // key-value Kv *KeyValue `protobuf:"bytes,2,opt,name=kv" json:"kv,omitempty"` }
func (*Event) Marshal ¶
func (*Event) MarshalTo ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) Reset ¶
func (m *Event) Reset()
func (*Event) Size ¶
func (*Event) String ¶
func (*Event) Unmarshal ¶
type Event_EventType ¶
type Event_EventType int32
const ( PUT Event_EventType = 0 DELETE Event_EventType = 1 EXPIRE Event_EventType = 2 )
func (Event_EventType) String ¶
func (x Event_EventType) String() string
type KeyValue ¶
type KeyValue struct { Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` CreateRevision int64 `protobuf:"varint,2,opt,name=create_revision,proto3" json:"create_revision,omitempty"` // mod_revision is the last modified revision of the key. ModRevision int64 `protobuf:"varint,3,opt,name=mod_revision,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 []byte `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"` }
func (*KeyValue) Marshal ¶
func (*KeyValue) MarshalTo ¶
func (*KeyValue) ProtoMessage ¶
func (*KeyValue) ProtoMessage()
func (*KeyValue) Reset ¶
func (m *KeyValue) Reset()
func (*KeyValue) Size ¶
func (*KeyValue) String ¶
func (*KeyValue) Unmarshal ¶
Source Files ¶
- Version
- v2.2.2+incompatible
- Published
- Nov 19, 2015
- Platform
- darwin/amd64
- Imports
- 3 packages
- Last checked
- 14 hours ago –
Tools for package owners.