Documentation
¶
Index ¶
- func BuildGetLocationFunc(grpccli locatorpb.LocatorClient, cliopts ...grpc.CallOption) goagrpc.RemoteFunc
- func BuildGetLocationPayload(locatorGetLocationMessage string) (string, error)
- func DecodeGetLocationResponse(ctx context.Context, v interface{}, hdr, trlr metadata.MD) (interface{}, error)
- func EncodeGetLocationRequest(ctx context.Context, v interface{}, md *metadata.MD) (interface{}, error)
- func NewGetLocationRequest(payload string) *locatorpb.GetLocationRequest
- func NewGetLocationResult(message *locatorpb.GetLocationResponse) *locator.WorldLocation
- type Client
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 ¶
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 ¶
GetLocation calls the "GetLocation" function in locatorpb.LocatorClient interface.