Documentation ¶
Index ¶
Constants ¶
const APIName = "calc"
APIName is the name of the API as defined in the design.
const APIVersion = "0.0.1"
APIVersion is the version of the API as defined in the design.
const ServiceName = "calc"
ServiceName is the name of the service as defined in the design. This is the same value that is set in the endpoint request contexts under the ServiceKey key.
Variables ¶
var MethodNames = [1]string{"multiply"}
MethodNames lists the service method names as defined in the design. These are the same values that are set in the endpoint request contexts under the MethodKey key.
Functions ¶
func NewMultiplyEndpoint ¶
NewMultiplyEndpoint returns an endpoint function that calls the method "multiply" of service "calc".
Types ¶
type Client ¶
Client is the "calc" service client.
type Endpoints ¶
Endpoints wraps the "calc" service endpoints.
func NewEndpoints ¶
NewEndpoints wraps the methods of the "calc" service with endpoints.
type MultiplyPayload ¶
MultiplyPayload is the payload type of the calc service multiply method.