greeter

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GreetRequest

type GreetRequest struct {
	Name string `json:"name"`
}

type GreetResponse

type GreetResponse struct {
	Greeting string `json:"greeting"`
	// Error is an error message if one occurred.
	Error string `json:"error"`
}

type GreeterClient

type GreeterClient struct {
	// contains filtered or unexported fields
}

GreeterClient accesses remote Greeter services.

func NewGreeterClient

func NewGreeterClient(endpoint string, client *http.Client) *GreeterClient

NewGreeterClient makes a new GreeterClient that will use the specified http.Client to make requests.

func (*GreeterClient) Greet

func (c *GreeterClient) Greet(ctx context.Context, request *GreetRequest) (*GreetResponse, error)

func (*GreeterClient) GreetMulti

func (c *GreeterClient) GreetMulti(ctx context.Context, requests []*GreetRequest) ([]*GreetResponse, error)

Jump to

Keyboard shortcuts

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