func (opts Options) WithPollInterval(pollInterval time.Duration) Options {
	opts.PollInterval = pollInterval
	return opts
}
WithPollInterval returns new options with the given poll interval.
package confirmer
import (
	"time"
	"github.com/sirupsen/logrus"
)
var (
	DefaultPollInterval = 30 * time.Second
	DefaultExpiry       = 30 * 24 * time.Hour
)
type Options struct {
	Logger       logrus.FieldLogger
	PollInterval time.Duration
	Expiry       time.Duration
}
func DefaultOptions() Options {
	return Options{
		Logger:       logrus.New(),
		PollInterval: DefaultPollInterval,
		Expiry:       DefaultExpiry,
	}
}
func (opts Options) WithLogger(logger logrus.FieldLogger) Options {
	opts.Logger = logger
	return opts
}