mhoppa commented on a change in pull request #4015: Rewrite /federations to Go
- POST/PUT/DELETE
URL: https://github.com/apache/trafficcontrol/pull/4015#discussion_r339600297
##########
File path: traffic_ops/traffic_ops_golang/dbhelpers/db_helpers.go
##########
@@ -346,3 +430,17 @@ func GetCacheGroupNameFromID(tx *sql.Tx, id int64)
(tc.CacheGroupName, bool, err
}
return tc.CacheGroupName(name), true, nil
}
+
+// GetFederationIDForUserIDByXMLID retrieves the ID of the Federation assigned
to the user defined by
+// userID on the Delivery Service identified by xmlid. If no such federation
exists, the boolean
+// returned will be 'false', while the error indicates unexpected errors that
occurred when querying.
+func GetFederationIDForUserIDByXMLID(tx *sql.Tx, userID int, xmlid string)
(uint, bool, error) {
+ var id uint
Review comment:
I am curious why a uint here?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services