service

package
v0.0.0-...-d769f72 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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 NewChat

func NewChat() *Chat

func (*Chat) GetChatContent

func (p *Chat) GetChatContent() (v string)

func (*Chat) GetChatID

func (p *Chat) GetChatID() (v int32)

func (*Chat) GetChatModel

func (p *Chat) GetChatModel() (v string)

func (*Chat) GetConversationID

func (p *Chat) GetConversationID() (v string)

func (*Chat) GetCreatedAt

func (p *Chat) GetCreatedAt() (v string)

func (*Chat) GetIsDeleted

func (p *Chat) GetIsDeleted() (v bool)

func (*Chat) GetPluginNames

func (p *Chat) GetPluginNames() (v []string)

func (*Chat) GetUpdatedAt

func (p *Chat) GetUpdatedAt() (v string)

func (*Chat) GetUserID

func (p *Chat) GetUserID() (v int32)

func (*Chat) Read

func (p *Chat) Read(iprot thrift.TProtocol) (err error)

func (*Chat) ReadField1

func (p *Chat) ReadField1(iprot thrift.TProtocol) error

func (*Chat) ReadField2

func (p *Chat) ReadField2(iprot thrift.TProtocol) error

func (*Chat) ReadField3

func (p *Chat) ReadField3(iprot thrift.TProtocol) error

func (*Chat) ReadField4

func (p *Chat) ReadField4(iprot thrift.TProtocol) error

func (*Chat) ReadField5

func (p *Chat) ReadField5(iprot thrift.TProtocol) error

func (*Chat) ReadField6

func (p *Chat) ReadField6(iprot thrift.TProtocol) error

func (*Chat) ReadField7

func (p *Chat) ReadField7(iprot thrift.TProtocol) error

func (*Chat) ReadField8

func (p *Chat) ReadField8(iprot thrift.TProtocol) error

func (*Chat) ReadField9

func (p *Chat) ReadField9(iprot thrift.TProtocol) error

func (*Chat) String

func (p *Chat) String() string

func (*Chat) Write

func (p *Chat) Write(oprot thrift.TProtocol) (err error)

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) GetCode

func (p *ChatResp) GetCode() (v int32)

func (*ChatResp) GetData

func (p *ChatResp) GetData() (v *Chat)

func (*ChatResp) GetMessage

func (p *ChatResp) GetMessage() (v string)

func (*ChatResp) IsSetData

func (p *ChatResp) IsSetData() bool

func (*ChatResp) Read

func (p *ChatResp) Read(iprot thrift.TProtocol) (err error)

func (*ChatResp) ReadField1

func (p *ChatResp) ReadField1(iprot thrift.TProtocol) error

func (*ChatResp) ReadField2

func (p *ChatResp) ReadField2(iprot thrift.TProtocol) error

func (*ChatResp) ReadField3

func (p *ChatResp) ReadField3(iprot thrift.TProtocol) error

func (*ChatResp) String

func (p *ChatResp) String() string

func (*ChatResp) Write

func (p *ChatResp) Write(oprot thrift.TProtocol) (err error)

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 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

func (*ChatServiceGetChatArgs) Write

func (p *ChatServiceGetChatArgs) Write(oprot thrift.TProtocol) (err error)

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

func (*ChatServiceGetChatResult) Write

func (p *ChatServiceGetChatResult) Write(oprot thrift.TProtocol) (err error)

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

func (*ChatServicePostChatArgs) Write

func (p *ChatServicePostChatArgs) Write(oprot thrift.TProtocol) (err error)

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

func (*ChatServicePostChatResult) Write

func (p *ChatServicePostChatResult) Write(oprot thrift.TProtocol) (err error)

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) Read

func (p *DeletePluginReq) Read(iprot thrift.TProtocol) (err error)

func (*DeletePluginReq) ReadField1

func (p *DeletePluginReq) ReadField1(iprot thrift.TProtocol) error

func (*DeletePluginReq) String

func (p *DeletePluginReq) String() string

func (*DeletePluginReq) Write

func (p *DeletePluginReq) Write(oprot thrift.TProtocol) (err error)

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) Read

func (p *GetChatReq) Read(iprot thrift.TProtocol) (err error)

func (*GetChatReq) ReadField1

func (p *GetChatReq) ReadField1(iprot thrift.TProtocol) error

func (*GetChatReq) String

func (p *GetChatReq) String() string

func (*GetChatReq) Write

func (p *GetChatReq) Write(oprot thrift.TProtocol) (err error)

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) Read

func (p *GetPluginReq) Read(iprot thrift.TProtocol) (err error)

func (*GetPluginReq) ReadField1

func (p *GetPluginReq) ReadField1(iprot thrift.TProtocol) error

func (*GetPluginReq) String

func (p *GetPluginReq) String() string

func (*GetPluginReq) Write

func (p *GetPluginReq) Write(oprot thrift.TProtocol) (err error)

type GetPluginsReq

type GetPluginsReq struct {
}
var PluginServiceGetPluginsArgs_Req_DEFAULT *GetPluginsReq

func NewGetPluginsReq

func NewGetPluginsReq() *GetPluginsReq

func (*GetPluginsReq) Read

func (p *GetPluginsReq) Read(iprot thrift.TProtocol) (err error)

func (*GetPluginsReq) String

func (p *GetPluginsReq) String() string

func (*GetPluginsReq) Write

func (p *GetPluginsReq) Write(oprot thrift.TProtocol) (err error)

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 NewPlugin

func NewPlugin() *Plugin

func (*Plugin) GetCreatedAt

func (p *Plugin) GetCreatedAt() (v string)

func (*Plugin) GetIsDeleted

func (p *Plugin) GetIsDeleted() (v bool)

func (*Plugin) GetPluginConfig

func (p *Plugin) GetPluginConfig() (v string)

func (*Plugin) GetPluginConfigURL

func (p *Plugin) GetPluginConfigURL() (v string)

func (*Plugin) GetPluginID

func (p *Plugin) GetPluginID() (v int32)

func (*Plugin) GetPluginName

func (p *Plugin) GetPluginName() (v string)

func (*Plugin) GetPluginOpenapi

func (p *Plugin) GetPluginOpenapi() (v string)

func (*Plugin) GetPluginOpenapiURL

func (p *Plugin) GetPluginOpenapiURL() (v string)

func (*Plugin) GetUpdatedAt

func (p *Plugin) GetUpdatedAt() (v string)

func (*Plugin) Read

func (p *Plugin) Read(iprot thrift.TProtocol) (err error)

func (*Plugin) ReadField1

func (p *Plugin) ReadField1(iprot thrift.TProtocol) error

func (*Plugin) ReadField2

func (p *Plugin) ReadField2(iprot thrift.TProtocol) error

func (*Plugin) ReadField3

func (p *Plugin) ReadField3(iprot thrift.TProtocol) error

func (*Plugin) ReadField4

func (p *Plugin) ReadField4(iprot thrift.TProtocol) error

func (*Plugin) ReadField5

func (p *Plugin) ReadField5(iprot thrift.TProtocol) error

func (*Plugin) ReadField6

func (p *Plugin) ReadField6(iprot thrift.TProtocol) error

func (*Plugin) ReadField7

func (p *Plugin) ReadField7(iprot thrift.TProtocol) error

func (*Plugin) ReadField8

func (p *Plugin) ReadField8(iprot thrift.TProtocol) error

func (*Plugin) ReadField9

func (p *Plugin) ReadField9(iprot thrift.TProtocol) error

func (*Plugin) String

func (p *Plugin) String() string

func (*Plugin) Write

func (p *Plugin) Write(oprot thrift.TProtocol) (err error)

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

func (p *PluginReq) GetPluginURL() (v string)

func (*PluginReq) Read

func (p *PluginReq) Read(iprot thrift.TProtocol) (err error)

func (*PluginReq) ReadField1

func (p *PluginReq) ReadField1(iprot thrift.TProtocol) error

func (*PluginReq) String

func (p *PluginReq) String() string

func (*PluginReq) Write

func (p *PluginReq) Write(oprot thrift.TProtocol) (err error)

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) Read

func (p *PluginResp) Read(iprot thrift.TProtocol) (err error)

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

func (*PluginResp) Write

func (p *PluginResp) Write(oprot thrift.TProtocol) (err error)

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 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 (*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 (*PluginServiceDeletePluginArgs) Write

func (p *PluginServiceDeletePluginArgs) Write(oprot thrift.TProtocol) (err error)

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 (*PluginServiceDeletePluginResult) ReadField0

func (*PluginServiceDeletePluginResult) String

func (*PluginServiceDeletePluginResult) Write

func (p *PluginServiceDeletePluginResult) Write(oprot thrift.TProtocol) (err error)

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

func (*PluginServiceGetPluginArgs) Write

func (p *PluginServiceGetPluginArgs) Write(oprot thrift.TProtocol) (err error)

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 (*PluginServiceGetPluginResult) Write

func (p *PluginServiceGetPluginResult) Write(oprot thrift.TProtocol) (err error)

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

func (*PluginServiceGetPluginsArgs) Write

func (p *PluginServiceGetPluginsArgs) Write(oprot thrift.TProtocol) (err error)

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 (*PluginServiceGetPluginsResult) Write

func (p *PluginServiceGetPluginsResult) Write(oprot thrift.TProtocol) (err error)

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

func (*PluginServicePostPluginArgs) Write

func (p *PluginServicePostPluginArgs) Write(oprot thrift.TProtocol) (err error)

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 (*PluginServicePostPluginResult) Write

func (p *PluginServicePostPluginResult) Write(oprot thrift.TProtocol) (err error)

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

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) Read

func (p *PluginsResp) Read(iprot thrift.TProtocol) (err error)

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

func (*PluginsResp) Write

func (p *PluginsResp) Write(oprot thrift.TProtocol) (err error)

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) Read

func (p *PostChatReq) Read(iprot thrift.TProtocol) (err error)

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

func (*PostChatReq) Write

func (p *PostChatReq) Write(oprot thrift.TProtocol) (err error)

type SSE

type SSE struct {
}
var ChatServicePostChatResult_Success_DEFAULT *SSE

func NewSSE

func NewSSE() *SSE

func (*SSE) Read

func (p *SSE) Read(iprot thrift.TProtocol) (err error)

func (*SSE) String

func (p *SSE) String() string

func (*SSE) Write

func (p *SSE) Write(oprot thrift.TProtocol) (err error)

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) Read

func (p *SuccessResp) Read(iprot thrift.TProtocol) (err error)

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

func (*SuccessResp) Write

func (p *SuccessResp) Write(oprot thrift.TProtocol) (err error)

Jump to

Keyboard shortcuts

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