Documentation ¶
Index ¶
- Variables
- func EqualValues(a, b *Value) bool
- func IsBroadcast(msg *Message) bool
- type Accept
- func (*Accept) Descriptor() ([]byte, []int)
- func (m *Accept) GetBallot() uint64
- func (m *Accept) GetSequence() uint64
- func (m *Accept) GetValue() *Value
- func (m *Accept) Marshal() (dAtA []byte, err error)
- func (m *Accept) MarshalTo(dAtA []byte) (int, error)
- func (m *Accept) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Accept) ProtoMessage()
- func (m *Accept) Reset()
- func (m *Accept) Size() (n int)
- func (m *Accept) String() string
- func (m *Accept) Unmarshal(dAtA []byte) error
- func (m *Accept) XXX_DiscardUnknown()
- func (m *Accept) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Accept) XXX_Merge(src proto.Message)
- func (m *Accept) XXX_Size() int
- func (m *Accept) XXX_Unmarshal(b []byte) error
- type Accepted
- func (*Accepted) Descriptor() ([]byte, []int)
- func (m *Accepted) GetBallot() uint64
- func (m *Accepted) GetSequence() uint64
- func (m *Accepted) GetValue() *Value
- func (m *Accepted) Marshal() (dAtA []byte, err error)
- func (m *Accepted) MarshalTo(dAtA []byte) (int, error)
- func (m *Accepted) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Accepted) ProtoMessage()
- func (m *Accepted) Reset()
- func (m *Accepted) Size() (n int)
- func (m *Accepted) String() string
- func (m *Accepted) Unmarshal(dAtA []byte) error
- func (m *Accepted) XXX_DiscardUnknown()
- func (m *Accepted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Accepted) XXX_Merge(src proto.Message)
- func (m *Accepted) XXX_Size() int
- func (m *Accepted) XXX_Unmarshal(b []byte) error
- type Alert
- func (*Alert) Descriptor() ([]byte, []int)
- func (m *Alert) GetChange() *Change
- func (m *Alert) GetObserver() uint64
- func (m *Alert) GetSubject() uint64
- func (m *Alert) Marshal() (dAtA []byte, err error)
- func (m *Alert) MarshalTo(dAtA []byte) (int, error)
- func (m *Alert) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Alert) ProtoMessage()
- func (m *Alert) Reset()
- func (m *Alert) Size() (n int)
- func (m *Alert) String() string
- func (m *Alert) Unmarshal(dAtA []byte) error
- func (m *Alert) XXX_DiscardUnknown()
- func (m *Alert) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Alert) XXX_Merge(src proto.Message)
- func (m *Alert) XXX_Size() int
- func (m *Alert) XXX_Unmarshal(b []byte) error
- type Change
- func (*Change) Descriptor() ([]byte, []int)
- func (m *Change) GetNode() *Node
- func (m *Change) GetType() Change_ChangeType
- func (m *Change) Marshal() (dAtA []byte, err error)
- func (m *Change) MarshalTo(dAtA []byte) (int, error)
- func (m *Change) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Change) ProtoMessage()
- func (m *Change) Reset()
- func (m *Change) Size() (n int)
- func (m *Change) String() string
- func (m *Change) Unmarshal(dAtA []byte) error
- func (m *Change) XXX_DiscardUnknown()
- func (m *Change) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Change) XXX_Merge(src proto.Message)
- func (m *Change) XXX_Size() int
- func (m *Change) XXX_Unmarshal(b []byte) error
- type Change_ChangeType
- type Configuration
- func (*Configuration) Descriptor() ([]byte, []int)
- func (m *Configuration) GetID() uint64
- func (m *Configuration) GetNodes() []*Node
- func (m *Configuration) Marshal() (dAtA []byte, err error)
- func (m *Configuration) MarshalTo(dAtA []byte) (int, error)
- func (m *Configuration) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Configuration) ProtoMessage()
- func (m *Configuration) Reset()
- func (m *Configuration) Size() (n int)
- func (m *Configuration) String() string
- func (m *Configuration) Unmarshal(dAtA []byte) error
- func (m *Configuration) XXX_DiscardUnknown()
- func (m *Configuration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Configuration) XXX_Merge(src proto.Message)
- func (m *Configuration) XXX_Size() int
- func (m *Configuration) XXX_Unmarshal(b []byte) error
- type LastConfiguration
- type LearnedValue
- func (*LearnedValue) Descriptor() ([]byte, []int)
- func (m *LearnedValue) GetBallot() uint64
- func (m *LearnedValue) GetSequence() uint64
- func (m *LearnedValue) GetValue() *Value
- func (m *LearnedValue) Marshal() (dAtA []byte, err error)
- func (m *LearnedValue) MarshalTo(dAtA []byte) (int, error)
- func (m *LearnedValue) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LearnedValue) ProtoMessage()
- func (m *LearnedValue) Reset()
- func (m *LearnedValue) Size() (n int)
- func (m *LearnedValue) String() string
- func (m *LearnedValue) Unmarshal(dAtA []byte) error
- func (m *LearnedValue) XXX_DiscardUnknown()
- func (m *LearnedValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LearnedValue) XXX_Merge(src proto.Message)
- func (m *LearnedValue) XXX_Size() int
- func (m *LearnedValue) XXX_Unmarshal(b []byte) error
- type Message
- func NewAcceptMessage(ballot, seq uint64, value *Value) *Message
- func NewAcceptedMessage(ballot, seq uint64, value *Value) *Message
- func NewAlert(observer, subject uint64, change *Change) *Message
- func NewPrepareMessage(ballot, seq uint64) *Message
- func NewPromiseMessage(ballot, seq, voteBallot uint64, value *Value) *Message
- func WithInstance(instance uint64, msg *Message) *Message
- func WithRouting(from uint64, to []uint64, msg *Message) *Message
- func (*Message) Descriptor() ([]byte, []int)
- func (m *Message) GetAccept() *Accept
- func (m *Message) GetAccepted() *Accepted
- func (m *Message) GetAlert() *Alert
- func (m *Message) GetFrom() uint64
- func (m *Message) GetInstanceID() uint64
- func (m *Message) GetPrepare() *Prepare
- func (m *Message) GetPromise() *Promise
- func (m *Message) GetSeqNum() uint64
- func (m *Message) GetTo() []uint64
- func (m *Message) GetType() isMessage_Type
- func (m *Message) Marshal() (dAtA []byte, err error)
- func (m *Message) MarshalTo(dAtA []byte) (int, error)
- func (m *Message) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Message) ProtoMessage()
- func (m *Message) Reset()
- func (m *Message) Size() (n int)
- func (m *Message) String() string
- func (m *Message) Unmarshal(dAtA []byte) error
- func (m *Message) XXX_DiscardUnknown()
- func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Message) XXX_Merge(src proto.Message)
- func (*Message) XXX_OneofWrappers() []interface{}
- func (m *Message) XXX_Size() int
- func (m *Message) XXX_Unmarshal(b []byte) error
- type Message_Accept
- type Message_Accepted
- type Message_Alert
- type Message_Prepare
- type Message_Promise
- type Node
- func (*Node) Descriptor() ([]byte, []int)
- func (m *Node) GetConfig() map[string]string
- func (m *Node) GetID() uint64
- func (m *Node) GetIP() string
- func (m *Node) GetPort() uint64
- func (m *Node) Marshal() (dAtA []byte, err error)
- func (m *Node) MarshalTo(dAtA []byte) (int, error)
- func (m *Node) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Node) ProtoMessage()
- func (m *Node) Reset()
- func (m *Node) Size() (n int)
- func (m *Node) String() string
- func (m *Node) Unmarshal(dAtA []byte) error
- func (m *Node) XXX_DiscardUnknown()
- func (m *Node) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Node) XXX_Merge(src proto.Message)
- func (m *Node) XXX_Size() int
- func (m *Node) XXX_Unmarshal(b []byte) error
- type Prepare
- func (*Prepare) Descriptor() ([]byte, []int)
- func (m *Prepare) GetBallot() uint64
- func (m *Prepare) GetSequence() uint64
- func (m *Prepare) Marshal() (dAtA []byte, err error)
- func (m *Prepare) MarshalTo(dAtA []byte) (int, error)
- func (m *Prepare) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Prepare) ProtoMessage()
- func (m *Prepare) Reset()
- func (m *Prepare) Size() (n int)
- func (m *Prepare) String() string
- func (m *Prepare) Unmarshal(dAtA []byte) error
- func (m *Prepare) XXX_DiscardUnknown()
- func (m *Prepare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Prepare) XXX_Merge(src proto.Message)
- func (m *Prepare) XXX_Size() int
- func (m *Prepare) XXX_Unmarshal(b []byte) error
- type Promise
- func (*Promise) Descriptor() ([]byte, []int)
- func (m *Promise) GetBallot() uint64
- func (m *Promise) GetCommitedSequence() uint64
- func (m *Promise) GetSequence() uint64
- func (m *Promise) GetValue() *Value
- func (m *Promise) GetVoteBallot() uint64
- func (m *Promise) Marshal() (dAtA []byte, err error)
- func (m *Promise) MarshalTo(dAtA []byte) (int, error)
- func (m *Promise) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Promise) ProtoMessage()
- func (m *Promise) Reset()
- func (m *Promise) Size() (n int)
- func (m *Promise) String() string
- func (m *Promise) Unmarshal(dAtA []byte) error
- func (m *Promise) XXX_DiscardUnknown()
- func (m *Promise) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Promise) XXX_Merge(src proto.Message)
- func (m *Promise) XXX_Size() int
- func (m *Promise) XXX_Unmarshal(b []byte) error
- type Value
- func (*Value) Descriptor() ([]byte, []int)
- func (m *Value) GetChanges() []*Change
- func (m *Value) Marshal() (dAtA []byte, err error)
- func (m *Value) MarshalTo(dAtA []byte) (int, error)
- func (m *Value) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Value) ProtoMessage()
- func (m *Value) Reset()
- func (m *Value) Size() (n int)
- func (m *Value) String() string
- func (m *Value) Unmarshal(dAtA []byte) error
- func (m *Value) XXX_DiscardUnknown()
- func (m *Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Value) XXX_Merge(src proto.Message)
- func (m *Value) XXX_Size() int
- func (m *Value) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") )
View Source
var Change_ChangeType_name = map[int32]string{
0: "NONE",
1: "JOIN",
2: "REMOVE",
}
View Source
var Change_ChangeType_value = map[string]int32{
"NONE": 0,
"JOIN": 1,
"REMOVE": 2,
}
Functions ¶
func EqualValues ¶
func IsBroadcast ¶
Types ¶
type Accept ¶
type Accept struct { Ballot uint64 `protobuf:"varint,1,opt,name=ballot,proto3" json:"ballot,omitempty"` Sequence uint64 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"` Value *Value `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` }
func (*Accept) Descriptor ¶
func (*Accept) GetSequence ¶
func (*Accept) MarshalToSizedBuffer ¶
func (*Accept) ProtoMessage ¶
func (*Accept) ProtoMessage()
func (*Accept) XXX_DiscardUnknown ¶
func (m *Accept) XXX_DiscardUnknown()
func (*Accept) XXX_Marshal ¶
func (*Accept) XXX_Unmarshal ¶
type Accepted ¶
type Accepted struct { Ballot uint64 `protobuf:"varint,1,opt,name=ballot,proto3" json:"ballot,omitempty"` Sequence uint64 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"` Value *Value `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` }
func (*Accepted) Descriptor ¶
func (*Accepted) GetSequence ¶
func (*Accepted) MarshalToSizedBuffer ¶
func (*Accepted) ProtoMessage ¶
func (*Accepted) ProtoMessage()
func (*Accepted) XXX_DiscardUnknown ¶
func (m *Accepted) XXX_DiscardUnknown()
func (*Accepted) XXX_Marshal ¶
func (*Accepted) XXX_Unmarshal ¶
type Alert ¶
type Alert struct { Observer uint64 `protobuf:"varint,1,opt,name=observer,proto3" json:"observer,omitempty"` Subject uint64 `protobuf:"varint,2,opt,name=subject,proto3" json:"subject,omitempty"` Change *Change `protobuf:"bytes,3,opt,name=change,proto3" json:"change,omitempty"` }
func (*Alert) Descriptor ¶
func (*Alert) GetObserver ¶
func (*Alert) GetSubject ¶
func (*Alert) ProtoMessage ¶
func (*Alert) ProtoMessage()
func (*Alert) XXX_DiscardUnknown ¶
func (m *Alert) XXX_DiscardUnknown()
func (*Alert) XXX_Marshal ¶
func (*Alert) XXX_Unmarshal ¶
type Change ¶
type Change struct { Type Change_ChangeType `protobuf:"varint,1,opt,name=type,proto3,enum=types.Change_ChangeType" json:"type,omitempty"` Node *Node `protobuf:"bytes,2,opt,name=node,proto3" json:"node,omitempty"` }
func (*Change) Descriptor ¶
func (*Change) GetType ¶
func (m *Change) GetType() Change_ChangeType
func (*Change) MarshalToSizedBuffer ¶
func (*Change) ProtoMessage ¶
func (*Change) ProtoMessage()
func (*Change) XXX_DiscardUnknown ¶
func (m *Change) XXX_DiscardUnknown()
func (*Change) XXX_Marshal ¶
func (*Change) XXX_Unmarshal ¶
type Change_ChangeType ¶
type Change_ChangeType int32
const ( Change_NONE Change_ChangeType = 0 Change_JOIN Change_ChangeType = 1 Change_REMOVE Change_ChangeType = 2 )
func (Change_ChangeType) EnumDescriptor ¶
func (Change_ChangeType) EnumDescriptor() ([]byte, []int)
func (Change_ChangeType) String ¶
func (x Change_ChangeType) String() string
type Configuration ¶
type Configuration struct { ID uint64 `protobuf:"varint,1,opt,name=ID,json=iD,proto3" json:"ID,omitempty"` Nodes []*Node `protobuf:"bytes,2,rep,name=nodes,proto3" json:"nodes,omitempty"` }
func (*Configuration) Descriptor ¶
func (*Configuration) Descriptor() ([]byte, []int)
func (*Configuration) GetID ¶
func (m *Configuration) GetID() uint64
func (*Configuration) GetNodes ¶
func (m *Configuration) GetNodes() []*Node
func (*Configuration) Marshal ¶
func (m *Configuration) Marshal() (dAtA []byte, err error)
func (*Configuration) MarshalToSizedBuffer ¶
func (m *Configuration) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Configuration) ProtoMessage ¶
func (*Configuration) ProtoMessage()
func (*Configuration) Reset ¶
func (m *Configuration) Reset()
func (*Configuration) Size ¶
func (m *Configuration) Size() (n int)
func (*Configuration) String ¶
func (m *Configuration) String() string
func (*Configuration) Unmarshal ¶
func (m *Configuration) Unmarshal(dAtA []byte) error
func (*Configuration) XXX_DiscardUnknown ¶
func (m *Configuration) XXX_DiscardUnknown()
func (*Configuration) XXX_Marshal ¶
func (m *Configuration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Configuration) XXX_Merge ¶
func (m *Configuration) XXX_Merge(src proto.Message)
func (*Configuration) XXX_Size ¶
func (m *Configuration) XXX_Size() int
func (*Configuration) XXX_Unmarshal ¶
func (m *Configuration) XXX_Unmarshal(b []byte) error
type LastConfiguration ¶
type LastConfiguration struct {
// contains filtered or unexported fields
}
LastConfiguration is a utility to broadcast updates. When channel notification is received
func Last ¶
func Last(conf *Configuration) *LastConfiguration
func (*LastConfiguration) Configuration ¶
func (c *LastConfiguration) Configuration() *Configuration
func (*LastConfiguration) Last ¶
func (c *LastConfiguration) Last() (*Configuration, <-chan struct{})
func (*LastConfiguration) Update ¶
func (c *LastConfiguration) Update(conf *Configuration)
type LearnedValue ¶
type LearnedValue struct { Ballot uint64 `protobuf:"varint,1,opt,name=ballot,proto3" json:"ballot,omitempty"` Sequence uint64 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"` Value *Value `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` }
func (*LearnedValue) Descriptor ¶
func (*LearnedValue) Descriptor() ([]byte, []int)
func (*LearnedValue) GetBallot ¶
func (m *LearnedValue) GetBallot() uint64
func (*LearnedValue) GetSequence ¶
func (m *LearnedValue) GetSequence() uint64
func (*LearnedValue) GetValue ¶
func (m *LearnedValue) GetValue() *Value
func (*LearnedValue) Marshal ¶
func (m *LearnedValue) Marshal() (dAtA []byte, err error)
func (*LearnedValue) MarshalToSizedBuffer ¶
func (m *LearnedValue) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LearnedValue) ProtoMessage ¶
func (*LearnedValue) ProtoMessage()
func (*LearnedValue) Reset ¶
func (m *LearnedValue) Reset()
func (*LearnedValue) Size ¶
func (m *LearnedValue) Size() (n int)
func (*LearnedValue) String ¶
func (m *LearnedValue) String() string
func (*LearnedValue) Unmarshal ¶
func (m *LearnedValue) Unmarshal(dAtA []byte) error
func (*LearnedValue) XXX_DiscardUnknown ¶
func (m *LearnedValue) XXX_DiscardUnknown()
func (*LearnedValue) XXX_Marshal ¶
func (m *LearnedValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LearnedValue) XXX_Merge ¶
func (m *LearnedValue) XXX_Merge(src proto.Message)
func (*LearnedValue) XXX_Size ¶
func (m *LearnedValue) XXX_Size() int
func (*LearnedValue) XXX_Unmarshal ¶
func (m *LearnedValue) XXX_Unmarshal(b []byte) error
type Message ¶
type Message struct { SeqNum uint64 `protobuf:"varint,1,opt,name=seqNum,proto3" json:"seqNum,omitempty"` From uint64 `protobuf:"varint,2,opt,name=from,proto3" json:"from,omitempty"` To []uint64 `protobuf:"varint,3,rep,packed,name=to,proto3" json:"to,omitempty"` InstanceID uint64 `protobuf:"varint,4,opt,name=instanceID,proto3" json:"instanceID,omitempty"` // Types that are valid to be assigned to Type: // *Message_Prepare // *Message_Promise // *Message_Accept // *Message_Accepted // *Message_Alert Type isMessage_Type `protobuf_oneof:"type"` }
func NewAcceptMessage ¶
func NewAcceptedMessage ¶
func NewPrepareMessage ¶
func NewPromiseMessage ¶
func WithInstance ¶
func WithRouting ¶
WithRouting mutates original msg objects, by adding passed from, to fields to the object.
func (*Message) Descriptor ¶
func (*Message) GetAccepted ¶
func (*Message) GetInstanceID ¶
func (*Message) GetPrepare ¶
func (*Message) GetPromise ¶
func (*Message) MarshalToSizedBuffer ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) XXX_DiscardUnknown ¶
func (m *Message) XXX_DiscardUnknown()
func (*Message) XXX_Marshal ¶
func (*Message) XXX_OneofWrappers ¶
func (*Message) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*Message) XXX_Unmarshal ¶
type Message_Accept ¶
type Message_Accept struct {
Accept *Accept `protobuf:"bytes,7,opt,name=accept,proto3,oneof" json:"accept,omitempty"`
}
func (*Message_Accept) MarshalToSizedBuffer ¶
func (m *Message_Accept) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Message_Accept) Size ¶
func (m *Message_Accept) Size() (n int)
type Message_Accepted ¶
type Message_Accepted struct {
Accepted *Accepted `protobuf:"bytes,8,opt,name=accepted,proto3,oneof" json:"accepted,omitempty"`
}
func (*Message_Accepted) MarshalToSizedBuffer ¶
func (m *Message_Accepted) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Message_Accepted) Size ¶
func (m *Message_Accepted) Size() (n int)
type Message_Alert ¶
type Message_Alert struct {
Alert *Alert `protobuf:"bytes,9,opt,name=alert,proto3,oneof" json:"alert,omitempty"`
}
func (*Message_Alert) MarshalToSizedBuffer ¶
func (m *Message_Alert) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Message_Alert) Size ¶
func (m *Message_Alert) Size() (n int)
type Message_Prepare ¶
type Message_Prepare struct {
Prepare *Prepare `protobuf:"bytes,5,opt,name=prepare,proto3,oneof" json:"prepare,omitempty"`
}
func (*Message_Prepare) MarshalToSizedBuffer ¶
func (m *Message_Prepare) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Message_Prepare) Size ¶
func (m *Message_Prepare) Size() (n int)
type Message_Promise ¶
type Message_Promise struct {
Promise *Promise `protobuf:"bytes,6,opt,name=promise,proto3,oneof" json:"promise,omitempty"`
}
func (*Message_Promise) MarshalToSizedBuffer ¶
func (m *Message_Promise) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Message_Promise) Size ¶
func (m *Message_Promise) Size() (n int)
type Node ¶
type Node struct { ID uint64 `protobuf:"varint,1,opt,name=ID,json=iD,proto3" json:"ID,omitempty"` IP string `protobuf:"bytes,2,opt,name=IP,json=iP,proto3" json:"IP,omitempty"` Port uint64 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"` Config map[string]string `` /* 153-byte string literal not displayed */ }
func (*Node) Descriptor ¶
func (*Node) ProtoMessage ¶
func (*Node) ProtoMessage()
func (*Node) XXX_DiscardUnknown ¶
func (m *Node) XXX_DiscardUnknown()
func (*Node) XXX_Unmarshal ¶
type Prepare ¶
type Prepare struct { Ballot uint64 `protobuf:"varint,1,opt,name=ballot,proto3" json:"ballot,omitempty"` Sequence uint64 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"` }
func (*Prepare) Descriptor ¶
func (*Prepare) GetSequence ¶
func (*Prepare) MarshalToSizedBuffer ¶
func (*Prepare) ProtoMessage ¶
func (*Prepare) ProtoMessage()
func (*Prepare) XXX_DiscardUnknown ¶
func (m *Prepare) XXX_DiscardUnknown()
func (*Prepare) XXX_Marshal ¶
func (*Prepare) XXX_Unmarshal ¶
type Promise ¶
type Promise struct { Ballot uint64 `protobuf:"varint,1,opt,name=ballot,proto3" json:"ballot,omitempty"` Sequence uint64 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"` VoteBallot uint64 `protobuf:"varint,3,opt,name=voteBallot,proto3" json:"voteBallot,omitempty"` Value *Value `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` CommitedSequence uint64 `protobuf:"varint,5,opt,name=commitedSequence,proto3" json:"commitedSequence,omitempty"` }
func (*Promise) Descriptor ¶
func (*Promise) GetCommitedSequence ¶
func (*Promise) GetSequence ¶
func (*Promise) GetVoteBallot ¶
func (*Promise) MarshalToSizedBuffer ¶
func (*Promise) ProtoMessage ¶
func (*Promise) ProtoMessage()
func (*Promise) XXX_DiscardUnknown ¶
func (m *Promise) XXX_DiscardUnknown()
func (*Promise) XXX_Marshal ¶
func (*Promise) XXX_Unmarshal ¶
type Value ¶
type Value struct {
Changes []*Change `protobuf:"bytes,1,rep,name=changes,proto3" json:"changes,omitempty"`
}
func (*Value) Descriptor ¶
func (*Value) GetChanges ¶
func (*Value) ProtoMessage ¶
func (*Value) ProtoMessage()
func (*Value) XXX_DiscardUnknown ¶
func (m *Value) XXX_DiscardUnknown()
func (*Value) XXX_Marshal ¶
func (*Value) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.