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

Method Endpoint

http/codegen/service_data.go:607–614  ·  view source on GitHub ↗

Endpoint returns the service method transport data for the endpoint with the given name, nil if there isn't one.

(name string)

Source from the content-addressed store, hash-verified

605// Endpoint returns the service method transport data for the endpoint with the
606// given name, nil if there isn't one.
607func (svc *ServiceData) Endpoint(name string) *EndpointData {
608 for _, e := range svc.Endpoints {
609 if e.Method.Name == name {
610 return e
611 }
612 }
613 return nil
614}
615
616// analyze creates the data necessary to render the code of the given service.
617// It records the user types needed by the service definition in userTypes.

Callers 3

clientTypeFunction · 0.45
pathSectionsFunction · 0.45
serverTypeFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected