Documentation ¶
Index ¶
Constants ¶
const ServiceName = "Auth"
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 = [2]string{"Login", "Logout"}
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 NewLoginEndpoint ¶
NewLoginEndpoint returns an endpoint function that calls the method "Login" of service "Auth".
func NewLogoutEndpoint ¶
NewLogoutEndpoint returns an endpoint function that calls the method "Logout" of service "Auth".
Types ¶
type Client ¶
Client is the "Auth" service client.
type Endpoints ¶
Endpoints wraps the "Auth" service endpoints.
func NewEndpoints ¶
NewEndpoints wraps the methods of the "Auth" service with endpoints.
type LoginPayload ¶
LoginPayload is the payload type of the Auth service Login method.