Documentation ¶
Index ¶
- Constants
- type BeTheLeaderArgs
- type BeTheLeaderArgsCache
- type BeTheLeaderReply
- type BeTheLeaderReplyCache
- type Beacon
- type BeaconCache
- type BeaconReply
- type BeaconReplyCache
- type Connect
- type ConnectCache
- type ConnectReply
- type ConnectReplyCache
- type Disconnect
- type DisconnectCache
- type DisconnectReply
- type DisconnectReplyCache
- type GetState
- type GetStateCache
- type GetStateReply
- type GetStateReplyCache
- type GetStatus
- type GetStatusCache
- 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
- type Slowdown
- type SlowdownCache
- type SlowdownReply
- type SlowdownReplyCache
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 GET_STATE GET_STATE_REPLY SLOWDOWN SLOWDOWN_REPLY CONNECT CONNECT_REPLY DISCONNECT DISCONNECT_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 ConnectCache ¶
type ConnectCache struct {
// contains filtered or unexported fields
}
func NewConnectCache ¶
func NewConnectCache() *ConnectCache
func (*ConnectCache) Get ¶
func (p *ConnectCache) Get() *Connect
func (*ConnectCache) Put ¶
func (p *ConnectCache) Put(t *Connect)
type ConnectReply ¶
type ConnectReply struct {
Success uint8
}
func (*ConnectReply) BinarySize ¶
func (t *ConnectReply) BinarySize() (nbytes int, sizeKnown bool)
func (*ConnectReply) Marshal ¶
func (t *ConnectReply) Marshal(wire io.Writer)
type ConnectReplyCache ¶
type ConnectReplyCache struct {
// contains filtered or unexported fields
}
func NewConnectReplyCache ¶
func NewConnectReplyCache() *ConnectReplyCache
func (*ConnectReplyCache) Get ¶
func (p *ConnectReplyCache) Get() *ConnectReply
func (*ConnectReplyCache) Put ¶
func (p *ConnectReplyCache) Put(t *ConnectReply)
type Disconnect ¶
type Disconnect struct { }
func (*Disconnect) BinarySize ¶
func (t *Disconnect) BinarySize() (nbytes int, sizeKnown bool)
func (*Disconnect) Marshal ¶
func (t *Disconnect) Marshal(wire io.Writer)
type DisconnectCache ¶
type DisconnectCache struct {
// contains filtered or unexported fields
}
func NewDisconnectCache ¶
func NewDisconnectCache() *DisconnectCache
func (*DisconnectCache) Get ¶
func (p *DisconnectCache) Get() *Disconnect
func (*DisconnectCache) Put ¶
func (p *DisconnectCache) Put(t *Disconnect)
type DisconnectReply ¶
type DisconnectReply struct {
Success uint8
}
func (*DisconnectReply) BinarySize ¶
func (t *DisconnectReply) BinarySize() (nbytes int, sizeKnown bool)
func (*DisconnectReply) Marshal ¶
func (t *DisconnectReply) Marshal(wire io.Writer)
type DisconnectReplyCache ¶
type DisconnectReplyCache struct {
// contains filtered or unexported fields
}
func NewDisconnectReplyCache ¶
func NewDisconnectReplyCache() *DisconnectReplyCache
func (*DisconnectReplyCache) Get ¶
func (p *DisconnectReplyCache) Get() *DisconnectReply
func (*DisconnectReplyCache) Put ¶
func (p *DisconnectReplyCache) Put(t *DisconnectReply)
type GetStateCache ¶
type GetStateCache struct {
// contains filtered or unexported fields
}
func NewGetStateCache ¶
func NewGetStateCache() *GetStateCache
func (*GetStateCache) Get ¶
func (p *GetStateCache) Get() *GetState
func (*GetStateCache) Put ¶
func (p *GetStateCache) Put(t *GetState)
type GetStateReply ¶
type GetStateReply struct {
IsLeader uint8 // 0: not leader; 1: leader
}
func (*GetStateReply) BinarySize ¶
func (t *GetStateReply) BinarySize() (nbytes int, sizeKnown bool)
func (*GetStateReply) Marshal ¶
func (t *GetStateReply) Marshal(wire io.Writer)
type GetStateReplyCache ¶
type GetStateReplyCache struct {
// contains filtered or unexported fields
}
func NewGetStateReplyCache ¶
func NewGetStateReplyCache() *GetStateReplyCache
func (*GetStateReplyCache) Get ¶
func (p *GetStateReplyCache) Get() *GetStateReply
func (*GetStateReplyCache) Put ¶
func (p *GetStateReplyCache) Put(t *GetStateReply)
type GetStatusCache ¶
type GetStatusCache struct {
// contains filtered or unexported fields
}
func NewGetStatusCache ¶
func NewGetStatusCache() *GetStatusCache
func (*GetStatusCache) Get ¶
func (p *GetStatusCache) Get() *GetStatus
func (*GetStatusCache) Put ¶
func (p *GetStatusCache) Put(t *GetStatus)
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)
type SlowdownCache ¶
type SlowdownCache struct {
// contains filtered or unexported fields
}
func NewSlowdownCache ¶
func NewSlowdownCache() *SlowdownCache
func (*SlowdownCache) Get ¶
func (p *SlowdownCache) Get() *Slowdown
func (*SlowdownCache) Put ¶
func (p *SlowdownCache) Put(t *Slowdown)
type SlowdownReply ¶
type SlowdownReply struct {
Success uint8
}
func (*SlowdownReply) BinarySize ¶
func (t *SlowdownReply) BinarySize() (nbytes int, sizeKnown bool)
func (*SlowdownReply) Marshal ¶
func (t *SlowdownReply) Marshal(wire io.Writer)
type SlowdownReplyCache ¶
type SlowdownReplyCache struct {
// contains filtered or unexported fields
}
func NewSlowdownReplyCache ¶
func NewSlowdownReplyCache() *SlowdownReplyCache
func (*SlowdownReplyCache) Get ¶
func (p *SlowdownReplyCache) Get() *SlowdownReply
func (*SlowdownReplyCache) Put ¶
func (p *SlowdownReplyCache) Put(t *SlowdownReply)
Click to show internal directories.
Click to hide internal directories.