client

package
v2.1.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2020 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildAddFunc

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

BuildAddFunc builds the remote method to invoke for "calc" service "add" endpoint.

func BuildAddPayload

func BuildAddPayload(calcAddMessage string) (*calc.AddPayload, error)

BuildAddPayload builds the payload for the calc add endpoint from CLI flags.

func DecodeAddResponse

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

DecodeAddResponse decodes responses from the calc add endpoint.

func EncodeAddRequest

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

EncodeAddRequest encodes requests sent to calc add endpoint.

func NewAddRequest

func NewAddRequest(payload *calc.AddPayload) *calcpb.AddRequest

NewAddRequest builds the gRPC request type from the payload of the "add" endpoint of the "calc" service.

func NewAddResult

func NewAddResult(message *calcpb.AddResponse) int

NewAddResult builds the result type of the "add" endpoint of the "calc" 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 calc service servers.

func (*Client) Add

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

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

Jump to

Keyboard shortcuts

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