Documentation
¶
Index ¶
- func RegisterAiServer(s *grpc.Server, srv AiServer)
- type AiClient
- type AiServer
- type Answer
- func (*Answer) Descriptor() ([]byte, []int)
- func (m *Answer) GetAnswer() string
- func (*Answer) ProtoMessage()
- func (m *Answer) Reset()
- func (m *Answer) String() string
- func (m *Answer) XXX_DiscardUnknown()
- func (m *Answer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Answer) XXX_Merge(src proto.Message)
- func (m *Answer) XXX_Size() int
- func (m *Answer) XXX_Unmarshal(b []byte) error
- type Question
- func (*Question) Descriptor() ([]byte, []int)
- func (m *Question) GetQuestion() string
- func (*Question) ProtoMessage()
- func (m *Question) Reset()
- func (m *Question) String() string
- func (m *Question) XXX_DiscardUnknown()
- func (m *Question) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Question) XXX_Merge(src proto.Message)
- func (m *Question) XXX_Size() int
- func (m *Question) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAiServer ¶
Types ¶
type AiClient ¶
type AiClient interface {
Ask(ctx context.Context, in *Question, opts ...grpc.CallOption) (*Answer, error)
}
AiClient is the client API for Ai service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAiClient ¶
func NewAiClient(cc *grpc.ClientConn) AiClient
type Answer ¶
type Answer struct { Answer string `protobuf:"bytes,1,opt,name=answer,proto3" json:"answer,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Answer) Descriptor ¶
func (*Answer) ProtoMessage ¶
func (*Answer) ProtoMessage()
func (*Answer) XXX_DiscardUnknown ¶
func (m *Answer) XXX_DiscardUnknown()
func (*Answer) XXX_Marshal ¶
func (*Answer) XXX_Unmarshal ¶
type Question ¶
type Question struct { Question string `protobuf:"bytes,1,opt,name=question,proto3" json:"question,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Question) Descriptor ¶
func (*Question) GetQuestion ¶
func (*Question) ProtoMessage ¶
func (*Question) ProtoMessage()
func (*Question) XXX_DiscardUnknown ¶
func (m *Question) XXX_DiscardUnknown()
func (*Question) XXX_Marshal ¶
func (*Question) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.