qagrpc

package
v0.3.3-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_fetchanswer_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Answer.ProtoReflect.Descriptor instead.

func (*Answer) GetAnswer

func (x *Answer) GetAnswer() []string

func (*Answer) ProtoMessage

func (*Answer) ProtoMessage()

func (*Answer) ProtoReflect

func (x *Answer) ProtoReflect() protoreflect.Message

func (*Answer) Reset

func (x *Answer) Reset()

func (*Answer) String

func (x *Answer) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Problem.ProtoReflect.Descriptor instead.

func (*Problem) GetDefault

func (x *Problem) GetDefault() []string

func (*Problem) GetDescription

func (x *Problem) GetDescription() string

func (*Problem) GetHints

func (x *Problem) GetHints() []string

func (*Problem) GetId

func (x *Problem) GetId() string

func (*Problem) GetOptions

func (x *Problem) GetOptions() []string

func (*Problem) GetType

func (x *Problem) GetType() string

func (*Problem) ProtoMessage

func (*Problem) ProtoMessage()

func (*Problem) ProtoReflect

func (x *Problem) ProtoReflect() protoreflect.Message

func (*Problem) Reset

func (x *Problem) Reset()

func (*Problem) String

func (x *Problem) String() string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL