net/flowtrack: add json tags to Tuple (#5849)

By convention, JSON serialization uses camelCase.
Specify such names on the Tuple type.

Signed-off-by: Joe Tsai <joetsai@digital-static.net>
pull/5858/head
Joe Tsai 2 years ago committed by GitHub
parent a73c423c8a
commit dd045a3767
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -20,9 +20,9 @@ import (
// Tuple is a 5-tuple of proto, source and destination IP and port.
type Tuple struct {
Proto ipproto.Proto
Src netip.AddrPort
Dst netip.AddrPort
Proto ipproto.Proto `json:"proto"`
Src netip.AddrPort `json:"src"`
Dst netip.AddrPort `json:"dst"`
}
func (t Tuple) String() string {

Loading…
Cancel
Save