client

package
v0.0.0-...-5107ef3 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildSecureFunc

func BuildSecureFunc(grpccli secured_servicepb.SecuredServiceClient, cliopts ...grpc.CallOption) goagrpc.RemoteFunc

BuildSecureFunc builds the remote method to invoke for "secured_service" service "secure" endpoint.

func BuildSecurePayload

func BuildSecurePayload(securedServiceSecureMessage string, securedServiceSecureToken string) (*securedservice.SecurePayload, error)

BuildSecurePayload builds the payload for the secured_service secure endpoint from CLI flags.

func BuildSigninFunc

func BuildSigninFunc(grpccli secured_servicepb.SecuredServiceClient, cliopts ...grpc.CallOption) goagrpc.RemoteFunc

BuildSigninFunc builds the remote method to invoke for "secured_service" service "signin" endpoint.

func BuildSigninPayload

func BuildSigninPayload(securedServiceSigninUsername string, securedServiceSigninPassword string) (*securedservice.SigninPayload, error)

BuildSigninPayload builds the payload for the secured_service signin endpoint from CLI flags.

func DecodeSecureResponse

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

DecodeSecureResponse decodes responses from the secured_service secure endpoint.

func DecodeSigninResponse

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

DecodeSigninResponse decodes responses from the secured_service signin endpoint.

func EncodeSecureRequest

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

EncodeSecureRequest encodes requests sent to secured_service secure endpoint.

func EncodeSigninRequest

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

EncodeSigninRequest encodes requests sent to secured_service signin endpoint.

func NewSecureRequest

func NewSecureRequest(payload *securedservice.SecurePayload) *secured_servicepb.SecureRequest

NewSecureRequest builds the gRPC request type from the payload of the "secure" endpoint of the "secured_service" service.

func NewSecureResult

func NewSecureResult(message *secured_servicepb.SecureResponse) string

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

func NewSigninRequest

func NewSigninRequest() *secured_servicepb.SigninRequest

NewSigninRequest builds the gRPC request type from the payload of the "signin" endpoint of the "secured_service" service.

func NewSigninResult

func NewSigninResult(message *secured_servicepb.SigninResponse) *securedservice.Creds

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

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client lists the service endpoint gRPC clients.

func NewClient

func NewClient(cc *grpc.ClientConn, opts ...grpc.CallOption) *Client

NewClient instantiates gRPC client for all the secured_service service servers.

func (*Client) Secure

func (c *Client) Secure() goa.Endpoint

Secure calls the "Secure" function in secured_servicepb.SecuredServiceClient interface.

func (*Client) Signin

func (c *Client) Signin() goa.Endpoint

Signin calls the "Signin" function in secured_servicepb.SecuredServiceClient interface.

Jump to

Keyboard shortcuts

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