Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterGreetingServer ¶
func RegisterGreetingServer(s *grpc.Server, srv GreetingServer)
Types ¶
type GreetingClient ¶
type GreetingClient interface {
Greet(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*wrappers.StringValue, error)
}
GreetingClient is the client API for Greeting service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewGreetingClient ¶
func NewGreetingClient(cc *grpc.ClientConn) GreetingClient
type GreetingServer ¶
type GreetingServer interface {
Greet(context.Context, *empty.Empty) (*wrappers.StringValue, error)
}
GreetingServer is the server API for Greeting service.
Click to show internal directories.
Click to hide internal directories.