Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_test_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAnswerServiceServer ¶
func RegisterAnswerServiceServer(s *grpc.Server, srv AnswerServiceServer)
Types ¶
type Answer ¶
type Answer struct { Answer string `protobuf:"bytes,1,opt,name=answer,proto3" json:"answer,omitempty"` // contains filtered or unexported fields }
func (*Answer) Descriptor
deprecated
func (*Answer) ProtoMessage ¶
func (*Answer) ProtoMessage()
func (*Answer) ProtoReflect ¶
func (x *Answer) ProtoReflect() protoreflect.Message
type AnswerServiceClient ¶
type AnswerServiceClient interface {
Greeting(ctx context.Context, in *Question, opts ...grpc.CallOption) (*Answer, error)
}
AnswerServiceClient is the client API for AnswerService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAnswerServiceClient ¶
func NewAnswerServiceClient(cc grpc.ClientConnInterface) AnswerServiceClient
type AnswerServiceServer ¶
type AnswerServiceServer interface { Greeting(context.Context, *Question) (*Answer, error) // contains filtered or unexported methods }
AnswerServiceServer is the server API for AnswerService service. All implementations must embed UnimplementedAnswerServiceServer for forward compatibility
type Question ¶
type Question struct { Question string `protobuf:"bytes,1,opt,name=question,proto3" json:"question,omitempty"` // contains filtered or unexported fields }
func (*Question) Descriptor
deprecated
func (*Question) GetQuestion ¶
func (*Question) ProtoMessage ¶
func (*Question) ProtoMessage()
func (*Question) ProtoReflect ¶
func (x *Question) ProtoReflect() protoreflect.Message
type UnimplementedAnswerServiceServer ¶
type UnimplementedAnswerServiceServer struct { }
UnimplementedAnswerServiceServer must be embedded to have forward compatible implementations.
Click to show internal directories.
Click to hide internal directories.