MCPcopy Create free account
hub / github.com/goadesign/goa / HasGRPCScheme

Method HasGRPCScheme

expr/server.go:221–228  ·  view source on GitHub ↗

HasGRPCScheme returns true if at least one of the URIs in the host expression define "grpc" or "grpcs" scheme.

()

Source from the content-addressed store, hash-verified

219// HasGRPCScheme returns true if at least one of the URIs in the host
220// expression define "grpc" or "grpcs" scheme.
221func (h *HostExpr) HasGRPCScheme() bool {
222 for _, s := range []string{"grpc", "grpcs"} {
223 if slices.Contains(h.Schemes(), s) {
224 return true
225 }
226 }
227 return false
228}
229
230// URIString returns a valid URI string by substituting the parameters with
231// their default value if present or the first item in their enum. It returns

Callers 1

FinalizeMethod · 0.80

Calls 1

SchemesMethod · 0.95

Tested by

no test coverage detected