Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_greet_proto protoreflect.FileDescriptor
Functions ¶
func RegisterMyServiceServer ¶
func RegisterMyServiceServer(s *grpc.Server, srv MyServiceServer)
Types ¶
type MyRequest ¶
type MyRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*MyRequest) Descriptor
deprecated
func (*MyRequest) ProtoMessage ¶
func (*MyRequest) ProtoMessage()
func (*MyRequest) ProtoReflect ¶
func (x *MyRequest) ProtoReflect() protoreflect.Message
type MyResponse ¶
type MyResponse struct { Greetings string `protobuf:"bytes,1,opt,name=greetings,proto3" json:"greetings,omitempty"` // contains filtered or unexported fields }
func (*MyResponse) Descriptor
deprecated
func (*MyResponse) Descriptor() ([]byte, []int)
Deprecated: Use MyResponse.ProtoReflect.Descriptor instead.
func (*MyResponse) GetGreetings ¶
func (x *MyResponse) GetGreetings() string
func (*MyResponse) ProtoMessage ¶
func (*MyResponse) ProtoMessage()
func (*MyResponse) ProtoReflect ¶
func (x *MyResponse) ProtoReflect() protoreflect.Message
func (*MyResponse) Reset ¶
func (x *MyResponse) Reset()
func (*MyResponse) String ¶
func (x *MyResponse) String() string
type MyServiceClient ¶
type MyServiceClient interface {
MyGreetings(ctx context.Context, in *MyRequest, opts ...grpc.CallOption) (*MyResponse, error)
}
MyServiceClient is the client API for MyService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMyServiceClient ¶
func NewMyServiceClient(cc grpc.ClientConnInterface) MyServiceClient
type MyServiceServer ¶
type MyServiceServer interface {
MyGreetings(context.Context, *MyRequest) (*MyResponse, error)
}
MyServiceServer is the server API for MyService service.
type UnimplementedMyServiceServer ¶
type UnimplementedMyServiceServer struct { }
UnimplementedMyServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedMyServiceServer) MyGreetings ¶
func (*UnimplementedMyServiceServer) MyGreetings(context.Context, *MyRequest) (*MyResponse, error)
Click to show internal directories.
Click to hide internal directories.