MCPcopy
hub / github.com/google/gopacket / PacketSourceResolution

Interface PacketSourceResolution

time.go:69–72  ·  view source on GitHub ↗

PacketSourceResolution is an interface for packet data sources that support reporting the timestamp resolution of the aqcuired timestamps. Returned timestamps will always have NanosecondTimestampResolution due to the use of time.Time, but scaling might have occured if acquired timestamps have a diff

Source from the content-addressed store, hash-verified

67// to the use of time.Time, but scaling might have occured if acquired
68// timestamps have a different resolution.
69type PacketSourceResolution interface {
70 // Resolution returns the timestamp resolution of acquired timestamps before scaling to NanosecondTimestampResolution.
71 Resolution() TimestampResolution
72}

Callers 1

ResolutionMethod · 0.65

Implementers 4

Handlepcap/pcap.go
NgInterfacepcapgo/pcapng.go
NgReaderpcapgo/ngread.go
Readerpcapgo/read.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…