diff --git a/agent/pkg/models/models.go b/agent/pkg/models/models.go index 54bc9b7aa..c7bb5b650 100644 --- a/agent/pkg/models/models.go +++ b/agent/pkg/models/models.go @@ -12,10 +12,6 @@ import ( "github.com/up9inc/mizu/tap" ) -func GetEntry(r *tapApi.Entry, v tapApi.DataUnmarshaler) error { - return v.UnmarshalData(r) -} - type TapConfig struct { TappedNamespaces map[string]bool `json:"tappedNamespaces"` } diff --git a/tap/api/api.go b/tap/api/api.go index 26bfa0b4f..900fe0c61 100644 --- a/tap/api/api.go +++ b/tap/api/api.go @@ -188,21 +188,6 @@ type Contract struct { Content string `json:"content"` } -type DataUnmarshaler interface { - UnmarshalData(*Entry) error -} - -func (bed *BaseEntry) UnmarshalData(entry *Entry) error { - bed.Protocol = entry.Protocol - bed.Id = entry.Id - bed.Timestamp = entry.Timestamp - bed.Source = entry.Source - bed.Destination = entry.Destination - bed.Latency = entry.ElapsedTime - bed.ContractStatus = entry.ContractStatus - return nil -} - const ( TABLE string = "table" BODY string = "body"