Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Raft ¶
type Raft struct { *raft.Raft *common.ClusterInfo // contains filtered or unexported fields }
type ShardingFsm ¶
type ShardingFsm struct { ShardingSnapshot // contains filtered or unexported fields }
func (*ShardingFsm) Apply ¶
func (this *ShardingFsm) Apply(l *raft.Log) interface{}
func (*ShardingFsm) Get ¶
func (this *ShardingFsm) Get(Id int64) uint32
func (*ShardingFsm) Init ¶
func (this *ShardingFsm) Init(pActor actor.IActor)
func (*ShardingFsm) Restore ¶
func (this *ShardingFsm) Restore(reader io.ReadCloser) error
func (*ShardingFsm) Snapshot ¶
func (this *ShardingFsm) Snapshot() (raft.FSMSnapshot, error)
type ShardingInfo ¶
type ShardingInfo struct { Op string `json:"Op"` Id int64 `json:"Id"` ClusterId uint32 `json:"ClusterId"` }
func (*ShardingInfo) ToByte ¶
func (this *ShardingInfo) ToByte() []byte
type ShardingSnapshot ¶
func (*ShardingSnapshot) Persist ¶
func (this *ShardingSnapshot) Persist(sink raft.SnapshotSink) error
func (*ShardingSnapshot) Release ¶
func (this *ShardingSnapshot) Release()
Click to show internal directories.
Click to hide internal directories.