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

Function IsDRPCUnimplementedError

tailnet/controllers.go:803–807  ·  view source on GitHub ↗

IsDRPCUnimplementedError returns true if the error indicates the RPC called is not implemented by the server.

(err error)

Source from the content-addressed store, hash-verified

801// IsDRPCUnimplementedError returns true if the error indicates the RPC called is not implemented
802// by the server.
803func IsDRPCUnimplementedError(err error) bool {
804 return drpcerr.Code(err) == drpcerr.Unimplemented ||
805 drpc.ProtocolError.Has(err) &&
806 strings.Contains(err.Error(), "unknown rpc: ")
807}
808
809type basicResumeTokenController struct {
810 logger slog.Logger

Callers 2

sendTelemetryFunction · 0.85
refreshMethod · 0.85

Calls 3

HasMethod · 0.45
ContainsMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected