WaitForServerReady waits until the HTTP(S) server can respond to a GET request. Should NOT allow cancelling the retry as shuting down non-ready server may cause deadlock.
type Daemon interface {
// Start starts the daemon and creates required background go routines synchronously Start(ctx context.Context) error// Shutdown shutdown the daemon gracefully and synchronously Shutdown()
}
NewDaemonFunc defines the New() function. New() creates and initializes the daemon synchronously. New should stop processing gracefully when the context is cancelled.