Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsReadOnly ¶
func IsReadOnly() bool
func IsStateInitialized ¶
func IsStateInitialized() bool
func ResetState ¶
func ResetState()
ResetState resets the state of the lease checker. This is used for testing purposes only.
func RunStateCheck ¶
func RunStateCheck(ctx context.Context, leaseStateChecker LeaseStateChecker)
Utility function to start DR checks. DR checks can be run either on the main go routine or a new go routine.
Types ¶
type LeaseState ¶
type LeaseStateChecker ¶
type LeaseStateChecker interface { RunStateCheck(ctx context.Context) ShouldRunOnIndependentGoRoutine() bool InitStateCache(interface{}) error }
func GetStateChecker ¶
func GetStateChecker(ctx context.Context, stateChecker string) LeaseStateChecker
Click to show internal directories.
Click to hide internal directories.