// Check implements Checker.Check. Please refer to Checker.Check for more information.
Check implements Checker.Check. Please refer to Checker.Check for more information.
// Check implements Checker . Check . Please refer to Checker . Check for more information .
func (ck *defaultChecker) Check(ctx context.Context) CheckerResult {
	ck.mtx.Lock()
	defer ck.mtx.Unlock()
	ctx, cancel := context.WithTimeout(ctx, ck.cfg.timeout)
	defer cancel()
	ck.runSynchronousChecks(ctx)
	return ck.mapStateToCheckerResult()
}
func ( ck * defaultChecker ) Check ( ctx context . Context ) CheckerResult { ck . mtx . Lock ( ) defer ck . mtx . Unlock ( ) ctx , cancel := context . WithTimeout ( ctx , ck . cfg . timeout ) defer cancel ( ) ck . runSynchronousChecks ( ctx ) return ck . mapStateToCheckerResult ( ) }
Check implements Checker.Check.
Check implements Checker . Check .