diff --git a/modules/config/model/Connection.go b/modules/config/model/Connection.go index 59d020f..df342d4 100644 --- a/modules/config/model/Connection.go +++ b/modules/config/model/Connection.go @@ -1,8 +1,10 @@ package model +import "encoding/json" + type Connection struct { - IP string `json:"ip,omitempty"` - Port string `json:"port,omitempty"` - PortType string `json:"portType,omitempty"` - SSL bool `json:"ssl,omitempty"` + IP string `json:"ip,omitempty"` + Port json.Number `json:"port,Number,omitempty"` + PortType string `json:"portType,omitempty"` + SSL bool `json:"ssl,omitempty"` }