client

package
v0.0.0-...-5a969d9 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildMultiplyFunc

func BuildMultiplyFunc(grpccli calcpb.CalcClient, cliopts ...grpc.CallOption) goagrpc.RemoteFunc

BuildMultiplyFunc builds the remote method to invoke for "calc" service "multiply" endpoint.

func BuildMultiplyPayload

func BuildMultiplyPayload(calcMultiplyMessage string) (*calc.MultiplyPayload, error)

BuildMultiplyPayload builds the payload for the calc multiply endpoint from CLI flags.

func DecodeMultiplyResponse

func DecodeMultiplyResponse(ctx context.Context, v any, hdr, trlr metadata.MD) (any, error)

DecodeMultiplyResponse decodes responses from the calc multiply endpoint.

func EncodeMultiplyRequest

func EncodeMultiplyRequest(ctx context.Context, v any, md *metadata.MD) (any, error)

EncodeMultiplyRequest encodes requests sent to calc multiply endpoint.

func NewMultiplyResult

func NewMultiplyResult(message *calcpb.MultiplyResponse) int

NewMultiplyResult builds the result type of the "multiply" endpoint of the "calc" service from the gRPC response type.

func NewProtoMultiplyRequest

func NewProtoMultiplyRequest(payload *calc.MultiplyPayload) *calcpb.MultiplyRequest

NewProtoMultiplyRequest builds the gRPC request type from the payload of the "multiply" endpoint of the "calc" service.

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 calc service servers.

func (*Client) Multiply

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

Multiply calls the "Multiply" function in calcpb.CalcClient interface.

Jump to

Keyboard shortcuts

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