This is an automated email from the ASF dual-hosted git repository. dangogh pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-trafficcontrol.git
commit 089b1cbb8691ed1ce40c806a29ddbca3b9e20ea6 Author: Dewayne Richardson <dewr...@apache.org> AuthorDate: Fri Mar 2 13:26:12 2018 -0700 added the nullable types struct --- lib/go-tc/types.go | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/lib/go-tc/types.go b/lib/go-tc/types.go index fc8e32a..eaf889e 100644 --- a/lib/go-tc/types.go +++ b/lib/go-tc/types.go @@ -19,15 +19,25 @@ package tc * under the License. */ -// TypeResponse ... -type TypeResponse struct { +// TypesResponse ... +type TypesResponse struct { Response []Type `json:"response"` } // Type contains information about a given Type in Traffic Ops. type Type struct { - ID int `json:"id"` - Name string `json:"name,omitempty"` - Description string `json:"description,omitempty"` - UseInTable string `json:"useInTable,omitempty"` + ID int `json:"id"` + LastUpdated TimeNoMod `json:"lastUpdated"` + Name string `json:"name"` + Description string `json:"description"` + UseInTable string `json:"useInTable"` +} + +// TypeNullable contains information about a given Type in Traffic Ops. +type TypeNullable struct { + ID *int `json:"id"` + LastUpdated *TimeNoMod `json:"lastUpdated" db:"last_updated"` + Name *string `json:"name" db:"name"` + Description *string `json:"description" db:"description"` + UseInTable *string `json:"useInTable" db:"use_in_table"` } -- To stop receiving notification emails like this one, please contact dang...@apache.org.