code: func (sc *serviceSource) filterByServiceType(services []*v1.Service) []*v1.Service {
  	filteredList := []*v1.Service{}
  	for _, service := range services {
  		// Check if the service is of the given type or not
  		if _, ok := sc.serviceTypeFilter[string(service.Spec.Type)]; ok {
  			filteredList = append(filteredList, service)
  		}
  	}
  
  	return filteredList
  }
docs: // filterByServiceType filters services according their types