Packet is one raw packet and its metadata.
| 48 | |
| 49 | // Packet is one raw packet and its metadata. |
| 50 | type Packet struct { |
| 51 | Timestamp time.Time |
| 52 | Length int |
| 53 | Bytes []byte |
| 54 | } |
| 55 | |
| 56 | // NewReader returns a new Reader that decodes pcap data from r. |
| 57 | func NewReader(r io.Reader) (*Reader, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected