code: func (imts *ignoredSink) Write(events ...Event) error {
  	var kept []Event
  	for _, e := range events {
  		if !imts.ignoreMediaTypes[e.Target.MediaType] {
  			kept = append(kept, e)
  		}
  	}
  	if len(kept) == 0 {
  		return nil
  	}
  
  	var results []Event
  	for _, e := range kept {
  		if !imts.ignoreActions[e.Action] {
  			results = append(results, e)
  		}
  	}
  	if len(results) == 0 {
  		return nil
  	}
  	return imts.Sink.Write(results...)
  }
docs: // Write discards events with ignored target media types and passes the rest
  // along.