client

package
v0.0.0-...-02e4f75 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildSayHelloFunc

func BuildSayHelloFunc(grpccli hellopb.HelloClient, cliopts ...grpc.CallOption) goagrpc.RemoteFunc

BuildSayHelloFunc builds the remote method to invoke for "hello" service "say-hello" endpoint.

func BuildSayHelloPayload

func BuildSayHelloPayload(helloSayHelloMessage string) (*hello.SayHelloPayload, error)

BuildSayHelloPayload builds the payload for the hello say-hello endpoint from CLI flags.

func DecodeSayHelloResponse

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

DecodeSayHelloResponse decodes responses from the hello say-hello endpoint.

func EncodeSayHelloRequest

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

EncodeSayHelloRequest encodes requests sent to hello say-hello endpoint.

func NewProtoSayHelloRequest

func NewProtoSayHelloRequest(payload *hello.SayHelloPayload) *hellopb.SayHelloRequest

NewProtoSayHelloRequest builds the gRPC request type from the payload of the "say-hello" endpoint of the "hello" service.

func NewSayHelloResult

func NewSayHelloResult(message *hellopb.SayHelloResponse) string

NewSayHelloResult builds the result type of the "say-hello" endpoint of the "hello" 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 hello service servers.

func (*Client) SayHello

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

SayHello calls the "SayHello" function in hellopb.HelloClient interface.

Jump to

Keyboard shortcuts

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