Goa Endpoint
The endpoint abstraction represents a single RPC method in your service. An
endpoint may be created server side to represent a method that the service
implements, or client side to represent a method that the client calls. In both
cases, an endpoint can be represented by the goa.Endpoint
function.
Endpoint Client
Continuing with our calc
example: Goa generates a transport-agnostic client
struct in gen/calc/client.go
. This struct contains the client-side endpoints
and provides typed methods to make service requests. The generated client code
looks like this: