You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by mi...@apache.org on 2018/04/02 14:16:11 UTC
[incubator-trafficcontrol] branch master updated: added SetID
function
This is an automated email from the ASF dual-hosted git repository.
mitchell852 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-trafficcontrol.git
The following commit(s) were added to refs/heads/master by this push:
new 2a5a87e added SetID function
2a5a87e is described below
commit 2a5a87e0a9c51f9ae1f2647336d9a025a4a9ffbf
Author: Dewayne Richardson <de...@apache.org>
AuthorDate: Mon Apr 2 08:07:41 2018 -0600
added SetID function
---
traffic_ops/traffic_ops_golang/server/servers.go | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/traffic_ops/traffic_ops_golang/server/servers.go b/traffic_ops/traffic_ops_golang/server/servers.go
index a08a33d..bd25b20 100644
--- a/traffic_ops/traffic_ops_golang/server/servers.go
+++ b/traffic_ops/traffic_ops_golang/server/servers.go
@@ -48,6 +48,10 @@ func GetRefType() *TOServer {
return &refType
}
+func (server *TOServer) SetID(i int) {
+ server.ID = &i
+}
+
func (server TOServer) GetKeyFieldsInfo() []api.KeyFieldInfo {
return []api.KeyFieldInfo{{"id", api.GetIntKey}}
}
--
To stop receiving notification emails like this one, please contact
mitchell852@apache.org.