rob05c commented on issue #2124: Add TO Go GET deliveryservices routes
   @DylanVolz What do you think of this versioning scheme?
   The highlights are: 
   Structs are versioned via anonymous members:
   type DeliveryServiceNullableV13 struct {
        DeepCachingType   *DeepCachingType `json:"deepCachingType" 
   There's a `GetRefType` for each different version:
   func GetRefTypeV12() *TODeliveryServiceV12 {
        return &refTypeV12
   {1.3, http.MethodGet, `deliveryservices/?(\.json)?$`, 
   (This still isn't necessary for routes that don't change, e.g. `divisions` 
can still only have `{1.2, http.MethodGet, "divisions/?(\\.json)?$", 
api.ReadHandler(division.GetRefTypeV12()...` [which implicitly serves `1.3`])
   And functions on each API alias that don't change can be reused:
   func (ds *TODeliveryServiceV13) GetType() string {
        v12 := TODeliveryServiceV12(ds.DeliveryServiceNullableV12)
        return v12.GetType()

This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

With regards,
Apache Git Services

Reply via email to