Documentation ¶
Overview ¶
Package sinkpb is a generated protocol buffer package.
It is generated from these files:
op.proto snapshot.proto
It has these top-level messages:
Op Cond Instruction Snapshot
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cond_Type_name = map[int32]string{
0: "KEY_EXISTS",
1: "NOT_KEY_EXISTS",
2: "VALUE_EQUAL",
3: "NOT_VALUE_EQUAL",
4: "INDEX_EQUAL",
5: "NOT_INDEX_EQUAL",
}
View Source
var Cond_Type_value = map[string]int32{
"KEY_EXISTS": 0,
"NOT_KEY_EXISTS": 1,
"VALUE_EQUAL": 2,
"NOT_VALUE_EQUAL": 3,
"INDEX_EQUAL": 4,
"NOT_INDEX_EQUAL": 5,
}
View Source
var Op_Type_name = map[int32]string{
0: "SET",
1: "DELETE",
}
View Source
var Op_Type_value = map[string]int32{
"SET": 0,
"DELETE": 1,
}
Functions ¶
This section is empty.
Types ¶
type Cond ¶
type Cond struct { Type Cond_Type `protobuf:"varint,1,opt,name=type,enum=sinkpb.Cond_Type" json:"type,omitempty"` Key string `protobuf:"bytes,2,opt,name=key" json:"key,omitempty"` Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` Index uint64 `protobuf:"varint,4,opt,name=index" json:"index,omitempty"` }
func (*Cond) Descriptor ¶
func (*Cond) ProtoMessage ¶
func (*Cond) ProtoMessage()
type Instruction ¶
type Instruction struct { Conditions []*Cond `protobuf:"bytes,1,rep,name=conditions" json:"conditions,omitempty"` Operations []*Op `protobuf:"bytes,2,rep,name=operations" json:"operations,omitempty"` }
func (*Instruction) Descriptor ¶
func (*Instruction) Descriptor() ([]byte, []int)
func (*Instruction) GetConditions ¶
func (m *Instruction) GetConditions() []*Cond
func (*Instruction) GetOperations ¶
func (m *Instruction) GetOperations() []*Op
func (*Instruction) ProtoMessage ¶
func (*Instruction) ProtoMessage()
func (*Instruction) Reset ¶
func (m *Instruction) Reset()
func (*Instruction) String ¶
func (m *Instruction) String() string
type Op ¶
type Op struct { Type Op_Type `protobuf:"varint,1,opt,name=type,enum=sinkpb.Op_Type" json:"type,omitempty"` Key string `protobuf:"bytes,2,opt,name=key" json:"key,omitempty"` Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` }
func (*Op) Descriptor ¶
func (*Op) ProtoMessage ¶
func (*Op) ProtoMessage()
type Snapshot ¶
type Snapshot struct { Version map[string]uint64 `` /* 135-byte string literal not displayed */ State map[string][]byte `` /* 137-byte string literal not displayed */ Peers map[uint64]string `` /* 131-byte string literal not displayed */ }
func (*Snapshot) Descriptor ¶
func (*Snapshot) GetVersion ¶
func (*Snapshot) ProtoMessage ¶
func (*Snapshot) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.