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

Function URI

dsl/server.go:156–163  ·  view source on GitHub ↗

URI defines a server host URI. A single host may define multiple URIs. The supported schemes are 'http', 'https', 'grpc' and 'grpcs' where 'grpcs' indicates gRPC using client-side SSL/TLS. gRPC URIs may only define the authority component (in particular no path). URIs may be parameterized using the

(uri string)

Source from the content-addressed store, hash-verified

154// })
155// })
156func URI(uri string) {
157 h, ok := eval.Current().(*expr.HostExpr)
158 if !ok {
159 eval.IncompatibleDSL()
160 return
161 }
162 h.URIs = append(h.URIs, expr.URIExpr(uri))
163}
164
165// Variable defines a server host URI variable.
166//

Calls 3

CurrentFunction · 0.92
IncompatibleDSLFunction · 0.92
URIExprTypeAlias · 0.92