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

Method EvalName

expr/http_file_server.go:31–38  ·  view source on GitHub ↗

EvalName returns the generic definition name used in error messages.

()

Source from the content-addressed store, hash-verified

29
30// EvalName returns the generic definition name used in error messages.
31func (f *HTTPFileServerExpr) EvalName() string {
32 suffix := fmt.Sprintf("file server %s", f.FilePath)
33 var prefix string
34 if f.Service != nil {
35 prefix = f.Service.EvalName() + " "
36 }
37 return prefix + suffix
38}
39
40// Finalize normalizes the request path.
41func (f *HTTPFileServerExpr) Finalize() {

Callers

nothing calls this directly

Calls 1

EvalNameMethod · 0.65

Tested by

no test coverage detected