Documentation ¶
Index ¶
- Variables
- type ChatRequest
- type ChatResponse
- func (p *ChatResponse) GetBaseResp() (v *base.BaseResponse)
- func (p *ChatResponse) GetContent() (v string)
- func (p *ChatResponse) IsSetBaseResp() bool
- func (p *ChatResponse) Read(iprot thrift.TProtocol) (err error)
- func (p *ChatResponse) ReadField1(iprot thrift.TProtocol) error
- func (p *ChatResponse) ReadField2(iprot thrift.TProtocol) error
- func (p *ChatResponse) String() string
- func (p *ChatResponse) Write(oprot thrift.TProtocol) (err error)
- type GptService
- type GptServiceChatArgs
- func (p *GptServiceChatArgs) GetReq() (v *ChatRequest)
- func (p *GptServiceChatArgs) IsSetReq() bool
- func (p *GptServiceChatArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *GptServiceChatArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *GptServiceChatArgs) String() string
- func (p *GptServiceChatArgs) Write(oprot thrift.TProtocol) (err error)
- type GptServiceChatResult
- func (p *GptServiceChatResult) GetSuccess() (v *ChatResponse)
- func (p *GptServiceChatResult) IsSetSuccess() bool
- func (p *GptServiceChatResult) Read(iprot thrift.TProtocol) (err error)
- func (p *GptServiceChatResult) ReadField0(iprot thrift.TProtocol) error
- func (p *GptServiceChatResult) String() string
- func (p *GptServiceChatResult) Write(oprot thrift.TProtocol) (err error)
- type GptServiceClient
- type GptServiceProcessor
- func (p *GptServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *GptServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *GptServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *GptServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
Constants ¶
This section is empty.
Variables ¶
View Source
var ChatResponse_BaseResp_DEFAULT *base.BaseResponse
Functions ¶
This section is empty.
Types ¶
type ChatRequest ¶
type ChatRequest struct {
Content string `thrift:"content,1" form:"content" json:"content" query:"content"`
}
var GptServiceChatArgs_Req_DEFAULT *ChatRequest
func NewChatRequest ¶
func NewChatRequest() *ChatRequest
func (*ChatRequest) GetContent ¶
func (p *ChatRequest) GetContent() (v string)
func (*ChatRequest) ReadField1 ¶
func (p *ChatRequest) ReadField1(iprot thrift.TProtocol) error
func (*ChatRequest) String ¶
func (p *ChatRequest) String() string
type ChatResponse ¶
type ChatResponse struct { BaseResp *base.BaseResponse `thrift:"base_resp,1" form:"base_resp" json:"base_resp" query:"base_resp"` Content string `thrift:"content,2" form:"content" json:"content" query:"content"` }
var GptServiceChatResult_Success_DEFAULT *ChatResponse
func NewChatResponse ¶
func NewChatResponse() *ChatResponse
func (*ChatResponse) GetBaseResp ¶
func (p *ChatResponse) GetBaseResp() (v *base.BaseResponse)
func (*ChatResponse) GetContent ¶
func (p *ChatResponse) GetContent() (v string)
func (*ChatResponse) IsSetBaseResp ¶
func (p *ChatResponse) IsSetBaseResp() bool
func (*ChatResponse) ReadField1 ¶
func (p *ChatResponse) ReadField1(iprot thrift.TProtocol) error
func (*ChatResponse) ReadField2 ¶
func (p *ChatResponse) ReadField2(iprot thrift.TProtocol) error
func (*ChatResponse) String ¶
func (p *ChatResponse) String() string
type GptService ¶
type GptService interface {
Chat(ctx context.Context, req *ChatRequest) (r *ChatResponse, err error)
}
type GptServiceChatArgs ¶
type GptServiceChatArgs struct {
Req *ChatRequest `thrift:"req,1"`
}
func NewGptServiceChatArgs ¶
func NewGptServiceChatArgs() *GptServiceChatArgs
func (*GptServiceChatArgs) GetReq ¶
func (p *GptServiceChatArgs) GetReq() (v *ChatRequest)
func (*GptServiceChatArgs) IsSetReq ¶
func (p *GptServiceChatArgs) IsSetReq() bool
func (*GptServiceChatArgs) Read ¶
func (p *GptServiceChatArgs) Read(iprot thrift.TProtocol) (err error)
func (*GptServiceChatArgs) ReadField1 ¶
func (p *GptServiceChatArgs) ReadField1(iprot thrift.TProtocol) error
func (*GptServiceChatArgs) String ¶
func (p *GptServiceChatArgs) String() string
type GptServiceChatResult ¶
type GptServiceChatResult struct {
Success *ChatResponse `thrift:"success,0,optional"`
}
func NewGptServiceChatResult ¶
func NewGptServiceChatResult() *GptServiceChatResult
func (*GptServiceChatResult) GetSuccess ¶
func (p *GptServiceChatResult) GetSuccess() (v *ChatResponse)
func (*GptServiceChatResult) IsSetSuccess ¶
func (p *GptServiceChatResult) IsSetSuccess() bool
func (*GptServiceChatResult) Read ¶
func (p *GptServiceChatResult) Read(iprot thrift.TProtocol) (err error)
func (*GptServiceChatResult) ReadField0 ¶
func (p *GptServiceChatResult) ReadField0(iprot thrift.TProtocol) error
func (*GptServiceChatResult) String ¶
func (p *GptServiceChatResult) String() string
type GptServiceClient ¶
type GptServiceClient struct {
// contains filtered or unexported fields
}
func NewGptServiceClient ¶
func NewGptServiceClient(c thrift.TClient) *GptServiceClient
func NewGptServiceClientFactory ¶
func NewGptServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *GptServiceClient
func NewGptServiceClientProtocol ¶
func NewGptServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *GptServiceClient
func (*GptServiceClient) Chat ¶
func (p *GptServiceClient) Chat(ctx context.Context, req *ChatRequest) (r *ChatResponse, err error)
func (*GptServiceClient) Client_ ¶
func (p *GptServiceClient) Client_() thrift.TClient
type GptServiceProcessor ¶
type GptServiceProcessor struct {
// contains filtered or unexported fields
}
func NewGptServiceProcessor ¶
func NewGptServiceProcessor(handler GptService) *GptServiceProcessor
func (*GptServiceProcessor) AddToProcessorMap ¶
func (p *GptServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*GptServiceProcessor) GetProcessorFunction ¶
func (p *GptServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*GptServiceProcessor) Process ¶
func (p *GptServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*GptServiceProcessor) ProcessorMap ¶
func (p *GptServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
Click to show internal directories.
Click to hide internal directories.