client

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildDivideFunc

func BuildDivideFunc(grpccli dividerpb.DividerClient, cliopts ...grpc.CallOption) goagrpc.RemoteFunc

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

func BuildDividePayload

func BuildDividePayload(dividerDivideMessage string) (*divider.FloatOperands, error)

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

func BuildIntegerDivideFunc

func BuildIntegerDivideFunc(grpccli dividerpb.DividerClient, cliopts ...grpc.CallOption) goagrpc.RemoteFunc

BuildIntegerDivideFunc builds the remote method to invoke for "divider" service "integer_divide" endpoint.

func BuildIntegerDividePayload

func BuildIntegerDividePayload(dividerIntegerDivideMessage string) (*divider.IntOperands, error)

BuildIntegerDividePayload builds the payload for the divider integer_divide endpoint from CLI flags.

func DecodeDivideResponse

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

DecodeDivideResponse decodes responses from the divider divide endpoint.

func DecodeIntegerDivideResponse

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

DecodeIntegerDivideResponse decodes responses from the divider integer_divide endpoint.

func EncodeDivideRequest

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

EncodeDivideRequest encodes requests sent to divider divide endpoint.

func EncodeIntegerDivideRequest

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

EncodeIntegerDivideRequest encodes requests sent to divider integer_divide endpoint.

func NewDivideRequest

func NewDivideRequest(payload *divider.FloatOperands) *dividerpb.DivideRequest

NewDivideRequest builds the gRPC request type from the payload of the "divide" endpoint of the "divider" service.

func NewDivideResult

func NewDivideResult(message *dividerpb.DivideResponse) float64

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

func NewIntegerDivideRequest

func NewIntegerDivideRequest(payload *divider.IntOperands) *dividerpb.IntegerDivideRequest

NewIntegerDivideRequest builds the gRPC request type from the payload of the "integer_divide" endpoint of the "divider" service.

func NewIntegerDivideResult

func NewIntegerDivideResult(message *dividerpb.IntegerDivideResponse) int

NewIntegerDivideResult builds the result type of the "integer_divide" endpoint of the "divider" 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 divider service servers.

func (*Client) Divide

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

Divide calls the "Divide" function in dividerpb.DividerClient interface.

func (*Client) IntegerDivide

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

IntegerDivide calls the "IntegerDivide" function in dividerpb.DividerClient interface.

Jump to

Keyboard shortcuts

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