// NewChecker creates a new Checker. The provided options will be
// used to modify its configuration. If the Checker was not yet started
// (see Checker.IsStarted), it will be started automatically
// (see Checker.Start). You can disable this autostart by
// adding the WithDisabledAutostart configuration option.
NewChecker creates a new Checker. The provided options will be
used to modify its configuration. If the Checker was not yet started
, it will be started automatically
. You can disable this autostart by
adding the WithDisabledAutostart configuration option.
// NewChecker creates a new Checker . The provided options will be // used to modify its configuration . If the Checker was not yet started // ( see Checker . IsStarted ) it will be started automatically // ( see Checker . Start ) . You can disable this autostart by // adding the WithDisabledAutostart configuration option .
func NewChecker(options ...CheckerOption) Checker {
	cfg := checkerConfig{
		cacheTTL:     1 * time.Second,
		timeout:      30 * time.Second,
		maxErrMsgLen: 500,
		checks:       map[string]*Check{},
		interceptors: []Interceptor{},
	}
	for _, opt := range options {
		opt(&cfg)
	}
	return newDefaultChecker(cfg)
}
func NewChecker ( options ... CheckerOption ) Checker { cfg := checkerConfig { cacheTTL : 1 * time . Second , timeout : 30 * time . Second , maxErrMsgLen : 500 , checks : map [ string ] * Check { } , interceptors : [ ] Interceptor { } , } for _ , opt := range options { opt ( & cfg ) } return newDefaultChecker ( cfg ) }
NewChecker creates a new Checker.
NewChecker creates a new Checker .