Documentation ¶
Index ¶
Constants ¶
const ServiceName = "default_service"
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{"default"}
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 NewDefaultEndpoint ¶
func NewDefaultEndpoint(s Service, authBasicFn security.AuthBasicFunc) goa.Endpoint
NewDefaultEndpoint returns an endpoint function that calls the method "default" of service "default_service".
Types ¶
type Auther ¶
type Auther interface { // BasicAuth implements the authorization logic for the Basic security scheme. BasicAuth(ctx context.Context, user, pass string, schema *security.BasicScheme) (context.Context, error) }
Auther defines the authorization functions to be implemented by the service.
type Client ¶
Client is the "default_service" service client.
type DefaultPayload ¶
DefaultPayload is the payload type of the default_service service default method.
type Endpoints ¶
Endpoints wraps the "default_service" service endpoints.
func NewEndpoints ¶
NewEndpoints wraps the methods of the "default_service" service with endpoints.