(d *durationpb.Duration)
| 2119 | } |
| 2120 | |
| 2121 | func protoDurationNil(d *durationpb.Duration) *time.Duration { |
| 2122 | if d == nil { |
| 2123 | return nil |
| 2124 | } |
| 2125 | dur := d.AsDuration() |
| 2126 | return &dur |
| 2127 | } |
| 2128 | |
| 2129 | func NetworkEventFromProto(proto *tailnetproto.TelemetryEvent) (NetworkEvent, error) { |
| 2130 | if proto == nil { |
no outgoing calls
no test coverage detected