server

package
v2.2.4+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2020 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeAlsoDoublySecureRequest

func DecodeAlsoDoublySecureRequest(ctx context.Context, v interface{}, md metadata.MD) (interface{}, error)

DecodeAlsoDoublySecureRequest decodes requests sent to "secured_service" service "also_doubly_secure" endpoint.

func DecodeDoublySecureRequest

func DecodeDoublySecureRequest(ctx context.Context, v interface{}, md metadata.MD) (interface{}, error)

DecodeDoublySecureRequest decodes requests sent to "secured_service" service "doubly_secure" endpoint.

func DecodeSecureRequest

func DecodeSecureRequest(ctx context.Context, v interface{}, md metadata.MD) (interface{}, error)

DecodeSecureRequest decodes requests sent to "secured_service" service "secure" endpoint.

func DecodeSigninRequest

func DecodeSigninRequest(ctx context.Context, v interface{}, md metadata.MD) (interface{}, error)

DecodeSigninRequest decodes requests sent to "secured_service" service "signin" endpoint.

func EncodeAlsoDoublySecureResponse

func EncodeAlsoDoublySecureResponse(ctx context.Context, v interface{}, hdr, trlr *metadata.MD) (interface{}, error)

EncodeAlsoDoublySecureResponse encodes responses from the "secured_service" service "also_doubly_secure" endpoint.

func EncodeDoublySecureResponse

func EncodeDoublySecureResponse(ctx context.Context, v interface{}, hdr, trlr *metadata.MD) (interface{}, error)

EncodeDoublySecureResponse encodes responses from the "secured_service" service "doubly_secure" endpoint.

func EncodeSecureResponse

func EncodeSecureResponse(ctx context.Context, v interface{}, hdr, trlr *metadata.MD) (interface{}, error)

EncodeSecureResponse encodes responses from the "secured_service" service "secure" endpoint.

func EncodeSigninResponse

func EncodeSigninResponse(ctx context.Context, v interface{}, hdr, trlr *metadata.MD) (interface{}, error)

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 NewAlsoDoublySecureResponse

func NewAlsoDoublySecureResponse(result string) *secured_servicepb.AlsoDoublySecureResponse

NewAlsoDoublySecureResponse builds the gRPC response type from the result of the "also_doubly_secure" endpoint of the "secured_service" service.

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 NewDoublySecureResponse

func NewDoublySecureResponse(result string) *secured_servicepb.DoublySecureResponse

NewDoublySecureResponse builds the gRPC response type from the result of the "doubly_secure" 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 NewSecureResponse

func NewSecureResponse(result string) *secured_servicepb.SecureResponse

NewSecureResponse builds the gRPC response type from the result of the "secure" endpoint of the "secured_service" service.

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.

func NewSigninResponse

func NewSigninResponse(result *securedservice.Creds) *secured_servicepb.SigninResponse

NewSigninResponse builds the gRPC response type from the result of the "signin" endpoint of the "secured_service" service.

Types

type ErrorNamer

type ErrorNamer interface {
	ErrorName() string
}

ErrorNamer is an interface implemented by generated error structs that exposes the name of the error as defined in the expr.

type Server

type Server struct {
	SigninH           goagrpc.UnaryHandler
	SecureH           goagrpc.UnaryHandler
	DoublySecureH     goagrpc.UnaryHandler
	AlsoDoublySecureH goagrpc.UnaryHandler
}

Server implements the secured_servicepb.SecuredServiceServer interface.

func New

New instantiates the server struct with the secured_service service endpoints.

func (*Server) AlsoDoublySecure

AlsoDoublySecure implements the "AlsoDoublySecure" method in secured_servicepb.SecuredServiceServer interface.

func (*Server) DoublySecure

DoublySecure implements the "DoublySecure" method in secured_servicepb.SecuredServiceServer interface.

func (*Server) Secure

Secure implements the "Secure" method in secured_servicepb.SecuredServiceServer interface.

func (*Server) Signin

Signin implements the "Signin" method in secured_servicepb.SecuredServiceServer interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL