Skip to content

Commit 4b8d365

Browse files
fixup mapper
1 parent be4389e commit 4b8d365

File tree

1 file changed

+21
-0
lines changed
  • internal/cli/feedback/result

1 file changed

+21
-0
lines changed

internal/cli/feedback/result/rpc.go

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -790,3 +790,24 @@ func NewSearchedLibrary(l *rpc.SearchedLibrary) *SearchedLibrary {
790790
AvailableVersions: l.GetAvailableVersions(),
791791
}
792792
}
793+
794+
type MonitorPortSettingDescriptor struct {
795+
SettingId string `json:"setting_id,omitempty"`
796+
Label string `json:"label,omitempty"`
797+
Type string `json:"type,omitempty"`
798+
EnumValues []string `json:"enum_values,omitempty"`
799+
Value string `json:"value,omitempty"`
800+
}
801+
802+
func NewMonitorPortSettingDescriptor(m *rpc.MonitorPortSettingDescriptor) *MonitorPortSettingDescriptor {
803+
if m == nil {
804+
return nil
805+
}
806+
return &MonitorPortSettingDescriptor{
807+
SettingId: m.GetSettingId(),
808+
Label: m.GetLabel(),
809+
Type: m.GetType(),
810+
EnumValues: m.GetEnumValues(),
811+
Value: m.GetValue(),
812+
}
813+
}

0 commit comments

Comments
 (0)