mirror of
https://github.com/luscis/openlan.git
synced 2025-10-12 20:10:08 +08:00
fix: format output parameters
This commit is contained in:
@@ -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(),
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user