MCPcopy Index your code
hub / github.com/coder/coder / protoDurationNil

Function protoDurationNil

coderd/telemetry/telemetry.go:2121–2127  ·  view source on GitHub ↗
(d *durationpb.Duration)

Source from the content-addressed store, hash-verified

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

Callers 1

NetworkEventFromProtoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected