srijeet0406 commented on code in PR #7023:
URL: https://github.com/apache/trafficcontrol/pull/7023#discussion_r952034893
##########
lib/go-tc/servers.go:
##########
@@ -1019,6 +1019,12 @@ func UpdateServerPropertiesV40(profileNames []string,
properties CommonServerPro
}
}
+// ServerV41 is the representation of a Server in version 4.1 of the Traffic
Ops API.
+type ServerV41 struct {
+ ServerV40
+ ASNs []int64 `json:"asns"`
Review Comment:
Ah I was looking at the `id`. However, I'd like to keep this as an `int64`
because it is one of the supported types in `pq.Scanner`. If I keep this field
as an int, I'd have to implement those methods for the type.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]