client

package
v0.0.0-...-63cd2eb Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildDivideFunc

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

BuildDivideFunc builds the remote method to invoke for "calc" service "divide" endpoint.

func BuildDividePayload

func BuildDividePayload(calcDivideMessage string) (*calc.DividePayload, error)

BuildDividePayload builds the payload for the calc divide endpoint from CLI flags.

func DecodeDivideResponse

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

DecodeDivideResponse decodes responses from the calc divide endpoint.

func EncodeDivideRequest

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

EncodeDivideRequest encodes requests sent to calc divide endpoint.

func NewDivideDivByZeroError

func NewDivideDivByZeroError(message *calcpb.DivideDivByZeroError) *calc.DivByZero

NewDivideDivByZeroError builds the error type of the "divide" endpoint of the "calc" service from the gRPC error response type.

func NewDivideResult

func NewDivideResult(message *calcpb.DivideResponse) *calc.DivideResult

NewDivideResult builds the result type of the "divide" endpoint of the "calc" service from the gRPC response type.

func NewProtoDivideRequest

func NewProtoDivideRequest(payload *calc.DividePayload) *calcpb.DivideRequest

NewProtoDivideRequest builds the gRPC request type from the payload of the "divide" endpoint of the "calc" service.

Types

type Client

type Client struct {
	// contains filtered or unexported fields

} // NewClient instantiates gRPC client for all the calc service servers.

Client lists the service endpoint gRPC clients.

func NewClient

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

func (*Client) Divide

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

Jump to

Keyboard shortcuts

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