client

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildGetLocationFunc

func BuildGetLocationFunc(grpccli locatorpb.LocatorClient, cliopts ...grpc.CallOption) goagrpc.RemoteFunc

BuildGetLocationFunc builds the remote method to invoke for "locator" service "get_location" endpoint.

func BuildGetLocationPayload

func BuildGetLocationPayload(locatorGetLocationMessage string) (string, error)

BuildGetLocationPayload builds the payload for the locator get_location endpoint from CLI flags.

func DecodeGetLocationResponse

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

DecodeGetLocationResponse decodes responses from the locator get_location endpoint.

func EncodeGetLocationRequest

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

EncodeGetLocationRequest encodes requests sent to locator get_location endpoint.

func NewGetLocationRequest

func NewGetLocationRequest(payload string) *locatorpb.GetLocationRequest

NewGetLocationRequest builds the gRPC request type from the payload of the "get_location" endpoint of the "locator" service.

func NewGetLocationResult

func NewGetLocationResult(message *locatorpb.GetLocationResponse) *locator.WorldLocation

NewGetLocationResult builds the result type of the "get_location" endpoint of the "locator" 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 locator service servers.

func (*Client) GetLocation

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

GetLocation calls the "GetLocation" function in locatorpb.LocatorClient interface.

Jump to

Keyboard shortcuts

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