MCPcopy Index your code
hub / github.com/cloudflare/cloudflared / serverRegistrationErrorFromRPC

Function serverRegistrationErrorFromRPC

connection/errors.go:42–53  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

40}
41
42func serverRegistrationErrorFromRPC(err error) ServerRegisterTunnelError {
43 if retryable, ok := err.(*tunnelpogs.RetryableError); ok {
44 return ServerRegisterTunnelError{
45 Cause: retryable.Unwrap(),
46 Permanent: false,
47 }
48 }
49 return ServerRegisterTunnelError{
50 Cause: err,
51 Permanent: true,
52 }
53}
54
55type ControlStreamError struct{}
56

Callers 1

ServeControlStreamMethod · 0.85

Calls 1

UnwrapMethod · 0.45

Tested by

no test coverage detected