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

Method Endpoint

grpc/codegen/service_data.go:439–446  ·  view source on GitHub ↗

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

(name string)

Source from the content-addressed store, hash-verified

437// Endpoint returns the endpoint data for the endpoint with the given name, nil
438// if there isn't one.
439func (sd *ServiceData) Endpoint(name string) *EndpointData {
440 for _, ed := range sd.Endpoints {
441 if ed.Method.Name == name {
442 return ed
443 }
444 }
445 return nil
446}
447
448// HasUnaryEndpoint returns true if the service has at least one unary endpoint.
449func (sd *ServiceData) HasUnaryEndpoint() bool {

Callers 3

clientTypeFunction · 0.45
buildStreamDataMethod · 0.45
serverTypeFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected