Documentation ¶
Index ¶
- func NewBatchTransferLeaderProcedure(id uint64, batch []procedure.Procedure) (procedure.Procedure, error)
- func NewProcedure(params ProcedureParams) (procedure.Procedure, error)
- type BatchTransferLeaderProcedure
- func (p *BatchTransferLeaderProcedure) Cancel(_ context.Context) error
- func (p *BatchTransferLeaderProcedure) ID() uint64
- func (p *BatchTransferLeaderProcedure) Priority() procedure.Priority
- func (p *BatchTransferLeaderProcedure) RelatedVersionInfo() procedure.RelatedVersionInfo
- func (p *BatchTransferLeaderProcedure) Start(ctx context.Context) error
- func (p *BatchTransferLeaderProcedure) State() procedure.State
- func (p *BatchTransferLeaderProcedure) Typ() procedure.Typ
- type Procedure
- func (p *Procedure) Cancel(_ context.Context) error
- func (p *Procedure) ID() uint64
- func (p *Procedure) Priority() procedure.Priority
- func (p *Procedure) RelatedVersionInfo() procedure.RelatedVersionInfo
- func (p *Procedure) Start(ctx context.Context) error
- func (p *Procedure) State() procedure.State
- func (p *Procedure) Typ() procedure.Typ
- type ProcedureParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBatchTransferLeaderProcedure ¶ added in v1.2.4
func NewProcedure ¶
func NewProcedure(params ProcedureParams) (procedure.Procedure, error)
Types ¶
type BatchTransferLeaderProcedure ¶ added in v1.2.4
type BatchTransferLeaderProcedure struct {
// contains filtered or unexported fields
}
BatchTransferLeaderProcedure is a proxy procedure contains a batch of TransferLeaderProcedure. It is used to support concurrent execution of a batch of TransferLeaderProcedure with same version.
func (*BatchTransferLeaderProcedure) Cancel ¶ added in v1.2.4
func (p *BatchTransferLeaderProcedure) Cancel(_ context.Context) error
func (*BatchTransferLeaderProcedure) ID ¶ added in v1.2.4
func (p *BatchTransferLeaderProcedure) ID() uint64
func (*BatchTransferLeaderProcedure) Priority ¶ added in v1.2.4
func (p *BatchTransferLeaderProcedure) Priority() procedure.Priority
func (*BatchTransferLeaderProcedure) RelatedVersionInfo ¶ added in v1.2.4
func (p *BatchTransferLeaderProcedure) RelatedVersionInfo() procedure.RelatedVersionInfo
func (*BatchTransferLeaderProcedure) Start ¶ added in v1.2.4
func (p *BatchTransferLeaderProcedure) Start(ctx context.Context) error
func (*BatchTransferLeaderProcedure) State ¶ added in v1.2.4
func (p *BatchTransferLeaderProcedure) State() procedure.State
func (*BatchTransferLeaderProcedure) Typ ¶ added in v1.2.4
func (p *BatchTransferLeaderProcedure) Typ() procedure.Typ
type Procedure ¶
type Procedure struct {
// contains filtered or unexported fields
}
func (*Procedure) RelatedVersionInfo ¶ added in v1.2.0
func (p *Procedure) RelatedVersionInfo() procedure.RelatedVersionInfo
Click to show internal directories.
Click to hide internal directories.