package
2.2.4+incompatible
Repository: https://github.com/goadesign/examples.git
Documentation: pkg.go.dev

# Functions

NewAlsoDoublySecureEndpoint returns an endpoint function that calls the method "also_doubly_secure" of service "secured_service".
NewClient initializes a "secured_service" service client given the endpoints.
NewDoublySecureEndpoint returns an endpoint function that calls the method "doubly_secure" of service "secured_service".
NewEndpoints wraps the methods of the "secured_service" service with endpoints.
NewSecureEndpoint returns an endpoint function that calls the method "secure" of service "secured_service".
NewSigninEndpoint returns an endpoint function that calls the method "signin" of service "secured_service".

# Constants

ServiceName is the name of the service as defined in the design.

# Variables

MethodNames lists the service method names as defined in the design.

# Structs

AlsoDoublySecurePayload is the payload type of the secured_service service also_doubly_secure method.
Client is the "secured_service" service client.
Creds is the result type of the secured_service service signin method.
DoublySecurePayload is the payload type of the secured_service service doubly_secure method.
Endpoints wraps the "secured_service" service endpoints.
SecurePayload is the payload type of the secured_service service secure method.
Credentials used to authenticate to retrieve JWT token.

# Interfaces

Auther defines the authorization functions to be implemented by the service.
The secured service exposes endpoints that require valid authorization credentials.

# Type aliases

Token scopes are invalid.
Credentials are invalid.