fix: format output parameters

This commit is contained in:
Daniel Ding
2024-01-23 10:42:20 +08:00
parent 4d76ae91af
commit 430cf1c5d8
9 changed files with 131 additions and 128 deletions

View File

@@ -119,12 +119,13 @@ func NewNetworkSchema(n *Network) schema.Network {
func NewOutputSchema(o *Output) schema.Output {
return schema.Output{
Network: o.Network,
Protocol: o.Protocol,
Connection: o.Connection,
Device: o.Device,
RxBytes: o.RxBytes,
TxBytes: o.TxBytes,
AliveTime: o.UpTime(),
Network: o.Network,
Protocol: o.Protocol,
Remote: o.Remote,
Segment: o.Segment,
Device: o.Device,
RxBytes: o.RxBytes,
TxBytes: o.TxBytes,
AliveTime: o.UpTime(),
}
}