mockoption

package
v0.0.0-...-b3bb260 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2024 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ScheduleOptions

type ScheduleOptions struct {
	RegionScheduleLimit  uint64
	LeaderScheduleLimit  uint64
	ReplicaScheduleLimit uint64
	MaxSnapshotCount     uint64
	MaxPendingPeerCount  uint64
	MaxMergeRegionSize   uint64
	MaxMergeRegionKeys   uint64
	MaxStoreDownTime     time.Duration
	MaxReplicas          int
}

ScheduleOptions is a mock of ScheduleOptions which implements Options interface

func NewScheduleOptions

func NewScheduleOptions() *ScheduleOptions

NewScheduleOptions creates a mock schedule option.

func (*ScheduleOptions) GetLeaderScheduleLimit

func (mso *ScheduleOptions) GetLeaderScheduleLimit() uint64

GetLeaderScheduleLimit mocks method

func (*ScheduleOptions) GetMaxMergeRegionKeys

func (mso *ScheduleOptions) GetMaxMergeRegionKeys() uint64

GetMaxMergeRegionKeys mocks method

func (*ScheduleOptions) GetMaxMergeRegionSize

func (mso *ScheduleOptions) GetMaxMergeRegionSize() uint64

GetMaxMergeRegionSize mocks method

func (*ScheduleOptions) GetMaxReplicas

func (mso *ScheduleOptions) GetMaxReplicas() int

GetMaxReplicas mocks method

func (*ScheduleOptions) GetMaxStoreDownTime

func (mso *ScheduleOptions) GetMaxStoreDownTime() time.Duration

GetMaxStoreDownTime mocks method

func (*ScheduleOptions) GetRegionScheduleLimit

func (mso *ScheduleOptions) GetRegionScheduleLimit() uint64

GetRegionScheduleLimit mocks method

func (*ScheduleOptions) GetReplicaScheduleLimit

func (mso *ScheduleOptions) GetReplicaScheduleLimit() uint64

GetReplicaScheduleLimit mocks method

func (*ScheduleOptions) SetMaxReplicas

func (mso *ScheduleOptions) SetMaxReplicas(replicas int)

SetMaxReplicas mocks method

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL