Documentation ¶
Index ¶
- func DecodeAlsoDoublySecureRequest(ctx context.Context, v any, md metadata.MD) (any, error)
- func DecodeDoublySecureRequest(ctx context.Context, v any, md metadata.MD) (any, error)
- func DecodeSecureRequest(ctx context.Context, v any, md metadata.MD) (any, error)
- func DecodeSigninRequest(ctx context.Context, v any, md metadata.MD) (any, error)
- func EncodeAlsoDoublySecureResponse(ctx context.Context, v any, hdr, trlr *metadata.MD) (any, error)
- func EncodeDoublySecureResponse(ctx context.Context, v any, hdr, trlr *metadata.MD) (any, error)
- func EncodeSecureResponse(ctx context.Context, v any, hdr, trlr *metadata.MD) (any, error)
- func EncodeSigninResponse(ctx context.Context, v any, hdr, trlr *metadata.MD) (any, error)
- func NewAlsoDoublySecureHandler(endpoint goa.Endpoint, h goagrpc.UnaryHandler) goagrpc.UnaryHandler
- func NewAlsoDoublySecurePayload(message *secured_servicepb.AlsoDoublySecureRequest, oauthToken *string, ...) *securedservice.AlsoDoublySecurePayload
- func NewDoublySecureHandler(endpoint goa.Endpoint, h goagrpc.UnaryHandler) goagrpc.UnaryHandler
- func NewDoublySecurePayload(message *secured_servicepb.DoublySecureRequest, token string) *securedservice.DoublySecurePayload
- func NewProtoAlsoDoublySecureResponse(result string) *secured_servicepb.AlsoDoublySecureResponse
- func NewProtoDoublySecureResponse(result string) *secured_servicepb.DoublySecureResponse
- func NewProtoSecureResponse(result string) *secured_servicepb.SecureResponse
- func NewProtoSigninResponse(result *securedservice.Creds) *secured_servicepb.SigninResponse
- func NewSecureHandler(endpoint goa.Endpoint, h goagrpc.UnaryHandler) goagrpc.UnaryHandler
- func NewSecurePayload(message *secured_servicepb.SecureRequest, token string) *securedservice.SecurePayload
- func NewSigninHandler(endpoint goa.Endpoint, h goagrpc.UnaryHandler) goagrpc.UnaryHandler
- func NewSigninPayload(username string, password string) *securedservice.SigninPayload
- type Server
- func (s *Server) AlsoDoublySecure(ctx context.Context, message *secured_servicepb.AlsoDoublySecureRequest) (*secured_servicepb.AlsoDoublySecureResponse, error)
- func (s *Server) DoublySecure(ctx context.Context, message *secured_servicepb.DoublySecureRequest) (*secured_servicepb.DoublySecureResponse, error)
- func (s *Server) Secure(ctx context.Context, message *secured_servicepb.SecureRequest) (*secured_servicepb.SecureResponse, error)
- func (s *Server) Signin(ctx context.Context, message *secured_servicepb.SigninRequest) (*secured_servicepb.SigninResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeAlsoDoublySecureRequest ¶
DecodeAlsoDoublySecureRequest decodes requests sent to "secured_service" service "also_doubly_secure" endpoint.
func DecodeDoublySecureRequest ¶
DecodeDoublySecureRequest decodes requests sent to "secured_service" service "doubly_secure" endpoint.
func DecodeSecureRequest ¶
DecodeSecureRequest decodes requests sent to "secured_service" service "secure" endpoint.
func DecodeSigninRequest ¶
DecodeSigninRequest decodes requests sent to "secured_service" service "signin" endpoint.
func EncodeAlsoDoublySecureResponse ¶
func EncodeAlsoDoublySecureResponse(ctx context.Context, v any, hdr, trlr *metadata.MD) (any, error)
EncodeAlsoDoublySecureResponse encodes responses from the "secured_service" service "also_doubly_secure" endpoint.
func EncodeDoublySecureResponse ¶
EncodeDoublySecureResponse encodes responses from the "secured_service" service "doubly_secure" endpoint.
func EncodeSecureResponse ¶
EncodeSecureResponse encodes responses from the "secured_service" service "secure" endpoint.
func EncodeSigninResponse ¶
EncodeSigninResponse encodes responses from the "secured_service" service "signin" endpoint.
func NewAlsoDoublySecureHandler ¶
func NewAlsoDoublySecureHandler(endpoint goa.Endpoint, h goagrpc.UnaryHandler) goagrpc.UnaryHandler
NewAlsoDoublySecureHandler creates a gRPC handler which serves the "secured_service" service "also_doubly_secure" endpoint.
func NewAlsoDoublySecurePayload ¶
func NewAlsoDoublySecurePayload(message *secured_servicepb.AlsoDoublySecureRequest, oauthToken *string, token *string) *securedservice.AlsoDoublySecurePayload
NewAlsoDoublySecurePayload builds the payload of the "also_doubly_secure" endpoint of the "secured_service" service from the gRPC request type.
func NewDoublySecureHandler ¶
func NewDoublySecureHandler(endpoint goa.Endpoint, h goagrpc.UnaryHandler) goagrpc.UnaryHandler
NewDoublySecureHandler creates a gRPC handler which serves the "secured_service" service "doubly_secure" endpoint.
func NewDoublySecurePayload ¶
func NewDoublySecurePayload(message *secured_servicepb.DoublySecureRequest, token string) *securedservice.DoublySecurePayload
NewDoublySecurePayload builds the payload of the "doubly_secure" endpoint of the "secured_service" service from the gRPC request type.
func NewProtoAlsoDoublySecureResponse ¶
func NewProtoAlsoDoublySecureResponse(result string) *secured_servicepb.AlsoDoublySecureResponse
NewProtoAlsoDoublySecureResponse builds the gRPC response type from the result of the "also_doubly_secure" endpoint of the "secured_service" service.
func NewProtoDoublySecureResponse ¶
func NewProtoDoublySecureResponse(result string) *secured_servicepb.DoublySecureResponse
NewProtoDoublySecureResponse builds the gRPC response type from the result of the "doubly_secure" endpoint of the "secured_service" service.
func NewProtoSecureResponse ¶
func NewProtoSecureResponse(result string) *secured_servicepb.SecureResponse
NewProtoSecureResponse builds the gRPC response type from the result of the "secure" endpoint of the "secured_service" service.
func NewProtoSigninResponse ¶
func NewProtoSigninResponse(result *securedservice.Creds) *secured_servicepb.SigninResponse
NewProtoSigninResponse builds the gRPC response type from the result of the "signin" endpoint of the "secured_service" service.
func NewSecureHandler ¶
func NewSecureHandler(endpoint goa.Endpoint, h goagrpc.UnaryHandler) goagrpc.UnaryHandler
NewSecureHandler creates a gRPC handler which serves the "secured_service" service "secure" endpoint.
func NewSecurePayload ¶
func NewSecurePayload(message *secured_servicepb.SecureRequest, token string) *securedservice.SecurePayload
NewSecurePayload builds the payload of the "secure" endpoint of the "secured_service" service from the gRPC request type.
func NewSigninHandler ¶
func NewSigninHandler(endpoint goa.Endpoint, h goagrpc.UnaryHandler) goagrpc.UnaryHandler
NewSigninHandler creates a gRPC handler which serves the "secured_service" service "signin" endpoint.
func NewSigninPayload ¶
func NewSigninPayload(username string, password string) *securedservice.SigninPayload
NewSigninPayload builds the payload of the "signin" endpoint of the "secured_service" service from the gRPC request type.
Types ¶
type Server ¶
type Server struct { SigninH goagrpc.UnaryHandler SecureH goagrpc.UnaryHandler DoublySecureH goagrpc.UnaryHandler AlsoDoublySecureH goagrpc.UnaryHandler secured_servicepb.UnimplementedSecuredServiceServer }
Server implements the secured_servicepb.SecuredServiceServer interface.
func New ¶
func New(e *securedservice.Endpoints, uh goagrpc.UnaryHandler) *Server
New instantiates the server struct with the secured_service service endpoints.
func (*Server) AlsoDoublySecure ¶
func (s *Server) AlsoDoublySecure(ctx context.Context, message *secured_servicepb.AlsoDoublySecureRequest) (*secured_servicepb.AlsoDoublySecureResponse, error)
AlsoDoublySecure implements the "AlsoDoublySecure" method in secured_servicepb.SecuredServiceServer interface.
func (*Server) DoublySecure ¶
func (s *Server) DoublySecure(ctx context.Context, message *secured_servicepb.DoublySecureRequest) (*secured_servicepb.DoublySecureResponse, error)
DoublySecure implements the "DoublySecure" method in secured_servicepb.SecuredServiceServer interface.
func (*Server) Secure ¶
func (s *Server) Secure(ctx context.Context, message *secured_servicepb.SecureRequest) (*secured_servicepb.SecureResponse, error)
Secure implements the "Secure" method in secured_servicepb.SecuredServiceServer interface.
func (*Server) Signin ¶
func (s *Server) Signin(ctx context.Context, message *secured_servicepb.SigninRequest) (*secured_servicepb.SigninResponse, error)
Signin implements the "Signin" method in secured_servicepb.SecuredServiceServer interface.