code: func FindNetworks(tx ReadTx, by By) ([]*api.Network, error) {
  	checkType := func(by By) error {
  		switch by.(type) {
  		case byName, byNamePrefix, byIDPrefix, byCustom, byCustomPrefix, byAll:
  			return nil
  		default:
  			return ErrInvalidFindBy
  		}
  	}
  
  	networkList := []*api.Network{}
  	appendResult := func(o api.StoreObject) {
  		networkList = append(networkList, o.(*api.Network))
  	}
  
  	err := tx.find(tableNetwork, by, checkType, appendResult)
  	return networkList, err
  }
docs: // FindNetworks selects a set of networks and returns them.