Documentation
¶
Overview ¶
Package protobuf is a generated protocol buffer package.
It is generated from these files:
protobuf/microservice.proto
It has these top-level messages:
Request Response
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterMicroServiceServer ¶
func RegisterMicroServiceServer(s *grpc.Server, srv MicroServiceServer)
Types ¶
type MicroServiceClient ¶
type MicroServiceClient interface {
// Returns a Response to the given Response
Hello(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}
func NewMicroServiceClient ¶
func NewMicroServiceClient(cc *grpc.ClientConn) MicroServiceClient
type MicroServiceServer ¶
type Request ¶
type Request struct {
Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
}
func (*Request) Descriptor ¶
func (*Request) GetMessage ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
type Response ¶
type Response struct {
Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
}
func (*Response) Descriptor ¶
func (*Response) GetMessage ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.