code: func (s *Server) notifier() {
  	var timer <-chan time.Time
  	for {
  		var err error
  		select {
  		case notification := <-s.notify:
  			s.batch = append(s.batch, notification)
  			// Collect until BatchDelay passes, or BatchSize are queued.
  			switch len(s.batch) {
  			case 1:
  				timer = time.After(s.config.BatchDelay)
  			case s.config.BatchSize:
  				err = s.send()
  				timer = nil
  			}
  
  		case <-timer:
  			err = s.send()
  		}
  
  		if err != nil {
  			log.Fatal(err)
  		}
  	}
  }
docs: // notifier batches healthcheck notifications and sends them to the Seesaw
  // Engine.