Documentation ¶
Overview ¶
Package greeter contains the HTTP server for greeter services.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New( greeter Greeter, ) *remotohttp.Server
New makes a new remotohttp.Server with the specified services registered.
func RegisterGreeterServer ¶
func RegisterGreeterServer(server *remotohttp.Server, service Greeter)
RegisterGreeterServer registers a Greeter with a remotohttp.Server.
Types ¶
type GreetRequest ¶
type GreetRequest struct {
Name string `json:"name"`
}
type GreetResponse ¶
type Greeter ¶
type Greeter interface {
Greet(context.Context, *GreetRequest) (*GreetResponse, error)
}
Click to show internal directories.
Click to hide internal directories.