Endpoint returns the service method transport data for the endpoint with the given name, nil if there isn't one.
(name string)
| 605 | // Endpoint returns the service method transport data for the endpoint with the |
| 606 | // given name, nil if there isn't one. |
| 607 | func (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. |
no outgoing calls
no test coverage detected