code: func FindServices(tx ReadTx, by By) ([]*api.Service, error) {
  	checkType := func(by By) error {
  		switch by.(type) {
  		case byName, byNamePrefix, byIDPrefix, byRuntime, byReferencedNetworkID, byReferencedSecretID, byReferencedConfigID, byCustom, byCustomPrefix, byAll:
  			return nil
  		default:
  			return ErrInvalidFindBy
  		}
  	}
  
  	serviceList := []*api.Service{}
  	appendResult := func(o api.StoreObject) {
  		serviceList = append(serviceList, o.(*api.Service))
  	}
  
  	err := tx.find(tableService, by, checkType, appendResult)
  	return serviceList, err
  }
docs: // FindServices selects a set of services and returns them.