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

Function ipFieldsFromProto

coderd/telemetry/telemetry.go:1880–1888  ·  view source on GitHub ↗
(proto *tailnetproto.IPFields)

Source from the content-addressed store, hash-verified

1878}
1879
1880func ipFieldsFromProto(proto *tailnetproto.IPFields) NetworkEventIPFields {
1881 if proto == nil {
1882 return NetworkEventIPFields{}
1883 }
1884 return NetworkEventIPFields{
1885 Version: proto.Version,
1886 Class: strings.ToLower(proto.Class.String()),
1887 }
1888}
1889
1890type NetworkEventP2PEndpoint struct {
1891 Hash string `json:"hash"`

Callers 2

p2pEndpointFromProtoFunction · 0.85
netcheckIPFromProtoFunction · 0.85

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected