Documentation ¶
Index ¶
- Constants
- type BaseArgs
- type GroupInfo
- type GroupStatus
- type HeartbeatArgs
- func (z *HeartbeatArgs) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *HeartbeatArgs) EncodeMsg(en *msgp.Writer) (err error)
- func (z *HeartbeatArgs) MarshalMsg(b []byte) (o []byte, err error)
- func (z *HeartbeatArgs) Msgsize() (s int)
- func (z *HeartbeatArgs) UnmarshalMsg(bts []byte) (o []byte, err error)
- type ShardInfo
- type ShardStatus
Constants ¶
const ( GroupJoined = iota GroupServing GroupLeaving GroupRemoving GroupRemoved )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseArgs ¶
func (BaseArgs) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type GroupInfo ¶
type GroupInfo struct { Id int ConfNum int IsLeader bool Status GroupStatus Shards map[int]ShardInfo Size int64 Peer int }
func (*GroupInfo) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type GroupStatus ¶
type GroupStatus int
func (*GroupStatus) DecodeMsg ¶
func (z *GroupStatus) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (GroupStatus) EncodeMsg ¶
func (z GroupStatus) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (GroupStatus) MarshalMsg ¶
func (z GroupStatus) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (GroupStatus) Msgsize ¶
func (z GroupStatus) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*GroupStatus) UnmarshalMsg ¶
func (z *GroupStatus) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type HeartbeatArgs ¶
func (*HeartbeatArgs) DecodeMsg ¶
func (z *HeartbeatArgs) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (*HeartbeatArgs) EncodeMsg ¶
func (z *HeartbeatArgs) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (*HeartbeatArgs) MarshalMsg ¶
func (z *HeartbeatArgs) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (*HeartbeatArgs) Msgsize ¶
func (z *HeartbeatArgs) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*HeartbeatArgs) UnmarshalMsg ¶
func (z *HeartbeatArgs) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type ShardInfo ¶
type ShardInfo struct { Id int Gid int Status ShardStatus Size int64 Capacity uint64 RangeStart string RangeEnd string }
func (*ShardInfo) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type ShardStatus ¶
type ShardStatus int
const ( SERVING ShardStatus = iota INVALID PULLING ERASING WAITING )
func (*ShardStatus) DecodeMsg ¶
func (z *ShardStatus) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (ShardStatus) EncodeMsg ¶
func (z ShardStatus) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (ShardStatus) MarshalMsg ¶
func (z ShardStatus) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (ShardStatus) Msgsize ¶
func (z ShardStatus) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*ShardStatus) UnmarshalMsg ¶
func (z *ShardStatus) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler