Documentation ¶
Index ¶
- type Chat
- func (p *Chat) GetChatContent() (v string)
- func (p *Chat) GetChatID() (v int32)
- func (p *Chat) GetChatModel() (v string)
- func (p *Chat) GetConversationID() (v string)
- func (p *Chat) GetCreatedAt() (v string)
- func (p *Chat) GetIsDeleted() (v bool)
- func (p *Chat) GetPluginNames() (v []string)
- func (p *Chat) GetUpdatedAt() (v string)
- func (p *Chat) GetUserID() (v int32)
- func (p *Chat) Read(iprot thrift.TProtocol) (err error)
- func (p *Chat) ReadField1(iprot thrift.TProtocol) error
- func (p *Chat) ReadField2(iprot thrift.TProtocol) error
- func (p *Chat) ReadField3(iprot thrift.TProtocol) error
- func (p *Chat) ReadField4(iprot thrift.TProtocol) error
- func (p *Chat) ReadField5(iprot thrift.TProtocol) error
- func (p *Chat) ReadField6(iprot thrift.TProtocol) error
- func (p *Chat) ReadField7(iprot thrift.TProtocol) error
- func (p *Chat) ReadField8(iprot thrift.TProtocol) error
- func (p *Chat) ReadField9(iprot thrift.TProtocol) error
- func (p *Chat) String() string
- func (p *Chat) Write(oprot thrift.TProtocol) (err error)
- type ChatResp
- func (p *ChatResp) GetCode() (v int32)
- func (p *ChatResp) GetData() (v *Chat)
- func (p *ChatResp) GetMessage() (v string)
- func (p *ChatResp) IsSetData() bool
- func (p *ChatResp) Read(iprot thrift.TProtocol) (err error)
- func (p *ChatResp) ReadField1(iprot thrift.TProtocol) error
- func (p *ChatResp) ReadField2(iprot thrift.TProtocol) error
- func (p *ChatResp) ReadField3(iprot thrift.TProtocol) error
- func (p *ChatResp) String() string
- func (p *ChatResp) Write(oprot thrift.TProtocol) (err error)
- type ChatService
- type ChatServiceClient
- type ChatServiceGetChatArgs
- func (p *ChatServiceGetChatArgs) GetReq() (v *GetChatReq)
- func (p *ChatServiceGetChatArgs) IsSetReq() bool
- func (p *ChatServiceGetChatArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *ChatServiceGetChatArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *ChatServiceGetChatArgs) String() string
- func (p *ChatServiceGetChatArgs) Write(oprot thrift.TProtocol) (err error)
- type ChatServiceGetChatResult
- func (p *ChatServiceGetChatResult) GetSuccess() (v *ChatResp)
- func (p *ChatServiceGetChatResult) IsSetSuccess() bool
- func (p *ChatServiceGetChatResult) Read(iprot thrift.TProtocol) (err error)
- func (p *ChatServiceGetChatResult) ReadField0(iprot thrift.TProtocol) error
- func (p *ChatServiceGetChatResult) String() string
- func (p *ChatServiceGetChatResult) Write(oprot thrift.TProtocol) (err error)
- type ChatServicePostChatArgs
- func (p *ChatServicePostChatArgs) GetReq() (v *PostChatReq)
- func (p *ChatServicePostChatArgs) IsSetReq() bool
- func (p *ChatServicePostChatArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *ChatServicePostChatArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *ChatServicePostChatArgs) String() string
- func (p *ChatServicePostChatArgs) Write(oprot thrift.TProtocol) (err error)
- type ChatServicePostChatResult
- func (p *ChatServicePostChatResult) GetSuccess() (v *SSE)
- func (p *ChatServicePostChatResult) IsSetSuccess() bool
- func (p *ChatServicePostChatResult) Read(iprot thrift.TProtocol) (err error)
- func (p *ChatServicePostChatResult) ReadField0(iprot thrift.TProtocol) error
- func (p *ChatServicePostChatResult) String() string
- func (p *ChatServicePostChatResult) Write(oprot thrift.TProtocol) (err error)
- type ChatServiceProcessor
- func (p *ChatServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *ChatServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *ChatServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *ChatServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type DeletePluginReq
- type GetChatReq
- type GetPluginReq
- type GetPluginsReq
- type Plugin
- func (p *Plugin) GetCreatedAt() (v string)
- func (p *Plugin) GetIsDeleted() (v bool)
- func (p *Plugin) GetPluginConfig() (v string)
- func (p *Plugin) GetPluginConfigURL() (v string)
- func (p *Plugin) GetPluginID() (v int32)
- func (p *Plugin) GetPluginName() (v string)
- func (p *Plugin) GetPluginOpenapi() (v string)
- func (p *Plugin) GetPluginOpenapiURL() (v string)
- func (p *Plugin) GetUpdatedAt() (v string)
- func (p *Plugin) Read(iprot thrift.TProtocol) (err error)
- func (p *Plugin) ReadField1(iprot thrift.TProtocol) error
- func (p *Plugin) ReadField2(iprot thrift.TProtocol) error
- func (p *Plugin) ReadField3(iprot thrift.TProtocol) error
- func (p *Plugin) ReadField4(iprot thrift.TProtocol) error
- func (p *Plugin) ReadField5(iprot thrift.TProtocol) error
- func (p *Plugin) ReadField6(iprot thrift.TProtocol) error
- func (p *Plugin) ReadField7(iprot thrift.TProtocol) error
- func (p *Plugin) ReadField8(iprot thrift.TProtocol) error
- func (p *Plugin) ReadField9(iprot thrift.TProtocol) error
- func (p *Plugin) String() string
- func (p *Plugin) Write(oprot thrift.TProtocol) (err error)
- type PluginReq
- type PluginResp
- func (p *PluginResp) GetCode() (v int32)
- func (p *PluginResp) GetData() (v *Plugin)
- func (p *PluginResp) GetMessage() (v string)
- func (p *PluginResp) IsSetData() bool
- func (p *PluginResp) Read(iprot thrift.TProtocol) (err error)
- func (p *PluginResp) ReadField1(iprot thrift.TProtocol) error
- func (p *PluginResp) ReadField2(iprot thrift.TProtocol) error
- func (p *PluginResp) ReadField3(iprot thrift.TProtocol) error
- func (p *PluginResp) String() string
- func (p *PluginResp) Write(oprot thrift.TProtocol) (err error)
- type PluginService
- type PluginServiceClient
- func (p *PluginServiceClient) Client_() thrift.TClient
- func (p *PluginServiceClient) DeletePlugin(ctx context.Context, req *DeletePluginReq) (r *SuccessResp, err error)
- func (p *PluginServiceClient) GetPlugin(ctx context.Context, req *GetPluginReq) (r *PluginResp, err error)
- func (p *PluginServiceClient) GetPlugins(ctx context.Context, req *GetPluginsReq) (r *PluginsResp, err error)
- func (p *PluginServiceClient) PostPlugin(ctx context.Context, req *PluginReq) (r *PluginResp, err error)
- type PluginServiceDeletePluginArgs
- func (p *PluginServiceDeletePluginArgs) GetReq() (v *DeletePluginReq)
- func (p *PluginServiceDeletePluginArgs) IsSetReq() bool
- func (p *PluginServiceDeletePluginArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *PluginServiceDeletePluginArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *PluginServiceDeletePluginArgs) String() string
- func (p *PluginServiceDeletePluginArgs) Write(oprot thrift.TProtocol) (err error)
- type PluginServiceDeletePluginResult
- func (p *PluginServiceDeletePluginResult) GetSuccess() (v *SuccessResp)
- func (p *PluginServiceDeletePluginResult) IsSetSuccess() bool
- func (p *PluginServiceDeletePluginResult) Read(iprot thrift.TProtocol) (err error)
- func (p *PluginServiceDeletePluginResult) ReadField0(iprot thrift.TProtocol) error
- func (p *PluginServiceDeletePluginResult) String() string
- func (p *PluginServiceDeletePluginResult) Write(oprot thrift.TProtocol) (err error)
- type PluginServiceGetPluginArgs
- func (p *PluginServiceGetPluginArgs) GetReq() (v *GetPluginReq)
- func (p *PluginServiceGetPluginArgs) IsSetReq() bool
- func (p *PluginServiceGetPluginArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *PluginServiceGetPluginArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *PluginServiceGetPluginArgs) String() string
- func (p *PluginServiceGetPluginArgs) Write(oprot thrift.TProtocol) (err error)
- type PluginServiceGetPluginResult
- func (p *PluginServiceGetPluginResult) GetSuccess() (v *PluginResp)
- func (p *PluginServiceGetPluginResult) IsSetSuccess() bool
- func (p *PluginServiceGetPluginResult) Read(iprot thrift.TProtocol) (err error)
- func (p *PluginServiceGetPluginResult) ReadField0(iprot thrift.TProtocol) error
- func (p *PluginServiceGetPluginResult) String() string
- func (p *PluginServiceGetPluginResult) Write(oprot thrift.TProtocol) (err error)
- type PluginServiceGetPluginsArgs
- func (p *PluginServiceGetPluginsArgs) GetReq() (v *GetPluginsReq)
- func (p *PluginServiceGetPluginsArgs) IsSetReq() bool
- func (p *PluginServiceGetPluginsArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *PluginServiceGetPluginsArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *PluginServiceGetPluginsArgs) String() string
- func (p *PluginServiceGetPluginsArgs) Write(oprot thrift.TProtocol) (err error)
- type PluginServiceGetPluginsResult
- func (p *PluginServiceGetPluginsResult) GetSuccess() (v *PluginsResp)
- func (p *PluginServiceGetPluginsResult) IsSetSuccess() bool
- func (p *PluginServiceGetPluginsResult) Read(iprot thrift.TProtocol) (err error)
- func (p *PluginServiceGetPluginsResult) ReadField0(iprot thrift.TProtocol) error
- func (p *PluginServiceGetPluginsResult) String() string
- func (p *PluginServiceGetPluginsResult) Write(oprot thrift.TProtocol) (err error)
- type PluginServicePostPluginArgs
- func (p *PluginServicePostPluginArgs) GetReq() (v *PluginReq)
- func (p *PluginServicePostPluginArgs) IsSetReq() bool
- func (p *PluginServicePostPluginArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *PluginServicePostPluginArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *PluginServicePostPluginArgs) String() string
- func (p *PluginServicePostPluginArgs) Write(oprot thrift.TProtocol) (err error)
- type PluginServicePostPluginResult
- func (p *PluginServicePostPluginResult) GetSuccess() (v *PluginResp)
- func (p *PluginServicePostPluginResult) IsSetSuccess() bool
- func (p *PluginServicePostPluginResult) Read(iprot thrift.TProtocol) (err error)
- func (p *PluginServicePostPluginResult) ReadField0(iprot thrift.TProtocol) error
- func (p *PluginServicePostPluginResult) String() string
- func (p *PluginServicePostPluginResult) Write(oprot thrift.TProtocol) (err error)
- type PluginServiceProcessor
- func (p *PluginServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *PluginServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *PluginServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *PluginServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type PluginsResp
- func (p *PluginsResp) GetCode() (v int32)
- func (p *PluginsResp) GetData() (v []*Plugin)
- func (p *PluginsResp) GetMessage() (v string)
- func (p *PluginsResp) Read(iprot thrift.TProtocol) (err error)
- func (p *PluginsResp) ReadField1(iprot thrift.TProtocol) error
- func (p *PluginsResp) ReadField2(iprot thrift.TProtocol) error
- func (p *PluginsResp) ReadField3(iprot thrift.TProtocol) error
- func (p *PluginsResp) String() string
- func (p *PluginsResp) Write(oprot thrift.TProtocol) (err error)
- type PostChatReq
- func (p *PostChatReq) GetChatModel() (v string)
- func (p *PostChatReq) GetConversationID() (v string)
- func (p *PostChatReq) GetPluginNames() (v []string)
- func (p *PostChatReq) GetPrompt() (v string)
- func (p *PostChatReq) Read(iprot thrift.TProtocol) (err error)
- func (p *PostChatReq) ReadField1(iprot thrift.TProtocol) error
- func (p *PostChatReq) ReadField2(iprot thrift.TProtocol) error
- func (p *PostChatReq) ReadField3(iprot thrift.TProtocol) error
- func (p *PostChatReq) ReadField4(iprot thrift.TProtocol) error
- func (p *PostChatReq) String() string
- func (p *PostChatReq) Write(oprot thrift.TProtocol) (err error)
- type SSE
- type SuccessResp
- func (p *SuccessResp) GetCode() (v int32)
- func (p *SuccessResp) GetMessage() (v string)
- func (p *SuccessResp) Read(iprot thrift.TProtocol) (err error)
- func (p *SuccessResp) ReadField1(iprot thrift.TProtocol) error
- func (p *SuccessResp) ReadField2(iprot thrift.TProtocol) error
- func (p *SuccessResp) String() string
- func (p *SuccessResp) Write(oprot thrift.TProtocol) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chat ¶
type Chat struct { ChatID int32 `thrift:"chat_id,1" json:"chat_id" form:"chat_id" query:"chat_id"` ConversationID string `thrift:"conversation_id,2" json:"conversation_id" form:"conversation_id" query:"conversation_id"` PluginNames []string `thrift:"plugin_names,3" json:"plugin_names" form:"plugin_names" query:"plugin_names"` ChatContent string `thrift:"chat_content,4" json:"chat_content" form:"chat_content" query:"chat_content"` ChatModel string `thrift:"chat_model,5" json:"chat_model" form:"chat_model" query:"chat_model"` UserID int32 `thrift:"user_id,6" json:"user_id" form:"user_id" query:"user_id"` IsDeleted bool `thrift:"is_deleted,7" json:"is_deleted" form:"is_deleted" query:"is_deleted"` CreatedAt string `thrift:"created_at,8" json:"created_at" form:"created_at" query:"created_at"` UpdatedAt string `thrift:"updated_at,9" json:"updated_at" form:"updated_at" query:"updated_at"` }
var ChatResp_Data_DEFAULT *Chat
func (*Chat) GetChatContent ¶
func (*Chat) GetChatModel ¶
func (*Chat) GetConversationID ¶
func (*Chat) GetCreatedAt ¶
func (*Chat) GetIsDeleted ¶
func (*Chat) GetPluginNames ¶
func (*Chat) GetUpdatedAt ¶
type ChatResp ¶
type ChatResp struct { Code int32 `thrift:"code,1" json:"code" form:"code" query:"code"` Message string `thrift:"message,2" json:"message" form:"message" query:"message"` Data *Chat `thrift:"data,3" json:"data" form:"data" query:"data"` }
var ChatServiceGetChatResult_Success_DEFAULT *ChatResp
func NewChatResp ¶
func NewChatResp() *ChatResp
func (*ChatResp) GetMessage ¶
type ChatService ¶
type ChatService interface { GetChat(ctx context.Context, req *GetChatReq) (r *ChatResp, err error) PostChat(ctx context.Context, req *PostChatReq) (r *SSE, err error) }
type ChatServiceClient ¶
type ChatServiceClient struct {
// contains filtered or unexported fields
}
func NewChatServiceClient ¶
func NewChatServiceClient(c thrift.TClient) *ChatServiceClient
func NewChatServiceClientFactory ¶
func NewChatServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *ChatServiceClient
func NewChatServiceClientProtocol ¶
func NewChatServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *ChatServiceClient
func (*ChatServiceClient) Client_ ¶
func (p *ChatServiceClient) Client_() thrift.TClient
func (*ChatServiceClient) GetChat ¶
func (p *ChatServiceClient) GetChat(ctx context.Context, req *GetChatReq) (r *ChatResp, err error)
func (*ChatServiceClient) PostChat ¶
func (p *ChatServiceClient) PostChat(ctx context.Context, req *PostChatReq) (r *SSE, err error)
type ChatServiceGetChatArgs ¶
type ChatServiceGetChatArgs struct {
Req *GetChatReq `thrift:"req,1" json:"req"`
}
func NewChatServiceGetChatArgs ¶
func NewChatServiceGetChatArgs() *ChatServiceGetChatArgs
func (*ChatServiceGetChatArgs) GetReq ¶
func (p *ChatServiceGetChatArgs) GetReq() (v *GetChatReq)
func (*ChatServiceGetChatArgs) IsSetReq ¶
func (p *ChatServiceGetChatArgs) IsSetReq() bool
func (*ChatServiceGetChatArgs) Read ¶
func (p *ChatServiceGetChatArgs) Read(iprot thrift.TProtocol) (err error)
func (*ChatServiceGetChatArgs) ReadField1 ¶
func (p *ChatServiceGetChatArgs) ReadField1(iprot thrift.TProtocol) error
func (*ChatServiceGetChatArgs) String ¶
func (p *ChatServiceGetChatArgs) String() string
type ChatServiceGetChatResult ¶
type ChatServiceGetChatResult struct {
Success *ChatResp `thrift:"success,0" json:"success,omitempty"`
}
func NewChatServiceGetChatResult ¶
func NewChatServiceGetChatResult() *ChatServiceGetChatResult
func (*ChatServiceGetChatResult) GetSuccess ¶
func (p *ChatServiceGetChatResult) GetSuccess() (v *ChatResp)
func (*ChatServiceGetChatResult) IsSetSuccess ¶
func (p *ChatServiceGetChatResult) IsSetSuccess() bool
func (*ChatServiceGetChatResult) Read ¶
func (p *ChatServiceGetChatResult) Read(iprot thrift.TProtocol) (err error)
func (*ChatServiceGetChatResult) ReadField0 ¶
func (p *ChatServiceGetChatResult) ReadField0(iprot thrift.TProtocol) error
func (*ChatServiceGetChatResult) String ¶
func (p *ChatServiceGetChatResult) String() string
type ChatServicePostChatArgs ¶
type ChatServicePostChatArgs struct {
Req *PostChatReq `thrift:"req,1" json:"req"`
}
func NewChatServicePostChatArgs ¶
func NewChatServicePostChatArgs() *ChatServicePostChatArgs
func (*ChatServicePostChatArgs) GetReq ¶
func (p *ChatServicePostChatArgs) GetReq() (v *PostChatReq)
func (*ChatServicePostChatArgs) IsSetReq ¶
func (p *ChatServicePostChatArgs) IsSetReq() bool
func (*ChatServicePostChatArgs) Read ¶
func (p *ChatServicePostChatArgs) Read(iprot thrift.TProtocol) (err error)
func (*ChatServicePostChatArgs) ReadField1 ¶
func (p *ChatServicePostChatArgs) ReadField1(iprot thrift.TProtocol) error
func (*ChatServicePostChatArgs) String ¶
func (p *ChatServicePostChatArgs) String() string
type ChatServicePostChatResult ¶
type ChatServicePostChatResult struct {
Success *SSE `thrift:"success,0" json:"success,omitempty"`
}
func NewChatServicePostChatResult ¶
func NewChatServicePostChatResult() *ChatServicePostChatResult
func (*ChatServicePostChatResult) GetSuccess ¶
func (p *ChatServicePostChatResult) GetSuccess() (v *SSE)
func (*ChatServicePostChatResult) IsSetSuccess ¶
func (p *ChatServicePostChatResult) IsSetSuccess() bool
func (*ChatServicePostChatResult) Read ¶
func (p *ChatServicePostChatResult) Read(iprot thrift.TProtocol) (err error)
func (*ChatServicePostChatResult) ReadField0 ¶
func (p *ChatServicePostChatResult) ReadField0(iprot thrift.TProtocol) error
func (*ChatServicePostChatResult) String ¶
func (p *ChatServicePostChatResult) String() string
type ChatServiceProcessor ¶
type ChatServiceProcessor struct {
// contains filtered or unexported fields
}
func NewChatServiceProcessor ¶
func NewChatServiceProcessor(handler ChatService) *ChatServiceProcessor
func (*ChatServiceProcessor) AddToProcessorMap ¶
func (p *ChatServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*ChatServiceProcessor) GetProcessorFunction ¶
func (p *ChatServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*ChatServiceProcessor) Process ¶
func (p *ChatServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*ChatServiceProcessor) ProcessorMap ¶
func (p *ChatServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type DeletePluginReq ¶
type DeletePluginReq struct {
PluginID int32 `thrift:"plugin_id,1" json:"plugin_id" form:"plugin_id" query:"plugin_id"`
}
var PluginServiceDeletePluginArgs_Req_DEFAULT *DeletePluginReq
func NewDeletePluginReq ¶
func NewDeletePluginReq() *DeletePluginReq
func (*DeletePluginReq) GetPluginID ¶
func (p *DeletePluginReq) GetPluginID() (v int32)
func (*DeletePluginReq) ReadField1 ¶
func (p *DeletePluginReq) ReadField1(iprot thrift.TProtocol) error
func (*DeletePluginReq) String ¶
func (p *DeletePluginReq) String() string
type GetChatReq ¶
type GetChatReq struct {
ConversationID string `thrift:"conversation_id,1" json:"conversation_id" form:"conversation_id" query:"conversation_id"`
}
var ChatServiceGetChatArgs_Req_DEFAULT *GetChatReq
func NewGetChatReq ¶
func NewGetChatReq() *GetChatReq
func (*GetChatReq) GetConversationID ¶
func (p *GetChatReq) GetConversationID() (v string)
func (*GetChatReq) ReadField1 ¶
func (p *GetChatReq) ReadField1(iprot thrift.TProtocol) error
func (*GetChatReq) String ¶
func (p *GetChatReq) String() string
type GetPluginReq ¶
type GetPluginReq struct {
PluginID int32 `thrift:"plugin_id,1" json:"plugin_id" form:"plugin_id" query:"plugin_id"`
}
var PluginServiceGetPluginArgs_Req_DEFAULT *GetPluginReq
func NewGetPluginReq ¶
func NewGetPluginReq() *GetPluginReq
func (*GetPluginReq) GetPluginID ¶
func (p *GetPluginReq) GetPluginID() (v int32)
func (*GetPluginReq) ReadField1 ¶
func (p *GetPluginReq) ReadField1(iprot thrift.TProtocol) error
func (*GetPluginReq) String ¶
func (p *GetPluginReq) String() string
type GetPluginsReq ¶
type GetPluginsReq struct { }
var PluginServiceGetPluginsArgs_Req_DEFAULT *GetPluginsReq
func NewGetPluginsReq ¶
func NewGetPluginsReq() *GetPluginsReq
func (*GetPluginsReq) String ¶
func (p *GetPluginsReq) String() string
type Plugin ¶
type Plugin struct { PluginID int32 `thrift:"plugin_id,1" json:"plugin_id" form:"plugin_id" query:"plugin_id"` PluginName string `thrift:"plugin_name,2" json:"plugin_name" form:"plugin_name" query:"plugin_name"` PluginConfigURL string `thrift:"plugin_config_url,3" json:"plugin_config_url" form:"plugin_config_url" query:"plugin_config_url"` PluginOpenapiURL string `thrift:"plugin_openapi_url,4" json:"plugin_openapi_url" form:"plugin_openapi_url" query:"plugin_openapi_url"` PluginConfig string `thrift:"plugin_config,5" json:"plugin_config" form:"plugin_config" query:"plugin_config"` PluginOpenapi string `thrift:"plugin_openapi,6" json:"plugin_openapi" form:"plugin_openapi" query:"plugin_openapi"` IsDeleted bool `thrift:"is_deleted,7" json:"is_deleted" form:"is_deleted" query:"is_deleted"` CreatedAt string `thrift:"created_at,8" json:"created_at" form:"created_at" query:"created_at"` UpdatedAt string `thrift:"updated_at,9" json:"updated_at" form:"updated_at" query:"updated_at"` }
var PluginResp_Data_DEFAULT *Plugin
func (*Plugin) GetCreatedAt ¶
func (*Plugin) GetIsDeleted ¶
func (*Plugin) GetPluginConfig ¶
func (*Plugin) GetPluginConfigURL ¶
func (*Plugin) GetPluginID ¶
func (*Plugin) GetPluginName ¶
func (*Plugin) GetPluginOpenapi ¶
func (*Plugin) GetPluginOpenapiURL ¶
func (*Plugin) GetUpdatedAt ¶
type PluginReq ¶
type PluginReq struct {
PluginURL string `thrift:"plugin_url,1" json:"plugin_url" form:"plugin_url" query:"plugin_url"`
}
var PluginServicePostPluginArgs_Req_DEFAULT *PluginReq
func NewPluginReq ¶
func NewPluginReq() *PluginReq
func (*PluginReq) GetPluginURL ¶
type PluginResp ¶
type PluginResp struct { Code int32 `thrift:"code,1" json:"code" form:"code" query:"code"` Message string `thrift:"message,2" json:"message" form:"message" query:"message"` Data *Plugin `thrift:"data,3" json:"data" form:"data" query:"data"` }
var PluginServiceGetPluginResult_Success_DEFAULT *PluginResp
var PluginServicePostPluginResult_Success_DEFAULT *PluginResp
func NewPluginResp ¶
func NewPluginResp() *PluginResp
func (*PluginResp) GetCode ¶
func (p *PluginResp) GetCode() (v int32)
func (*PluginResp) GetData ¶
func (p *PluginResp) GetData() (v *Plugin)
func (*PluginResp) GetMessage ¶
func (p *PluginResp) GetMessage() (v string)
func (*PluginResp) IsSetData ¶
func (p *PluginResp) IsSetData() bool
func (*PluginResp) ReadField1 ¶
func (p *PluginResp) ReadField1(iprot thrift.TProtocol) error
func (*PluginResp) ReadField2 ¶
func (p *PluginResp) ReadField2(iprot thrift.TProtocol) error
func (*PluginResp) ReadField3 ¶
func (p *PluginResp) ReadField3(iprot thrift.TProtocol) error
func (*PluginResp) String ¶
func (p *PluginResp) String() string
type PluginService ¶
type PluginService interface { GetPlugins(ctx context.Context, req *GetPluginsReq) (r *PluginsResp, err error) GetPlugin(ctx context.Context, req *GetPluginReq) (r *PluginResp, err error) PostPlugin(ctx context.Context, req *PluginReq) (r *PluginResp, err error) DeletePlugin(ctx context.Context, req *DeletePluginReq) (r *SuccessResp, err error) }
type PluginServiceClient ¶
type PluginServiceClient struct {
// contains filtered or unexported fields
}
func NewPluginServiceClient ¶
func NewPluginServiceClient(c thrift.TClient) *PluginServiceClient
func NewPluginServiceClientFactory ¶
func NewPluginServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *PluginServiceClient
func NewPluginServiceClientProtocol ¶
func NewPluginServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *PluginServiceClient
func (*PluginServiceClient) Client_ ¶
func (p *PluginServiceClient) Client_() thrift.TClient
func (*PluginServiceClient) DeletePlugin ¶
func (p *PluginServiceClient) DeletePlugin(ctx context.Context, req *DeletePluginReq) (r *SuccessResp, err error)
func (*PluginServiceClient) GetPlugin ¶
func (p *PluginServiceClient) GetPlugin(ctx context.Context, req *GetPluginReq) (r *PluginResp, err error)
func (*PluginServiceClient) GetPlugins ¶
func (p *PluginServiceClient) GetPlugins(ctx context.Context, req *GetPluginsReq) (r *PluginsResp, err error)
func (*PluginServiceClient) PostPlugin ¶
func (p *PluginServiceClient) PostPlugin(ctx context.Context, req *PluginReq) (r *PluginResp, err error)
type PluginServiceDeletePluginArgs ¶
type PluginServiceDeletePluginArgs struct {
Req *DeletePluginReq `thrift:"req,1" json:"req"`
}
func NewPluginServiceDeletePluginArgs ¶
func NewPluginServiceDeletePluginArgs() *PluginServiceDeletePluginArgs
func (*PluginServiceDeletePluginArgs) GetReq ¶
func (p *PluginServiceDeletePluginArgs) GetReq() (v *DeletePluginReq)
func (*PluginServiceDeletePluginArgs) IsSetReq ¶
func (p *PluginServiceDeletePluginArgs) IsSetReq() bool
func (*PluginServiceDeletePluginArgs) Read ¶
func (p *PluginServiceDeletePluginArgs) Read(iprot thrift.TProtocol) (err error)
func (*PluginServiceDeletePluginArgs) ReadField1 ¶
func (p *PluginServiceDeletePluginArgs) ReadField1(iprot thrift.TProtocol) error
func (*PluginServiceDeletePluginArgs) String ¶
func (p *PluginServiceDeletePluginArgs) String() string
type PluginServiceDeletePluginResult ¶
type PluginServiceDeletePluginResult struct {
Success *SuccessResp `thrift:"success,0" json:"success,omitempty"`
}
func NewPluginServiceDeletePluginResult ¶
func NewPluginServiceDeletePluginResult() *PluginServiceDeletePluginResult
func (*PluginServiceDeletePluginResult) GetSuccess ¶
func (p *PluginServiceDeletePluginResult) GetSuccess() (v *SuccessResp)
func (*PluginServiceDeletePluginResult) IsSetSuccess ¶
func (p *PluginServiceDeletePluginResult) IsSetSuccess() bool
func (*PluginServiceDeletePluginResult) Read ¶
func (p *PluginServiceDeletePluginResult) Read(iprot thrift.TProtocol) (err error)
func (*PluginServiceDeletePluginResult) ReadField0 ¶
func (p *PluginServiceDeletePluginResult) ReadField0(iprot thrift.TProtocol) error
func (*PluginServiceDeletePluginResult) String ¶
func (p *PluginServiceDeletePluginResult) String() string
type PluginServiceGetPluginArgs ¶
type PluginServiceGetPluginArgs struct {
Req *GetPluginReq `thrift:"req,1" json:"req"`
}
func NewPluginServiceGetPluginArgs ¶
func NewPluginServiceGetPluginArgs() *PluginServiceGetPluginArgs
func (*PluginServiceGetPluginArgs) GetReq ¶
func (p *PluginServiceGetPluginArgs) GetReq() (v *GetPluginReq)
func (*PluginServiceGetPluginArgs) IsSetReq ¶
func (p *PluginServiceGetPluginArgs) IsSetReq() bool
func (*PluginServiceGetPluginArgs) Read ¶
func (p *PluginServiceGetPluginArgs) Read(iprot thrift.TProtocol) (err error)
func (*PluginServiceGetPluginArgs) ReadField1 ¶
func (p *PluginServiceGetPluginArgs) ReadField1(iprot thrift.TProtocol) error
func (*PluginServiceGetPluginArgs) String ¶
func (p *PluginServiceGetPluginArgs) String() string
type PluginServiceGetPluginResult ¶
type PluginServiceGetPluginResult struct {
Success *PluginResp `thrift:"success,0" json:"success,omitempty"`
}
func NewPluginServiceGetPluginResult ¶
func NewPluginServiceGetPluginResult() *PluginServiceGetPluginResult
func (*PluginServiceGetPluginResult) GetSuccess ¶
func (p *PluginServiceGetPluginResult) GetSuccess() (v *PluginResp)
func (*PluginServiceGetPluginResult) IsSetSuccess ¶
func (p *PluginServiceGetPluginResult) IsSetSuccess() bool
func (*PluginServiceGetPluginResult) Read ¶
func (p *PluginServiceGetPluginResult) Read(iprot thrift.TProtocol) (err error)
func (*PluginServiceGetPluginResult) ReadField0 ¶
func (p *PluginServiceGetPluginResult) ReadField0(iprot thrift.TProtocol) error
func (*PluginServiceGetPluginResult) String ¶
func (p *PluginServiceGetPluginResult) String() string
type PluginServiceGetPluginsArgs ¶
type PluginServiceGetPluginsArgs struct {
Req *GetPluginsReq `thrift:"req,1" json:"req"`
}
func NewPluginServiceGetPluginsArgs ¶
func NewPluginServiceGetPluginsArgs() *PluginServiceGetPluginsArgs
func (*PluginServiceGetPluginsArgs) GetReq ¶
func (p *PluginServiceGetPluginsArgs) GetReq() (v *GetPluginsReq)
func (*PluginServiceGetPluginsArgs) IsSetReq ¶
func (p *PluginServiceGetPluginsArgs) IsSetReq() bool
func (*PluginServiceGetPluginsArgs) Read ¶
func (p *PluginServiceGetPluginsArgs) Read(iprot thrift.TProtocol) (err error)
func (*PluginServiceGetPluginsArgs) ReadField1 ¶
func (p *PluginServiceGetPluginsArgs) ReadField1(iprot thrift.TProtocol) error
func (*PluginServiceGetPluginsArgs) String ¶
func (p *PluginServiceGetPluginsArgs) String() string
type PluginServiceGetPluginsResult ¶
type PluginServiceGetPluginsResult struct {
Success *PluginsResp `thrift:"success,0" json:"success,omitempty"`
}
func NewPluginServiceGetPluginsResult ¶
func NewPluginServiceGetPluginsResult() *PluginServiceGetPluginsResult
func (*PluginServiceGetPluginsResult) GetSuccess ¶
func (p *PluginServiceGetPluginsResult) GetSuccess() (v *PluginsResp)
func (*PluginServiceGetPluginsResult) IsSetSuccess ¶
func (p *PluginServiceGetPluginsResult) IsSetSuccess() bool
func (*PluginServiceGetPluginsResult) Read ¶
func (p *PluginServiceGetPluginsResult) Read(iprot thrift.TProtocol) (err error)
func (*PluginServiceGetPluginsResult) ReadField0 ¶
func (p *PluginServiceGetPluginsResult) ReadField0(iprot thrift.TProtocol) error
func (*PluginServiceGetPluginsResult) String ¶
func (p *PluginServiceGetPluginsResult) String() string
type PluginServicePostPluginArgs ¶
type PluginServicePostPluginArgs struct {
Req *PluginReq `thrift:"req,1" json:"req"`
}
func NewPluginServicePostPluginArgs ¶
func NewPluginServicePostPluginArgs() *PluginServicePostPluginArgs
func (*PluginServicePostPluginArgs) GetReq ¶
func (p *PluginServicePostPluginArgs) GetReq() (v *PluginReq)
func (*PluginServicePostPluginArgs) IsSetReq ¶
func (p *PluginServicePostPluginArgs) IsSetReq() bool
func (*PluginServicePostPluginArgs) Read ¶
func (p *PluginServicePostPluginArgs) Read(iprot thrift.TProtocol) (err error)
func (*PluginServicePostPluginArgs) ReadField1 ¶
func (p *PluginServicePostPluginArgs) ReadField1(iprot thrift.TProtocol) error
func (*PluginServicePostPluginArgs) String ¶
func (p *PluginServicePostPluginArgs) String() string
type PluginServicePostPluginResult ¶
type PluginServicePostPluginResult struct {
Success *PluginResp `thrift:"success,0" json:"success,omitempty"`
}
func NewPluginServicePostPluginResult ¶
func NewPluginServicePostPluginResult() *PluginServicePostPluginResult
func (*PluginServicePostPluginResult) GetSuccess ¶
func (p *PluginServicePostPluginResult) GetSuccess() (v *PluginResp)
func (*PluginServicePostPluginResult) IsSetSuccess ¶
func (p *PluginServicePostPluginResult) IsSetSuccess() bool
func (*PluginServicePostPluginResult) Read ¶
func (p *PluginServicePostPluginResult) Read(iprot thrift.TProtocol) (err error)
func (*PluginServicePostPluginResult) ReadField0 ¶
func (p *PluginServicePostPluginResult) ReadField0(iprot thrift.TProtocol) error
func (*PluginServicePostPluginResult) String ¶
func (p *PluginServicePostPluginResult) String() string
type PluginServiceProcessor ¶
type PluginServiceProcessor struct {
// contains filtered or unexported fields
}
func NewPluginServiceProcessor ¶
func NewPluginServiceProcessor(handler PluginService) *PluginServiceProcessor
func (*PluginServiceProcessor) AddToProcessorMap ¶
func (p *PluginServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*PluginServiceProcessor) GetProcessorFunction ¶
func (p *PluginServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*PluginServiceProcessor) Process ¶
func (p *PluginServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*PluginServiceProcessor) ProcessorMap ¶
func (p *PluginServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type PluginsResp ¶
type PluginsResp struct { Code int32 `thrift:"code,1" json:"code" form:"code" query:"code"` Message string `thrift:"message,2" json:"message" form:"message" query:"message"` Data []*Plugin `thrift:"data,3" json:"data" form:"data" query:"data"` }
var PluginServiceGetPluginsResult_Success_DEFAULT *PluginsResp
func NewPluginsResp ¶
func NewPluginsResp() *PluginsResp
func (*PluginsResp) GetCode ¶
func (p *PluginsResp) GetCode() (v int32)
func (*PluginsResp) GetData ¶
func (p *PluginsResp) GetData() (v []*Plugin)
func (*PluginsResp) GetMessage ¶
func (p *PluginsResp) GetMessage() (v string)
func (*PluginsResp) ReadField1 ¶
func (p *PluginsResp) ReadField1(iprot thrift.TProtocol) error
func (*PluginsResp) ReadField2 ¶
func (p *PluginsResp) ReadField2(iprot thrift.TProtocol) error
func (*PluginsResp) ReadField3 ¶
func (p *PluginsResp) ReadField3(iprot thrift.TProtocol) error
func (*PluginsResp) String ¶
func (p *PluginsResp) String() string
type PostChatReq ¶
type PostChatReq struct { ConversationID string `thrift:"conversation_id,1" json:"conversation_id" form:"conversation_id" query:"conversation_id"` PluginNames []string `thrift:"plugin_names,2" json:"plugin_names" form:"plugin_names" query:"plugin_names"` ChatModel string `thrift:"chat_model,3" json:"chat_model" form:"chat_model" query:"chat_model"` Prompt string `thrift:"prompt,4" json:"prompt" form:"prompt" query:"prompt"` }
var ChatServicePostChatArgs_Req_DEFAULT *PostChatReq
func NewPostChatReq ¶
func NewPostChatReq() *PostChatReq
func (*PostChatReq) GetChatModel ¶
func (p *PostChatReq) GetChatModel() (v string)
func (*PostChatReq) GetConversationID ¶
func (p *PostChatReq) GetConversationID() (v string)
func (*PostChatReq) GetPluginNames ¶
func (p *PostChatReq) GetPluginNames() (v []string)
func (*PostChatReq) GetPrompt ¶
func (p *PostChatReq) GetPrompt() (v string)
func (*PostChatReq) ReadField1 ¶
func (p *PostChatReq) ReadField1(iprot thrift.TProtocol) error
func (*PostChatReq) ReadField2 ¶
func (p *PostChatReq) ReadField2(iprot thrift.TProtocol) error
func (*PostChatReq) ReadField3 ¶
func (p *PostChatReq) ReadField3(iprot thrift.TProtocol) error
func (*PostChatReq) ReadField4 ¶
func (p *PostChatReq) ReadField4(iprot thrift.TProtocol) error
func (*PostChatReq) String ¶
func (p *PostChatReq) String() string
type SuccessResp ¶
type SuccessResp struct { Code int32 `thrift:"code,1" json:"code" form:"code" query:"code"` Message string `thrift:"message,2" json:"message" form:"message" query:"message"` }
var PluginServiceDeletePluginResult_Success_DEFAULT *SuccessResp
func NewSuccessResp ¶
func NewSuccessResp() *SuccessResp
func (*SuccessResp) GetCode ¶
func (p *SuccessResp) GetCode() (v int32)
func (*SuccessResp) GetMessage ¶
func (p *SuccessResp) GetMessage() (v string)
func (*SuccessResp) ReadField1 ¶
func (p *SuccessResp) ReadField1(iprot thrift.TProtocol) error
func (*SuccessResp) ReadField2 ¶
func (p *SuccessResp) ReadField2(iprot thrift.TProtocol) error
func (*SuccessResp) String ¶
func (p *SuccessResp) String() string
Click to show internal directories.
Click to hide internal directories.