Documentation ¶
Index ¶
Constants ¶
View Source
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 ¶
View Source
var MethodNames = [1]string{"add"}
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 NewAddEndpoint ¶
NewAddEndpoint returns an endpoint function that calls the method "add" of service "calc".
Types ¶
type AddPayload ¶
AddPayload is the payload type of the calc service add method.
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.
Click to show internal directories.
Click to hide internal directories.