code: func (c *Collector) handleEvent(event events.Event) {
  	switch event.(type) {
  	case api.EventNode:
  		c.handleNodeEvent(event)
  	case api.EventTask:
  		c.handleTaskEvent(event)
  	case api.EventService:
  		c.handleServiceEvent(event)
  	case api.EventNetwork:
  		c.handleNetworkEvent(event)
  	case api.EventSecret:
  		c.handleSecretsEvent(event)
  	case api.EventConfig:
  		c.handleConfigsEvent(event)
  	}
  }
docs: // handleEvent handles a single incoming cluster event.