// NewNotifier returns a new instance of a page email subscription notifier. func NewNotifier() *SubmissionNotifier { sn := SubmissionNotifier{ Reactive: gu.NewReactive(), } sn.start() return &sn }
func New(endpoint string, interval time.Duration) *RestfulBox { rb := RestfulBox{ endpoint: endpoint, Reactive: gu.NewReactive(), ticker: time.NewTicker(interval), closer: make(chan struct{}), } return &rb }