We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9bc502 commit 52c0246Copy full SHA for 52c0246
message.go
@@ -25,8 +25,13 @@ type message struct {
25
PortDescription *PortDescriptor `json:"port_description,omitempty"`
26
}
27
28
-type PortDescriptor map[string]*PortParameterDescriptor
+// PortDescriptor is a struct to describe the characteristic of a port
29
+type PortDescriptor struct {
30
+ Protocol string `json:"protocol,omitempty"`
31
+ ConfigurationParameter map[string]*PortParameterDescriptor `json:"configuration_parameters,omitempty"`
32
+}
33
34
+// PortParameterDescriptor contains characteristics for every parameter
35
type PortParameterDescriptor struct {
36
Label string `json:"label,omitempty"`
37
Type string `json:"type,omitempty"`
0 commit comments