Documentation ¶
Index ¶
- Variables
- func RegisterQAEngineServer(s grpc.ServiceRegistrar, srv QAEngineServer)
- type Answer
- type Problem
- func (*Problem) Descriptor() ([]byte, []int)deprecated
- func (x *Problem) GetDefault() []string
- func (x *Problem) GetDescription() string
- func (x *Problem) GetHints() []string
- func (x *Problem) GetId() string
- func (x *Problem) GetOptions() []string
- func (x *Problem) GetType() string
- func (*Problem) ProtoMessage()
- func (x *Problem) ProtoReflect() protoreflect.Message
- func (x *Problem) Reset()
- func (x *Problem) String() string
- type QAEngineClient
- type QAEngineServer
- type UnimplementedQAEngineServer
- type UnsafeQAEngineServer
Constants ¶
This section is empty.
Variables ¶
var File_fetchanswer_proto protoreflect.FileDescriptor
var QAEngine_ServiceDesc = grpc.ServiceDesc{ ServiceName: "qagrpc.QAEngine", HandlerType: (*QAEngineServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "FetchAnswer", Handler: _QAEngine_FetchAnswer_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "fetchanswer.proto", }
QAEngine_ServiceDesc is the grpc.ServiceDesc for QAEngine service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterQAEngineServer ¶
func RegisterQAEngineServer(s grpc.ServiceRegistrar, srv QAEngineServer)
Types ¶
type Answer ¶
type Answer struct { Answer []string `protobuf:"bytes,1,rep,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 Problem ¶
type Problem struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Hints []string `protobuf:"bytes,4,rep,name=hints,proto3" json:"hints,omitempty"` Options []string `protobuf:"bytes,5,rep,name=options,proto3" json:"options,omitempty"` Default []string `protobuf:"bytes,6,rep,name=default,proto3" json:"default,omitempty"` // contains filtered or unexported fields }
func (*Problem) Descriptor
deprecated
func (*Problem) GetDefault ¶
func (*Problem) GetDescription ¶
func (*Problem) GetOptions ¶
func (*Problem) ProtoMessage ¶
func (*Problem) ProtoMessage()
func (*Problem) ProtoReflect ¶
func (x *Problem) ProtoReflect() protoreflect.Message
type QAEngineClient ¶
type QAEngineClient interface {
FetchAnswer(ctx context.Context, in *Problem, opts ...grpc.CallOption) (*Answer, error)
}
QAEngineClient is the client API for QAEngine 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 NewQAEngineClient ¶
func NewQAEngineClient(cc grpc.ClientConnInterface) QAEngineClient
type QAEngineServer ¶
type QAEngineServer interface { FetchAnswer(context.Context, *Problem) (*Answer, error) // contains filtered or unexported methods }
QAEngineServer is the server API for QAEngine service. All implementations must embed UnimplementedQAEngineServer for forward compatibility
type UnimplementedQAEngineServer ¶
type UnimplementedQAEngineServer struct { }
UnimplementedQAEngineServer must be embedded to have forward compatible implementations.
func (UnimplementedQAEngineServer) FetchAnswer ¶
type UnsafeQAEngineServer ¶
type UnsafeQAEngineServer interface {
// contains filtered or unexported methods
}
UnsafeQAEngineServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QAEngineServer will result in compilation errors.