Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Guard ¶
The guard message is used before non-renewal lease promises to bound the lease expiry time for the grantor.
func (*Guard) BinarySize ¶
func (*Guard) New ¶
func (t *Guard) New() fastrpc.Serializable
type GuardCache ¶
type GuardCache struct {
// contains filtered or unexported fields
}
func NewGuardCache ¶
func NewGuardCache() *GuardCache
func (*GuardCache) Get ¶
func (p *GuardCache) Get() *Guard
func (*GuardCache) Put ¶
func (p *GuardCache) Put(t *Guard)
type GuardReply ¶
func (*GuardReply) BinarySize ¶
func (t *GuardReply) BinarySize() (nbytes int, sizeKnown bool)
func (*GuardReply) Marshal ¶
func (t *GuardReply) Marshal(wire io.Writer)
func (*GuardReply) New ¶
func (t *GuardReply) New() fastrpc.Serializable
type GuardReplyCache ¶
type GuardReplyCache struct {
// contains filtered or unexported fields
}
func NewGuardReplyCache ¶
func NewGuardReplyCache() *GuardReplyCache
func (*GuardReplyCache) Get ¶
func (p *GuardReplyCache) Get() *GuardReply
func (*GuardReplyCache) Put ¶
func (p *GuardReplyCache) Put(t *GuardReply)
type LeaseMetadata ¶
type LeaseMetadata struct { Quorum []int32 ObjectKeys []state.Key IgnoreReplicas uint8 // flag indicating that the replica(s) in Quorum should be excluded from all their current quorums ReinstateReplicas uint8 // flag indicating that the replica(s) in Quorum are to be reinstated as replicas of their quorums }
func (*LeaseMetadata) BinarySize ¶
func (t *LeaseMetadata) BinarySize() (nbytes int, sizeKnown bool)
func (*LeaseMetadata) Marshal ¶
func (t *LeaseMetadata) Marshal(wire io.Writer)
func (*LeaseMetadata) New ¶
func (t *LeaseMetadata) New() fastrpc.Serializable
type LeaseMetadataCache ¶
type LeaseMetadataCache struct {
// contains filtered or unexported fields
}
func NewLeaseMetadataCache ¶
func NewLeaseMetadataCache() *LeaseMetadataCache
func (*LeaseMetadataCache) Get ¶
func (p *LeaseMetadataCache) Get() *LeaseMetadata
func (*LeaseMetadataCache) Put ¶
func (p *LeaseMetadataCache) Put(t *LeaseMetadata)
type Promise ¶
type Promise struct { ReplicaId int32 LeaseInstance int32 TimestampNs int64 DurationNs int64 LatestAcceptedInst int32 }
func (*Promise) BinarySize ¶
func (*Promise) New ¶
func (t *Promise) New() fastrpc.Serializable
type PromiseCache ¶
type PromiseCache struct {
// contains filtered or unexported fields
}
func NewPromiseCache ¶
func NewPromiseCache() *PromiseCache
func (*PromiseCache) Get ¶
func (p *PromiseCache) Get() *Promise
func (*PromiseCache) Put ¶
func (p *PromiseCache) Put(t *Promise)
type PromiseReply ¶
func (*PromiseReply) BinarySize ¶
func (t *PromiseReply) BinarySize() (nbytes int, sizeKnown bool)
func (*PromiseReply) Marshal ¶
func (t *PromiseReply) Marshal(wire io.Writer)
func (*PromiseReply) New ¶
func (t *PromiseReply) New() fastrpc.Serializable
type PromiseReplyCache ¶
type PromiseReplyCache struct {
// contains filtered or unexported fields
}
func NewPromiseReplyCache ¶
func NewPromiseReplyCache() *PromiseReplyCache
func (*PromiseReplyCache) Get ¶
func (p *PromiseReplyCache) Get() *PromiseReply
func (*PromiseReplyCache) Put ¶
func (p *PromiseReplyCache) Put(t *PromiseReply)
Click to show internal directories.
Click to hide internal directories.