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 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)
Click to show internal directories.
Click to hide internal directories.