Skip to content

Commit 52c0246

Browse files
umbynoscmaglie
authored andcommitted
refactored PortDescriptor to include also the protocol name
1 parent b9bc502 commit 52c0246

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

message.go

+6-1
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,13 @@ type message struct {
2525
PortDescription *PortDescriptor `json:"port_description,omitempty"`
2626
}
2727

28-
type PortDescriptor map[string]*PortParameterDescriptor
28+
// 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+
}
2933

34+
// PortParameterDescriptor contains characteristics for every parameter
3035
type PortParameterDescriptor struct {
3136
Label string `json:"label,omitempty"`
3237
Type string `json:"type,omitempty"`

0 commit comments

Comments
 (0)