You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2020/05/15 20:39:52 UTC
[GitHub] [trafficcontrol] rawlinp commented on issue #3343: Rename Traffic Ops Go Client Package, Functions to be clear and idiomatic
rawlinp commented on issue #3343:
URL: https://github.com/apache/trafficcontrol/issues/3343#issuecomment-629473429
On a similar note, instead of naming methods like `GetDeliveryServices()` we could move each set of API endpoints into sub-objects of the client -- e.g. `TOClient.DeliveryServices.List(filters url.Value)`, `TOClient.DeliveryServices.Get(id int)`, `TOClient.Servers.Update(id int, server tc.Server)`, etc. instead of having all of the methods attached to the top-level `TOClient` struct.
----------------------------------------------------------------
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:
users@infra.apache.org