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

Method Finalize

expr/root.go:328–341  ·  view source on GitHub ↗

Finalize finalizes the server expressions.

()

Source from the content-addressed store, hash-verified

326
327// Finalize finalizes the server expressions.
328func (r *RootExpr) Finalize() {
329 if r.API == nil {
330 r.API = &APIExpr{}
331 }
332 if len(r.API.Servers) == 0 {
333 r.API.Servers = []*ServerExpr{r.API.DefaultServer()}
334 }
335 for _, e := range r.Errors {
336 e.Finalize()
337 }
338 for _, s := range r.API.Servers {
339 s.Finalize()
340 }
341}
342
343// walkHTTPServices walks the HTTP services and endpoints.
344func (r *RootExpr) walkHTTPServices(svcs []*HTTPServiceExpr, walk eval.SetWalker) {

Callers

nothing calls this directly

Calls 2

DefaultServerMethod · 0.80
FinalizeMethod · 0.65

Tested by

no test coverage detected