Documentation ¶
Index ¶
- Constants
- type BeTheLeaderArgs
- type BeTheLeaderArgsCache
- type BeTheLeaderReply
- type BeTheLeaderReplyCache
- type Beacon
- type BeaconCache
- type BeaconReply
- type BeaconReplyCache
- type GetView
- type GetViewCache
- type GetViewReply
- type GetViewReplyCache
- type PingArgs
- type PingArgsCache
- type PingReply
- type PingReplyCache
- type Propose
- type ProposeAndRead
- type ProposeAndReadCache
- type ProposeAndReadReply
- type ProposeAndReadReplyCache
- type ProposeCache
- type ProposeReply
- type ProposeReplyCache
- type ProposeReplyTS
- type ProposeReplyTSCache
- type Read
- type ReadCache
- type ReadReply
- type ReadReplyCache
- type RegisterClientIdArgs
- type RegisterClientIdArgsCache
- type RegisterClientIdReply
- type RegisterClientIdReplyCache
Constants ¶
View Source
const ( PROPOSE uint8 = iota PROPOSE_REPLY READ READ_REPLY PROPOSE_AND_READ PROPOSE_AND_READ_REPLY GENERIC_SMR_BEACON GENERIC_SMR_BEACON_REPLY REGISTER_CLIENT_ID REGISTER_CLIENT_ID_REPLY GET_VIEW GET_VIEW_REPLY )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BeTheLeaderArgs ¶
type BeTheLeaderArgs struct { }
func (*BeTheLeaderArgs) BinarySize ¶
func (t *BeTheLeaderArgs) BinarySize() (nbytes int, sizeKnown bool)
func (*BeTheLeaderArgs) Marshal ¶
func (t *BeTheLeaderArgs) Marshal(wire io.Writer)
type BeTheLeaderArgsCache ¶
type BeTheLeaderArgsCache struct {
// contains filtered or unexported fields
}
func NewBeTheLeaderArgsCache ¶
func NewBeTheLeaderArgsCache() *BeTheLeaderArgsCache
func (*BeTheLeaderArgsCache) Get ¶
func (p *BeTheLeaderArgsCache) Get() *BeTheLeaderArgs
func (*BeTheLeaderArgsCache) Put ¶
func (p *BeTheLeaderArgsCache) Put(t *BeTheLeaderArgs)
type BeTheLeaderReply ¶
type BeTheLeaderReply struct { }
func (*BeTheLeaderReply) BinarySize ¶
func (t *BeTheLeaderReply) BinarySize() (nbytes int, sizeKnown bool)
func (*BeTheLeaderReply) Marshal ¶
func (t *BeTheLeaderReply) Marshal(wire io.Writer)
type BeTheLeaderReplyCache ¶
type BeTheLeaderReplyCache struct {
// contains filtered or unexported fields
}
func NewBeTheLeaderReplyCache ¶
func NewBeTheLeaderReplyCache() *BeTheLeaderReplyCache
func (*BeTheLeaderReplyCache) Get ¶
func (p *BeTheLeaderReplyCache) Get() *BeTheLeaderReply
func (*BeTheLeaderReplyCache) Put ¶
func (p *BeTheLeaderReplyCache) Put(t *BeTheLeaderReply)
type BeaconCache ¶
type BeaconCache struct {
// contains filtered or unexported fields
}
func NewBeaconCache ¶
func NewBeaconCache() *BeaconCache
func (*BeaconCache) Get ¶
func (p *BeaconCache) Get() *Beacon
func (*BeaconCache) Put ¶
func (p *BeaconCache) Put(t *Beacon)
type BeaconReply ¶
type BeaconReply struct {
Timestamp uint64
}
func (*BeaconReply) BinarySize ¶
func (t *BeaconReply) BinarySize() (nbytes int, sizeKnown bool)
func (*BeaconReply) Marshal ¶
func (t *BeaconReply) Marshal(wire io.Writer)
type BeaconReplyCache ¶
type BeaconReplyCache struct {
// contains filtered or unexported fields
}
func NewBeaconReplyCache ¶
func NewBeaconReplyCache() *BeaconReplyCache
func (*BeaconReplyCache) Get ¶
func (p *BeaconReplyCache) Get() *BeaconReply
func (*BeaconReplyCache) Put ¶
func (p *BeaconReplyCache) Put(t *BeaconReply)
type GetViewCache ¶
type GetViewCache struct {
// contains filtered or unexported fields
}
func NewGetViewCache ¶
func NewGetViewCache() *GetViewCache
func (*GetViewCache) Get ¶
func (p *GetViewCache) Get() *GetView
func (*GetViewCache) Put ¶
func (p *GetViewCache) Put(t *GetView)
type GetViewReply ¶
type GetViewReply struct { OK uint8 // 1: ACTIVE; 0: PENDING ViewId int32 PilotId int32 // index of this pilot ReplicaId int32 // unique id of this pilot replica }
func (*GetViewReply) BinarySize ¶
func (t *GetViewReply) BinarySize() (nbytes int, sizeKnown bool)
func (*GetViewReply) Marshal ¶
func (t *GetViewReply) Marshal(wire io.Writer)
type GetViewReplyCache ¶
type GetViewReplyCache struct {
// contains filtered or unexported fields
}
func NewGetViewReplyCache ¶
func NewGetViewReplyCache() *GetViewReplyCache
func (*GetViewReplyCache) Get ¶
func (p *GetViewReplyCache) Get() *GetViewReply
func (*GetViewReplyCache) Put ¶
func (p *GetViewReplyCache) Put(t *GetViewReply)
type PingArgsCache ¶
type PingArgsCache struct {
// contains filtered or unexported fields
}
func NewPingArgsCache ¶
func NewPingArgsCache() *PingArgsCache
func (*PingArgsCache) Get ¶
func (p *PingArgsCache) Get() *PingArgs
func (*PingArgsCache) Put ¶
func (p *PingArgsCache) Put(t *PingArgs)
type PingReplyCache ¶
type PingReplyCache struct {
// contains filtered or unexported fields
}
func NewPingReplyCache ¶
func NewPingReplyCache() *PingReplyCache
func (*PingReplyCache) Get ¶
func (p *PingReplyCache) Get() *PingReply
func (*PingReplyCache) Put ¶
func (p *PingReplyCache) Put(t *PingReply)
type Propose ¶
func (*Propose) BinarySize ¶
type ProposeAndRead ¶
func (*ProposeAndRead) BinarySize ¶
func (t *ProposeAndRead) BinarySize() (nbytes int, sizeKnown bool)
func (*ProposeAndRead) Marshal ¶
func (t *ProposeAndRead) Marshal(wire io.Writer)
type ProposeAndReadCache ¶
type ProposeAndReadCache struct {
// contains filtered or unexported fields
}
func NewProposeAndReadCache ¶
func NewProposeAndReadCache() *ProposeAndReadCache
func (*ProposeAndReadCache) Get ¶
func (p *ProposeAndReadCache) Get() *ProposeAndRead
func (*ProposeAndReadCache) Put ¶
func (p *ProposeAndReadCache) Put(t *ProposeAndRead)
type ProposeAndReadReply ¶
func (*ProposeAndReadReply) BinarySize ¶
func (t *ProposeAndReadReply) BinarySize() (nbytes int, sizeKnown bool)
func (*ProposeAndReadReply) Marshal ¶
func (t *ProposeAndReadReply) Marshal(wire io.Writer)
type ProposeAndReadReplyCache ¶
type ProposeAndReadReplyCache struct {
// contains filtered or unexported fields
}
func NewProposeAndReadReplyCache ¶
func NewProposeAndReadReplyCache() *ProposeAndReadReplyCache
func (*ProposeAndReadReplyCache) Get ¶
func (p *ProposeAndReadReplyCache) Get() *ProposeAndReadReply
func (*ProposeAndReadReplyCache) Put ¶
func (p *ProposeAndReadReplyCache) Put(t *ProposeAndReadReply)
type ProposeCache ¶
type ProposeCache struct {
// contains filtered or unexported fields
}
func NewProposeCache ¶
func NewProposeCache() *ProposeCache
func (*ProposeCache) Get ¶
func (p *ProposeCache) Get() *Propose
func (*ProposeCache) Put ¶
func (p *ProposeCache) Put(t *Propose)
type ProposeReply ¶
func (*ProposeReply) BinarySize ¶
func (t *ProposeReply) BinarySize() (nbytes int, sizeKnown bool)
func (*ProposeReply) Marshal ¶
func (t *ProposeReply) Marshal(wire io.Writer)
type ProposeReplyCache ¶
type ProposeReplyCache struct {
// contains filtered or unexported fields
}
func NewProposeReplyCache ¶
func NewProposeReplyCache() *ProposeReplyCache
func (*ProposeReplyCache) Get ¶
func (p *ProposeReplyCache) Get() *ProposeReply
func (*ProposeReplyCache) Put ¶
func (p *ProposeReplyCache) Put(t *ProposeReply)
type ProposeReplyTS ¶
func (*ProposeReplyTS) BinarySize ¶
func (t *ProposeReplyTS) BinarySize() (nbytes int, sizeKnown bool)
func (*ProposeReplyTS) Marshal ¶
func (t *ProposeReplyTS) Marshal(wire io.Writer)
type ProposeReplyTSCache ¶
type ProposeReplyTSCache struct {
// contains filtered or unexported fields
}
func NewProposeReplyTSCache ¶
func NewProposeReplyTSCache() *ProposeReplyTSCache
func (*ProposeReplyTSCache) Get ¶
func (p *ProposeReplyTSCache) Get() *ProposeReplyTS
func (*ProposeReplyTSCache) Put ¶
func (p *ProposeReplyTSCache) Put(t *ProposeReplyTS)
type Read ¶
func (*Read) BinarySize ¶
type ReadCache ¶
type ReadCache struct {
// contains filtered or unexported fields
}
func NewReadCache ¶
func NewReadCache() *ReadCache
type ReadReply ¶
func (*ReadReply) BinarySize ¶
type ReadReplyCache ¶
type ReadReplyCache struct {
// contains filtered or unexported fields
}
func NewReadReplyCache ¶
func NewReadReplyCache() *ReadReplyCache
func (*ReadReplyCache) Get ¶
func (p *ReadReplyCache) Get() *ReadReply
func (*ReadReplyCache) Put ¶
func (p *ReadReplyCache) Put(t *ReadReply)
type RegisterClientIdArgs ¶
type RegisterClientIdArgs struct {
ClientId uint32
}
func (*RegisterClientIdArgs) BinarySize ¶
func (t *RegisterClientIdArgs) BinarySize() (nbytes int, sizeKnown bool)
func (*RegisterClientIdArgs) Marshal ¶
func (t *RegisterClientIdArgs) Marshal(wire io.Writer)
type RegisterClientIdArgsCache ¶
type RegisterClientIdArgsCache struct {
// contains filtered or unexported fields
}
func NewRegisterClientIdArgsCache ¶
func NewRegisterClientIdArgsCache() *RegisterClientIdArgsCache
func (*RegisterClientIdArgsCache) Get ¶
func (p *RegisterClientIdArgsCache) Get() *RegisterClientIdArgs
func (*RegisterClientIdArgsCache) Put ¶
func (p *RegisterClientIdArgsCache) Put(t *RegisterClientIdArgs)
type RegisterClientIdReply ¶
type RegisterClientIdReply struct {
OK uint8
}
func (*RegisterClientIdReply) BinarySize ¶
func (t *RegisterClientIdReply) BinarySize() (nbytes int, sizeKnown bool)
func (*RegisterClientIdReply) Marshal ¶
func (t *RegisterClientIdReply) Marshal(wire io.Writer)
type RegisterClientIdReplyCache ¶
type RegisterClientIdReplyCache struct {
// contains filtered or unexported fields
}
func NewRegisterClientIdReplyCache ¶
func NewRegisterClientIdReplyCache() *RegisterClientIdReplyCache
func (*RegisterClientIdReplyCache) Get ¶
func (p *RegisterClientIdReplyCache) Get() *RegisterClientIdReply
func (*RegisterClientIdReplyCache) Put ¶
func (p *RegisterClientIdReplyCache) Put(t *RegisterClientIdReply)
Click to show internal directories.
Click to hide internal directories.