Documentation ¶
Index ¶
- Variables
- type ChatReq
- func (p *ChatReq) BLength() int
- func (p *ChatReq) DeepEqual(ano *ChatReq) bool
- func (p *ChatReq) FastRead(buf []byte) (int, error)
- func (p *ChatReq) FastReadField1(buf []byte) (int, error)
- func (p *ChatReq) FastReadField2(buf []byte) (int, error)
- func (p *ChatReq) FastReadField3(buf []byte) (int, error)
- func (p *ChatReq) FastWrite(buf []byte) int
- func (p *ChatReq) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *ChatReq) Field1DeepEqual(src string) bool
- func (p *ChatReq) Field2DeepEqual(src int64) bool
- func (p *ChatReq) Field3DeepEqual(src *openai.ChatCompletionRequest) bool
- func (p *ChatReq) GetModelId() (v int64)
- func (p *ChatReq) GetOpenaiReq() (v *openai.ChatCompletionRequest)
- func (p *ChatReq) GetToken() (v string)
- func (p *ChatReq) InitDefault()
- func (p *ChatReq) IsSetOpenaiReq() bool
- func (p *ChatReq) Read(iprot thrift.TProtocol) (err error)
- func (p *ChatReq) ReadField1(iprot thrift.TProtocol) error
- func (p *ChatReq) ReadField2(iprot thrift.TProtocol) error
- func (p *ChatReq) ReadField3(iprot thrift.TProtocol) error
- func (p *ChatReq) SetModelId(val int64)
- func (p *ChatReq) SetOpenaiReq(val *openai.ChatCompletionRequest)
- func (p *ChatReq) SetToken(val string)
- func (p *ChatReq) String() string
- func (p *ChatReq) Write(oprot thrift.TProtocol) (err error)
- type ChatResp
- func (p *ChatResp) BLength() int
- func (p *ChatResp) DeepEqual(ano *ChatResp) bool
- func (p *ChatResp) FastRead(buf []byte) (int, error)
- func (p *ChatResp) FastReadField1(buf []byte) (int, error)
- func (p *ChatResp) FastWrite(buf []byte) int
- func (p *ChatResp) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *ChatResp) Field1DeepEqual(src *openai.ChatCompletionStreamResponse) bool
- func (p *ChatResp) GetOpenaiResp() (v *openai.ChatCompletionStreamResponse)
- func (p *ChatResp) InitDefault()
- func (p *ChatResp) IsSetOpenaiResp() bool
- func (p *ChatResp) Read(iprot thrift.TProtocol) (err error)
- func (p *ChatResp) ReadField1(iprot thrift.TProtocol) error
- func (p *ChatResp) SetOpenaiResp(val *openai.ChatCompletionStreamResponse)
- func (p *ChatResp) String() string
- func (p *ChatResp) Write(oprot thrift.TProtocol) (err error)
- type CreateModelReq
- func (p *CreateModelReq) BLength() int
- func (p *CreateModelReq) DeepEqual(ano *CreateModelReq) bool
- func (p *CreateModelReq) FastRead(buf []byte) (int, error)
- func (p *CreateModelReq) FastReadField1(buf []byte) (int, error)
- func (p *CreateModelReq) FastReadField2(buf []byte) (int, error)
- func (p *CreateModelReq) FastReadField3(buf []byte) (int, error)
- func (p *CreateModelReq) FastReadField4(buf []byte) (int, error)
- func (p *CreateModelReq) FastReadField5(buf []byte) (int, error)
- func (p *CreateModelReq) FastReadField6(buf []byte) (int, error)
- func (p *CreateModelReq) FastReadField7(buf []byte) (int, error)
- func (p *CreateModelReq) FastReadField8(buf []byte) (int, error)
- func (p *CreateModelReq) FastReadField9(buf []byte) (int, error)
- func (p *CreateModelReq) FastWrite(buf []byte) int
- func (p *CreateModelReq) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *CreateModelReq) Field1DeepEqual(src string) bool
- func (p *CreateModelReq) Field2DeepEqual(src string) bool
- func (p *CreateModelReq) Field3DeepEqual(src string) bool
- func (p *CreateModelReq) Field4DeepEqual(src string) bool
- func (p *CreateModelReq) Field5DeepEqual(src string) bool
- func (p *CreateModelReq) Field6DeepEqual(src string) bool
- func (p *CreateModelReq) Field7DeepEqual(src string) bool
- func (p *CreateModelReq) Field8DeepEqual(src int64) bool
- func (p *CreateModelReq) Field9DeepEqual(src []string) bool
- func (p *CreateModelReq) GetDescription() (v string)
- func (p *CreateModelReq) GetInputPrice() (v string)
- func (p *CreateModelReq) GetLogo() (v string)
- func (p *CreateModelReq) GetMaxToken() (v int64)
- func (p *CreateModelReq) GetModelKey() (v string)
- func (p *CreateModelReq) GetName() (v string)
- func (p *CreateModelReq) GetOutputPrice() (v string)
- func (p *CreateModelReq) GetSource() (v string)
- func (p *CreateModelReq) GetTags() (v []string)
- func (p *CreateModelReq) InitDefault()
- func (p *CreateModelReq) Read(iprot thrift.TProtocol) (err error)
- func (p *CreateModelReq) ReadField1(iprot thrift.TProtocol) error
- func (p *CreateModelReq) ReadField2(iprot thrift.TProtocol) error
- func (p *CreateModelReq) ReadField3(iprot thrift.TProtocol) error
- func (p *CreateModelReq) ReadField4(iprot thrift.TProtocol) error
- func (p *CreateModelReq) ReadField5(iprot thrift.TProtocol) error
- func (p *CreateModelReq) ReadField6(iprot thrift.TProtocol) error
- func (p *CreateModelReq) ReadField7(iprot thrift.TProtocol) error
- func (p *CreateModelReq) ReadField8(iprot thrift.TProtocol) error
- func (p *CreateModelReq) ReadField9(iprot thrift.TProtocol) error
- func (p *CreateModelReq) SetDescription(val string)
- func (p *CreateModelReq) SetInputPrice(val string)
- func (p *CreateModelReq) SetLogo(val string)
- func (p *CreateModelReq) SetMaxToken(val int64)
- func (p *CreateModelReq) SetModelKey(val string)
- func (p *CreateModelReq) SetName(val string)
- func (p *CreateModelReq) SetOutputPrice(val string)
- func (p *CreateModelReq) SetSource(val string)
- func (p *CreateModelReq) SetTags(val []string)
- func (p *CreateModelReq) String() string
- func (p *CreateModelReq) Write(oprot thrift.TProtocol) (err error)
- type GenTokenReq
- func (p *GenTokenReq) BLength() int
- func (p *GenTokenReq) DeepEqual(ano *GenTokenReq) bool
- func (p *GenTokenReq) FastRead(buf []byte) (int, error)
- func (p *GenTokenReq) FastReadField1(buf []byte) (int, error)
- func (p *GenTokenReq) FastReadField2(buf []byte) (int, error)
- func (p *GenTokenReq) FastReadField3(buf []byte) (int, error)
- func (p *GenTokenReq) FastReadField4(buf []byte) (int, error)
- func (p *GenTokenReq) FastWrite(buf []byte) int
- func (p *GenTokenReq) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *GenTokenReq) Field1DeepEqual(src int64) bool
- func (p *GenTokenReq) Field2DeepEqual(src *int64) bool
- func (p *GenTokenReq) Field3DeepEqual(src int64) bool
- func (p *GenTokenReq) Field4DeepEqual(src int32) bool
- func (p *GenTokenReq) GetAppId() (v int64)
- func (p *GenTokenReq) GetCallLimit() (v int32)
- func (p *GenTokenReq) GetConversationId() (v int64)
- func (p *GenTokenReq) GetPluginId() (v int64)
- func (p *GenTokenReq) InitDefault()
- func (p *GenTokenReq) IsSetPluginId() bool
- func (p *GenTokenReq) Read(iprot thrift.TProtocol) (err error)
- func (p *GenTokenReq) ReadField1(iprot thrift.TProtocol) error
- func (p *GenTokenReq) ReadField2(iprot thrift.TProtocol) error
- func (p *GenTokenReq) ReadField3(iprot thrift.TProtocol) error
- func (p *GenTokenReq) ReadField4(iprot thrift.TProtocol) error
- func (p *GenTokenReq) SetAppId(val int64)
- func (p *GenTokenReq) SetCallLimit(val int32)
- func (p *GenTokenReq) SetConversationId(val int64)
- func (p *GenTokenReq) SetPluginId(val *int64)
- func (p *GenTokenReq) String() string
- func (p *GenTokenReq) Write(oprot thrift.TProtocol) (err error)
- type GenTokenResp
- func (p *GenTokenResp) BLength() int
- func (p *GenTokenResp) DeepEqual(ano *GenTokenResp) bool
- func (p *GenTokenResp) FastRead(buf []byte) (int, error)
- func (p *GenTokenResp) FastReadField1(buf []byte) (int, error)
- func (p *GenTokenResp) FastReadField2(buf []byte) (int, error)
- func (p *GenTokenResp) FastWrite(buf []byte) int
- func (p *GenTokenResp) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *GenTokenResp) Field1DeepEqual(src string) bool
- func (p *GenTokenResp) Field2DeepEqual(src *base.Time) bool
- func (p *GenTokenResp) GetExpiredAt() (v *base.Time)
- func (p *GenTokenResp) GetToken() (v string)
- func (p *GenTokenResp) InitDefault()
- func (p *GenTokenResp) IsSetExpiredAt() bool
- func (p *GenTokenResp) Read(iprot thrift.TProtocol) (err error)
- func (p *GenTokenResp) ReadField1(iprot thrift.TProtocol) error
- func (p *GenTokenResp) ReadField2(iprot thrift.TProtocol) error
- func (p *GenTokenResp) SetExpiredAt(val *base.Time)
- func (p *GenTokenResp) SetToken(val string)
- func (p *GenTokenResp) String() string
- func (p *GenTokenResp) Write(oprot thrift.TProtocol) (err error)
- type ListModelReq
- func (p *ListModelReq) BLength() int
- func (p *ListModelReq) DeepEqual(ano *ListModelReq) bool
- func (p *ListModelReq) FastRead(buf []byte) (int, error)
- func (p *ListModelReq) FastReadField1(buf []byte) (int, error)
- func (p *ListModelReq) FastReadField2(buf []byte) (int, error)
- func (p *ListModelReq) FastReadField3(buf []byte) (int, error)
- func (p *ListModelReq) FastWrite(buf []byte) int
- func (p *ListModelReq) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *ListModelReq) Field1DeepEqual(src *base.PaginationReq) bool
- func (p *ListModelReq) Field2DeepEqual(src *string) bool
- func (p *ListModelReq) Field3DeepEqual(src *string) bool
- func (p *ListModelReq) GetName() (v string)
- func (p *ListModelReq) GetPagination() (v *base.PaginationReq)
- func (p *ListModelReq) GetSource() (v string)
- func (p *ListModelReq) InitDefault()
- func (p *ListModelReq) IsSetName() bool
- func (p *ListModelReq) IsSetPagination() bool
- func (p *ListModelReq) IsSetSource() bool
- func (p *ListModelReq) Read(iprot thrift.TProtocol) (err error)
- func (p *ListModelReq) ReadField1(iprot thrift.TProtocol) error
- func (p *ListModelReq) ReadField2(iprot thrift.TProtocol) error
- func (p *ListModelReq) ReadField3(iprot thrift.TProtocol) error
- func (p *ListModelReq) SetName(val *string)
- func (p *ListModelReq) SetPagination(val *base.PaginationReq)
- func (p *ListModelReq) SetSource(val *string)
- func (p *ListModelReq) String() string
- func (p *ListModelReq) Write(oprot thrift.TProtocol) (err error)
- type ListModelResp
- func (p *ListModelResp) BLength() int
- func (p *ListModelResp) DeepEqual(ano *ListModelResp) bool
- func (p *ListModelResp) FastRead(buf []byte) (int, error)
- func (p *ListModelResp) FastReadField1(buf []byte) (int, error)
- func (p *ListModelResp) FastReadField2(buf []byte) (int, error)
- func (p *ListModelResp) FastWrite(buf []byte) int
- func (p *ListModelResp) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *ListModelResp) Field1DeepEqual(src *base.PaginationResp) bool
- func (p *ListModelResp) Field2DeepEqual(src []*Model) bool
- func (p *ListModelResp) GetModels() (v []*Model)
- func (p *ListModelResp) GetPagination() (v *base.PaginationResp)
- func (p *ListModelResp) InitDefault()
- func (p *ListModelResp) IsSetPagination() bool
- func (p *ListModelResp) Read(iprot thrift.TProtocol) (err error)
- func (p *ListModelResp) ReadField1(iprot thrift.TProtocol) error
- func (p *ListModelResp) ReadField2(iprot thrift.TProtocol) error
- func (p *ListModelResp) SetModels(val []*Model)
- func (p *ListModelResp) SetPagination(val *base.PaginationResp)
- func (p *ListModelResp) String() string
- func (p *ListModelResp) Write(oprot thrift.TProtocol) (err error)
- type Model
- func (p *Model) BLength() int
- func (p *Model) DeepEqual(ano *Model) bool
- func (p *Model) FastRead(buf []byte) (int, error)
- func (p *Model) FastReadField1(buf []byte) (int, error)
- func (p *Model) FastReadField10(buf []byte) (int, error)
- func (p *Model) FastReadField2(buf []byte) (int, error)
- func (p *Model) FastReadField3(buf []byte) (int, error)
- func (p *Model) FastReadField4(buf []byte) (int, error)
- func (p *Model) FastReadField5(buf []byte) (int, error)
- func (p *Model) FastReadField6(buf []byte) (int, error)
- func (p *Model) FastReadField7(buf []byte) (int, error)
- func (p *Model) FastReadField8(buf []byte) (int, error)
- func (p *Model) FastReadField9(buf []byte) (int, error)
- func (p *Model) FastWrite(buf []byte) int
- func (p *Model) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *Model) Field10DeepEqual(src []string) bool
- func (p *Model) Field1DeepEqual(src int64) bool
- func (p *Model) Field2DeepEqual(src string) bool
- func (p *Model) Field3DeepEqual(src string) bool
- func (p *Model) Field4DeepEqual(src string) bool
- func (p *Model) Field5DeepEqual(src string) bool
- func (p *Model) Field6DeepEqual(src string) bool
- func (p *Model) Field7DeepEqual(src string) bool
- func (p *Model) Field8DeepEqual(src string) bool
- func (p *Model) Field9DeepEqual(src int64) bool
- func (p *Model) GetDescription() (v string)
- func (p *Model) GetId() (v int64)
- func (p *Model) GetInputPrice() (v string)
- func (p *Model) GetLogo() (v string)
- func (p *Model) GetMaxToken() (v int64)
- func (p *Model) GetModelKey() (v string)
- func (p *Model) GetName() (v string)
- func (p *Model) GetOutputPrice() (v string)
- func (p *Model) GetSource() (v string)
- func (p *Model) GetTags() (v []string)
- func (p *Model) InitDefault()
- func (p *Model) Read(iprot thrift.TProtocol) (err error)
- func (p *Model) ReadField1(iprot thrift.TProtocol) error
- func (p *Model) ReadField10(iprot thrift.TProtocol) error
- func (p *Model) ReadField2(iprot thrift.TProtocol) error
- func (p *Model) ReadField3(iprot thrift.TProtocol) error
- func (p *Model) ReadField4(iprot thrift.TProtocol) error
- func (p *Model) ReadField5(iprot thrift.TProtocol) error
- func (p *Model) ReadField6(iprot thrift.TProtocol) error
- func (p *Model) ReadField7(iprot thrift.TProtocol) error
- func (p *Model) ReadField8(iprot thrift.TProtocol) error
- func (p *Model) ReadField9(iprot thrift.TProtocol) error
- func (p *Model) SetDescription(val string)
- func (p *Model) SetId(val int64)
- func (p *Model) SetInputPrice(val string)
- func (p *Model) SetLogo(val string)
- func (p *Model) SetMaxToken(val int64)
- func (p *Model) SetModelKey(val string)
- func (p *Model) SetName(val string)
- func (p *Model) SetOutputPrice(val string)
- func (p *Model) SetSource(val string)
- func (p *Model) SetTags(val []string)
- func (p *Model) String() string
- func (p *Model) Write(oprot thrift.TProtocol) (err error)
- type ModelService
- type ModelServiceChatArgs
- func (p *ModelServiceChatArgs) BLength() int
- func (p *ModelServiceChatArgs) DeepEqual(ano *ModelServiceChatArgs) bool
- func (p *ModelServiceChatArgs) FastRead(buf []byte) (int, error)
- func (p *ModelServiceChatArgs) FastReadField1(buf []byte) (int, error)
- func (p *ModelServiceChatArgs) FastWrite(buf []byte) int
- func (p *ModelServiceChatArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *ModelServiceChatArgs) Field1DeepEqual(src *ChatReq) bool
- func (p *ModelServiceChatArgs) GetFirstArgument() interface{}
- func (p *ModelServiceChatArgs) GetReq() (v *ChatReq)
- func (p *ModelServiceChatArgs) InitDefault()
- func (p *ModelServiceChatArgs) IsSetReq() bool
- func (p *ModelServiceChatArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *ModelServiceChatArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *ModelServiceChatArgs) SetReq(val *ChatReq)
- func (p *ModelServiceChatArgs) String() string
- func (p *ModelServiceChatArgs) Write(oprot thrift.TProtocol) (err error)
- type ModelServiceChatResult
- func (p *ModelServiceChatResult) BLength() int
- func (p *ModelServiceChatResult) DeepEqual(ano *ModelServiceChatResult) bool
- func (p *ModelServiceChatResult) FastRead(buf []byte) (int, error)
- func (p *ModelServiceChatResult) FastReadField0(buf []byte) (int, error)
- func (p *ModelServiceChatResult) FastWrite(buf []byte) int
- func (p *ModelServiceChatResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *ModelServiceChatResult) Field0DeepEqual(src *ChatResp) bool
- func (p *ModelServiceChatResult) GetResult() interface{}
- func (p *ModelServiceChatResult) GetSuccess() (v *ChatResp)
- func (p *ModelServiceChatResult) InitDefault()
- func (p *ModelServiceChatResult) IsSetSuccess() bool
- func (p *ModelServiceChatResult) Read(iprot thrift.TProtocol) (err error)
- func (p *ModelServiceChatResult) ReadField0(iprot thrift.TProtocol) error
- func (p *ModelServiceChatResult) SetSuccess(x interface{})
- func (p *ModelServiceChatResult) String() string
- func (p *ModelServiceChatResult) Write(oprot thrift.TProtocol) (err error)
- type ModelServiceCreateModelArgs
- func (p *ModelServiceCreateModelArgs) BLength() int
- func (p *ModelServiceCreateModelArgs) DeepEqual(ano *ModelServiceCreateModelArgs) bool
- func (p *ModelServiceCreateModelArgs) FastRead(buf []byte) (int, error)
- func (p *ModelServiceCreateModelArgs) FastReadField1(buf []byte) (int, error)
- func (p *ModelServiceCreateModelArgs) FastWrite(buf []byte) int
- func (p *ModelServiceCreateModelArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *ModelServiceCreateModelArgs) Field1DeepEqual(src *CreateModelReq) bool
- func (p *ModelServiceCreateModelArgs) GetFirstArgument() interface{}
- func (p *ModelServiceCreateModelArgs) GetReq() (v *CreateModelReq)
- func (p *ModelServiceCreateModelArgs) InitDefault()
- func (p *ModelServiceCreateModelArgs) IsSetReq() bool
- func (p *ModelServiceCreateModelArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *ModelServiceCreateModelArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *ModelServiceCreateModelArgs) SetReq(val *CreateModelReq)
- func (p *ModelServiceCreateModelArgs) String() string
- func (p *ModelServiceCreateModelArgs) Write(oprot thrift.TProtocol) (err error)
- type ModelServiceCreateModelResult
- func (p *ModelServiceCreateModelResult) BLength() int
- func (p *ModelServiceCreateModelResult) DeepEqual(ano *ModelServiceCreateModelResult) bool
- func (p *ModelServiceCreateModelResult) FastRead(buf []byte) (int, error)
- func (p *ModelServiceCreateModelResult) FastReadField0(buf []byte) (int, error)
- func (p *ModelServiceCreateModelResult) FastWrite(buf []byte) int
- func (p *ModelServiceCreateModelResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *ModelServiceCreateModelResult) Field0DeepEqual(src *base.Empty) bool
- func (p *ModelServiceCreateModelResult) GetResult() interface{}
- func (p *ModelServiceCreateModelResult) GetSuccess() (v *base.Empty)
- func (p *ModelServiceCreateModelResult) InitDefault()
- func (p *ModelServiceCreateModelResult) IsSetSuccess() bool
- func (p *ModelServiceCreateModelResult) Read(iprot thrift.TProtocol) (err error)
- func (p *ModelServiceCreateModelResult) ReadField0(iprot thrift.TProtocol) error
- func (p *ModelServiceCreateModelResult) SetSuccess(x interface{})
- func (p *ModelServiceCreateModelResult) String() string
- func (p *ModelServiceCreateModelResult) Write(oprot thrift.TProtocol) (err error)
- type ModelServiceDeleteModelArgs
- func (p *ModelServiceDeleteModelArgs) BLength() int
- func (p *ModelServiceDeleteModelArgs) DeepEqual(ano *ModelServiceDeleteModelArgs) bool
- func (p *ModelServiceDeleteModelArgs) FastRead(buf []byte) (int, error)
- func (p *ModelServiceDeleteModelArgs) FastReadField1(buf []byte) (int, error)
- func (p *ModelServiceDeleteModelArgs) FastWrite(buf []byte) int
- func (p *ModelServiceDeleteModelArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *ModelServiceDeleteModelArgs) Field1DeepEqual(src *base.IDReq) bool
- func (p *ModelServiceDeleteModelArgs) GetFirstArgument() interface{}
- func (p *ModelServiceDeleteModelArgs) GetReq() (v *base.IDReq)
- func (p *ModelServiceDeleteModelArgs) InitDefault()
- func (p *ModelServiceDeleteModelArgs) IsSetReq() bool
- func (p *ModelServiceDeleteModelArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *ModelServiceDeleteModelArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *ModelServiceDeleteModelArgs) SetReq(val *base.IDReq)
- func (p *ModelServiceDeleteModelArgs) String() string
- func (p *ModelServiceDeleteModelArgs) Write(oprot thrift.TProtocol) (err error)
- type ModelServiceDeleteModelResult
- func (p *ModelServiceDeleteModelResult) BLength() int
- func (p *ModelServiceDeleteModelResult) DeepEqual(ano *ModelServiceDeleteModelResult) bool
- func (p *ModelServiceDeleteModelResult) FastRead(buf []byte) (int, error)
- func (p *ModelServiceDeleteModelResult) FastReadField0(buf []byte) (int, error)
- func (p *ModelServiceDeleteModelResult) FastWrite(buf []byte) int
- func (p *ModelServiceDeleteModelResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *ModelServiceDeleteModelResult) Field0DeepEqual(src *base.Empty) bool
- func (p *ModelServiceDeleteModelResult) GetResult() interface{}
- func (p *ModelServiceDeleteModelResult) GetSuccess() (v *base.Empty)
- func (p *ModelServiceDeleteModelResult) InitDefault()
- func (p *ModelServiceDeleteModelResult) IsSetSuccess() bool
- func (p *ModelServiceDeleteModelResult) Read(iprot thrift.TProtocol) (err error)
- func (p *ModelServiceDeleteModelResult) ReadField0(iprot thrift.TProtocol) error
- func (p *ModelServiceDeleteModelResult) SetSuccess(x interface{})
- func (p *ModelServiceDeleteModelResult) String() string
- func (p *ModelServiceDeleteModelResult) Write(oprot thrift.TProtocol) (err error)
- type ModelServiceGenTokenArgs
- func (p *ModelServiceGenTokenArgs) BLength() int
- func (p *ModelServiceGenTokenArgs) DeepEqual(ano *ModelServiceGenTokenArgs) bool
- func (p *ModelServiceGenTokenArgs) FastRead(buf []byte) (int, error)
- func (p *ModelServiceGenTokenArgs) FastReadField1(buf []byte) (int, error)
- func (p *ModelServiceGenTokenArgs) FastWrite(buf []byte) int
- func (p *ModelServiceGenTokenArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *ModelServiceGenTokenArgs) Field1DeepEqual(src *GenTokenReq) bool
- func (p *ModelServiceGenTokenArgs) GetFirstArgument() interface{}
- func (p *ModelServiceGenTokenArgs) GetReq() (v *GenTokenReq)
- func (p *ModelServiceGenTokenArgs) InitDefault()
- func (p *ModelServiceGenTokenArgs) IsSetReq() bool
- func (p *ModelServiceGenTokenArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *ModelServiceGenTokenArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *ModelServiceGenTokenArgs) SetReq(val *GenTokenReq)
- func (p *ModelServiceGenTokenArgs) String() string
- func (p *ModelServiceGenTokenArgs) Write(oprot thrift.TProtocol) (err error)
- type ModelServiceGenTokenResult
- func (p *ModelServiceGenTokenResult) BLength() int
- func (p *ModelServiceGenTokenResult) DeepEqual(ano *ModelServiceGenTokenResult) bool
- func (p *ModelServiceGenTokenResult) FastRead(buf []byte) (int, error)
- func (p *ModelServiceGenTokenResult) FastReadField0(buf []byte) (int, error)
- func (p *ModelServiceGenTokenResult) FastWrite(buf []byte) int
- func (p *ModelServiceGenTokenResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *ModelServiceGenTokenResult) Field0DeepEqual(src *GenTokenResp) bool
- func (p *ModelServiceGenTokenResult) GetResult() interface{}
- func (p *ModelServiceGenTokenResult) GetSuccess() (v *GenTokenResp)
- func (p *ModelServiceGenTokenResult) InitDefault()
- func (p *ModelServiceGenTokenResult) IsSetSuccess() bool
- func (p *ModelServiceGenTokenResult) Read(iprot thrift.TProtocol) (err error)
- func (p *ModelServiceGenTokenResult) ReadField0(iprot thrift.TProtocol) error
- func (p *ModelServiceGenTokenResult) SetSuccess(x interface{})
- func (p *ModelServiceGenTokenResult) String() string
- func (p *ModelServiceGenTokenResult) Write(oprot thrift.TProtocol) (err error)
- type ModelServiceGetModelByIDArgs
- func (p *ModelServiceGetModelByIDArgs) BLength() int
- func (p *ModelServiceGetModelByIDArgs) DeepEqual(ano *ModelServiceGetModelByIDArgs) bool
- func (p *ModelServiceGetModelByIDArgs) FastRead(buf []byte) (int, error)
- func (p *ModelServiceGetModelByIDArgs) FastReadField1(buf []byte) (int, error)
- func (p *ModelServiceGetModelByIDArgs) FastWrite(buf []byte) int
- func (p *ModelServiceGetModelByIDArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *ModelServiceGetModelByIDArgs) Field1DeepEqual(src *base.IDReq) bool
- func (p *ModelServiceGetModelByIDArgs) GetFirstArgument() interface{}
- func (p *ModelServiceGetModelByIDArgs) GetReq() (v *base.IDReq)
- func (p *ModelServiceGetModelByIDArgs) InitDefault()
- func (p *ModelServiceGetModelByIDArgs) IsSetReq() bool
- func (p *ModelServiceGetModelByIDArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *ModelServiceGetModelByIDArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *ModelServiceGetModelByIDArgs) SetReq(val *base.IDReq)
- func (p *ModelServiceGetModelByIDArgs) String() string
- func (p *ModelServiceGetModelByIDArgs) Write(oprot thrift.TProtocol) (err error)
- type ModelServiceGetModelByIDResult
- func (p *ModelServiceGetModelByIDResult) BLength() int
- func (p *ModelServiceGetModelByIDResult) DeepEqual(ano *ModelServiceGetModelByIDResult) bool
- func (p *ModelServiceGetModelByIDResult) FastRead(buf []byte) (int, error)
- func (p *ModelServiceGetModelByIDResult) FastReadField0(buf []byte) (int, error)
- func (p *ModelServiceGetModelByIDResult) FastWrite(buf []byte) int
- func (p *ModelServiceGetModelByIDResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *ModelServiceGetModelByIDResult) Field0DeepEqual(src *Model) bool
- func (p *ModelServiceGetModelByIDResult) GetResult() interface{}
- func (p *ModelServiceGetModelByIDResult) GetSuccess() (v *Model)
- func (p *ModelServiceGetModelByIDResult) InitDefault()
- func (p *ModelServiceGetModelByIDResult) IsSetSuccess() bool
- func (p *ModelServiceGetModelByIDResult) Read(iprot thrift.TProtocol) (err error)
- func (p *ModelServiceGetModelByIDResult) ReadField0(iprot thrift.TProtocol) error
- func (p *ModelServiceGetModelByIDResult) SetSuccess(x interface{})
- func (p *ModelServiceGetModelByIDResult) String() string
- func (p *ModelServiceGetModelByIDResult) Write(oprot thrift.TProtocol) (err error)
- type ModelServiceListModelArgs
- func (p *ModelServiceListModelArgs) BLength() int
- func (p *ModelServiceListModelArgs) DeepEqual(ano *ModelServiceListModelArgs) bool
- func (p *ModelServiceListModelArgs) FastRead(buf []byte) (int, error)
- func (p *ModelServiceListModelArgs) FastReadField1(buf []byte) (int, error)
- func (p *ModelServiceListModelArgs) FastWrite(buf []byte) int
- func (p *ModelServiceListModelArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *ModelServiceListModelArgs) Field1DeepEqual(src *ListModelReq) bool
- func (p *ModelServiceListModelArgs) GetFirstArgument() interface{}
- func (p *ModelServiceListModelArgs) GetReq() (v *ListModelReq)
- func (p *ModelServiceListModelArgs) InitDefault()
- func (p *ModelServiceListModelArgs) IsSetReq() bool
- func (p *ModelServiceListModelArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *ModelServiceListModelArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *ModelServiceListModelArgs) SetReq(val *ListModelReq)
- func (p *ModelServiceListModelArgs) String() string
- func (p *ModelServiceListModelArgs) Write(oprot thrift.TProtocol) (err error)
- type ModelServiceListModelResult
- func (p *ModelServiceListModelResult) BLength() int
- func (p *ModelServiceListModelResult) DeepEqual(ano *ModelServiceListModelResult) bool
- func (p *ModelServiceListModelResult) FastRead(buf []byte) (int, error)
- func (p *ModelServiceListModelResult) FastReadField0(buf []byte) (int, error)
- func (p *ModelServiceListModelResult) FastWrite(buf []byte) int
- func (p *ModelServiceListModelResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *ModelServiceListModelResult) Field0DeepEqual(src *ListModelResp) bool
- func (p *ModelServiceListModelResult) GetResult() interface{}
- func (p *ModelServiceListModelResult) GetSuccess() (v *ListModelResp)
- func (p *ModelServiceListModelResult) InitDefault()
- func (p *ModelServiceListModelResult) IsSetSuccess() bool
- func (p *ModelServiceListModelResult) Read(iprot thrift.TProtocol) (err error)
- func (p *ModelServiceListModelResult) ReadField0(iprot thrift.TProtocol) error
- func (p *ModelServiceListModelResult) SetSuccess(x interface{})
- func (p *ModelServiceListModelResult) String() string
- func (p *ModelServiceListModelResult) Write(oprot thrift.TProtocol) (err error)
- type ModelServiceUpdateModelArgs
- func (p *ModelServiceUpdateModelArgs) BLength() int
- func (p *ModelServiceUpdateModelArgs) DeepEqual(ano *ModelServiceUpdateModelArgs) bool
- func (p *ModelServiceUpdateModelArgs) FastRead(buf []byte) (int, error)
- func (p *ModelServiceUpdateModelArgs) FastReadField1(buf []byte) (int, error)
- func (p *ModelServiceUpdateModelArgs) FastWrite(buf []byte) int
- func (p *ModelServiceUpdateModelArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *ModelServiceUpdateModelArgs) Field1DeepEqual(src *UpdateModelReq) bool
- func (p *ModelServiceUpdateModelArgs) GetFirstArgument() interface{}
- func (p *ModelServiceUpdateModelArgs) GetReq() (v *UpdateModelReq)
- func (p *ModelServiceUpdateModelArgs) InitDefault()
- func (p *ModelServiceUpdateModelArgs) IsSetReq() bool
- func (p *ModelServiceUpdateModelArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *ModelServiceUpdateModelArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *ModelServiceUpdateModelArgs) SetReq(val *UpdateModelReq)
- func (p *ModelServiceUpdateModelArgs) String() string
- func (p *ModelServiceUpdateModelArgs) Write(oprot thrift.TProtocol) (err error)
- type ModelServiceUpdateModelResult
- func (p *ModelServiceUpdateModelResult) BLength() int
- func (p *ModelServiceUpdateModelResult) DeepEqual(ano *ModelServiceUpdateModelResult) bool
- func (p *ModelServiceUpdateModelResult) FastRead(buf []byte) (int, error)
- func (p *ModelServiceUpdateModelResult) FastReadField0(buf []byte) (int, error)
- func (p *ModelServiceUpdateModelResult) FastWrite(buf []byte) int
- func (p *ModelServiceUpdateModelResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *ModelServiceUpdateModelResult) Field0DeepEqual(src *base.Empty) bool
- func (p *ModelServiceUpdateModelResult) GetResult() interface{}
- func (p *ModelServiceUpdateModelResult) GetSuccess() (v *base.Empty)
- func (p *ModelServiceUpdateModelResult) InitDefault()
- func (p *ModelServiceUpdateModelResult) IsSetSuccess() bool
- func (p *ModelServiceUpdateModelResult) Read(iprot thrift.TProtocol) (err error)
- func (p *ModelServiceUpdateModelResult) ReadField0(iprot thrift.TProtocol) error
- func (p *ModelServiceUpdateModelResult) SetSuccess(x interface{})
- func (p *ModelServiceUpdateModelResult) String() string
- func (p *ModelServiceUpdateModelResult) Write(oprot thrift.TProtocol) (err error)
- type ModelService_ChatServer
- type UpdateModelReq
- func (p *UpdateModelReq) BLength() int
- func (p *UpdateModelReq) DeepEqual(ano *UpdateModelReq) bool
- func (p *UpdateModelReq) FastRead(buf []byte) (int, error)
- func (p *UpdateModelReq) FastReadField1(buf []byte) (int, error)
- func (p *UpdateModelReq) FastReadField10(buf []byte) (int, error)
- func (p *UpdateModelReq) FastReadField2(buf []byte) (int, error)
- func (p *UpdateModelReq) FastReadField3(buf []byte) (int, error)
- func (p *UpdateModelReq) FastReadField4(buf []byte) (int, error)
- func (p *UpdateModelReq) FastReadField5(buf []byte) (int, error)
- func (p *UpdateModelReq) FastReadField6(buf []byte) (int, error)
- func (p *UpdateModelReq) FastReadField7(buf []byte) (int, error)
- func (p *UpdateModelReq) FastReadField8(buf []byte) (int, error)
- func (p *UpdateModelReq) FastReadField9(buf []byte) (int, error)
- func (p *UpdateModelReq) FastWrite(buf []byte) int
- func (p *UpdateModelReq) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *UpdateModelReq) Field10DeepEqual(src []string) bool
- func (p *UpdateModelReq) Field1DeepEqual(src int64) bool
- func (p *UpdateModelReq) Field2DeepEqual(src *string) bool
- func (p *UpdateModelReq) Field3DeepEqual(src *string) bool
- func (p *UpdateModelReq) Field4DeepEqual(src *string) bool
- func (p *UpdateModelReq) Field5DeepEqual(src *string) bool
- func (p *UpdateModelReq) Field6DeepEqual(src *string) bool
- func (p *UpdateModelReq) Field7DeepEqual(src *string) bool
- func (p *UpdateModelReq) Field8DeepEqual(src *string) bool
- func (p *UpdateModelReq) Field9DeepEqual(src *int64) bool
- func (p *UpdateModelReq) GetDescription() (v string)
- func (p *UpdateModelReq) GetId() (v int64)
- func (p *UpdateModelReq) GetInputPrice() (v string)
- func (p *UpdateModelReq) GetLogo() (v string)
- func (p *UpdateModelReq) GetMaxToken() (v int64)
- func (p *UpdateModelReq) GetModelKey() (v string)
- func (p *UpdateModelReq) GetName() (v string)
- func (p *UpdateModelReq) GetOutputPrice() (v string)
- func (p *UpdateModelReq) GetSource() (v string)
- func (p *UpdateModelReq) GetTags() (v []string)
- func (p *UpdateModelReq) InitDefault()
- func (p *UpdateModelReq) IsSetDescription() bool
- func (p *UpdateModelReq) IsSetInputPrice() bool
- func (p *UpdateModelReq) IsSetLogo() bool
- func (p *UpdateModelReq) IsSetMaxToken() bool
- func (p *UpdateModelReq) IsSetModelKey() bool
- func (p *UpdateModelReq) IsSetName() bool
- func (p *UpdateModelReq) IsSetOutputPrice() bool
- func (p *UpdateModelReq) IsSetSource() bool
- func (p *UpdateModelReq) IsSetTags() bool
- func (p *UpdateModelReq) Read(iprot thrift.TProtocol) (err error)
- func (p *UpdateModelReq) ReadField1(iprot thrift.TProtocol) error
- func (p *UpdateModelReq) ReadField10(iprot thrift.TProtocol) error
- func (p *UpdateModelReq) ReadField2(iprot thrift.TProtocol) error
- func (p *UpdateModelReq) ReadField3(iprot thrift.TProtocol) error
- func (p *UpdateModelReq) ReadField4(iprot thrift.TProtocol) error
- func (p *UpdateModelReq) ReadField5(iprot thrift.TProtocol) error
- func (p *UpdateModelReq) ReadField6(iprot thrift.TProtocol) error
- func (p *UpdateModelReq) ReadField7(iprot thrift.TProtocol) error
- func (p *UpdateModelReq) ReadField8(iprot thrift.TProtocol) error
- func (p *UpdateModelReq) ReadField9(iprot thrift.TProtocol) error
- func (p *UpdateModelReq) SetDescription(val *string)
- func (p *UpdateModelReq) SetId(val int64)
- func (p *UpdateModelReq) SetInputPrice(val *string)
- func (p *UpdateModelReq) SetLogo(val *string)
- func (p *UpdateModelReq) SetMaxToken(val *int64)
- func (p *UpdateModelReq) SetModelKey(val *string)
- func (p *UpdateModelReq) SetName(val *string)
- func (p *UpdateModelReq) SetOutputPrice(val *string)
- func (p *UpdateModelReq) SetSource(val *string)
- func (p *UpdateModelReq) SetTags(val []string)
- func (p *UpdateModelReq) String() string
- func (p *UpdateModelReq) Write(oprot thrift.TProtocol) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ChatReq_OpenaiReq_DEFAULT *openai.ChatCompletionRequest
View Source
var ChatResp_OpenaiResp_DEFAULT *openai.ChatCompletionStreamResponse
View Source
var GenTokenReq_PluginId_DEFAULT int64
View Source
var GenTokenResp_ExpiredAt_DEFAULT *base.Time
View Source
var KitexUnusedProtection = struct{}{}
KitexUnusedProtection is used to prevent 'imported and not used' error.
View Source
var ListModelReq_Name_DEFAULT string
View Source
var ListModelReq_Pagination_DEFAULT *base.PaginationReq
View Source
var ListModelReq_Source_DEFAULT string
View Source
var ListModelResp_Pagination_DEFAULT *base.PaginationResp
View Source
var ModelServiceCreateModelResult_Success_DEFAULT *base.Empty
View Source
var ModelServiceDeleteModelArgs_Req_DEFAULT *base.IDReq
View Source
var ModelServiceDeleteModelResult_Success_DEFAULT *base.Empty
View Source
var ModelServiceGetModelByIDArgs_Req_DEFAULT *base.IDReq
View Source
var ModelServiceUpdateModelResult_Success_DEFAULT *base.Empty
View Source
var UpdateModelReq_Description_DEFAULT string
View Source
var UpdateModelReq_InputPrice_DEFAULT string
View Source
var UpdateModelReq_Logo_DEFAULT string
View Source
var UpdateModelReq_MaxToken_DEFAULT int64
View Source
var UpdateModelReq_ModelKey_DEFAULT string
View Source
var UpdateModelReq_Name_DEFAULT string
View Source
var UpdateModelReq_OutputPrice_DEFAULT string
View Source
var UpdateModelReq_Source_DEFAULT string
View Source
var UpdateModelReq_Tags_DEFAULT []string
Functions ¶
This section is empty.
Types ¶
type ChatReq ¶
type ChatReq struct { Token string `thrift:"token,1,required" frugal:"1,required,string" json:"token"` ModelId int64 `thrift:"model_id,2,required" frugal:"2,required,i64" json:"model_id"` OpenaiReq *openai.ChatCompletionRequest `thrift:"openai_req,3,required" frugal:"3,required,openai.ChatCompletionRequest" json:"openai_req"` }
var ModelServiceChatArgs_Req_DEFAULT *ChatReq
func NewChatReq ¶
func NewChatReq() *ChatReq
func (*ChatReq) FastWriteNocopy ¶
func (p *ChatReq) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*ChatReq) Field1DeepEqual ¶
func (*ChatReq) Field2DeepEqual ¶
func (*ChatReq) Field3DeepEqual ¶
func (p *ChatReq) Field3DeepEqual(src *openai.ChatCompletionRequest) bool
func (*ChatReq) GetModelId ¶
func (*ChatReq) GetOpenaiReq ¶
func (p *ChatReq) GetOpenaiReq() (v *openai.ChatCompletionRequest)
func (*ChatReq) InitDefault ¶
func (p *ChatReq) InitDefault()
func (*ChatReq) IsSetOpenaiReq ¶
func (*ChatReq) SetModelId ¶
func (*ChatReq) SetOpenaiReq ¶
func (p *ChatReq) SetOpenaiReq(val *openai.ChatCompletionRequest)
type ChatResp ¶
type ChatResp struct {
OpenaiResp *openai.ChatCompletionStreamResponse `thrift:"openai_resp,1,required" frugal:"1,required,openai.ChatCompletionStreamResponse" json:"openai_resp"`
}
var ModelServiceChatResult_Success_DEFAULT *ChatResp
func NewChatResp ¶
func NewChatResp() *ChatResp
func (*ChatResp) FastWriteNocopy ¶
func (p *ChatResp) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*ChatResp) Field1DeepEqual ¶
func (p *ChatResp) Field1DeepEqual(src *openai.ChatCompletionStreamResponse) bool
func (*ChatResp) GetOpenaiResp ¶
func (p *ChatResp) GetOpenaiResp() (v *openai.ChatCompletionStreamResponse)
func (*ChatResp) InitDefault ¶
func (p *ChatResp) InitDefault()
func (*ChatResp) IsSetOpenaiResp ¶
func (*ChatResp) SetOpenaiResp ¶
func (p *ChatResp) SetOpenaiResp(val *openai.ChatCompletionStreamResponse)
type CreateModelReq ¶
type CreateModelReq struct { Name string `thrift:"name,1,required" frugal:"1,required,string" json:"name"` Description string `thrift:"description,2,required" frugal:"2,required,string" json:"description"` Source string `thrift:"source,3,required" frugal:"3,required,string" json:"source"` ModelKey string `thrift:"model_key,4,required" frugal:"4,required,string" json:"model_key"` Logo string `thrift:"logo,5,required" frugal:"5,required,string" json:"logo"` InputPrice string `thrift:"input_price,6,required" frugal:"6,required,string" json:"input_price"` OutputPrice string `thrift:"output_price,7,required" frugal:"7,required,string" json:"output_price"` MaxToken int64 `thrift:"max_token,8,required" frugal:"8,required,i64" json:"max_token"` Tags []string `thrift:"tags,9,required" frugal:"9,required,list<string>" json:"tags"` }
var ModelServiceCreateModelArgs_Req_DEFAULT *CreateModelReq
func NewCreateModelReq ¶
func NewCreateModelReq() *CreateModelReq
func (*CreateModelReq) BLength ¶
func (p *CreateModelReq) BLength() int
func (*CreateModelReq) DeepEqual ¶
func (p *CreateModelReq) DeepEqual(ano *CreateModelReq) bool
func (*CreateModelReq) FastReadField1 ¶
func (p *CreateModelReq) FastReadField1(buf []byte) (int, error)
func (*CreateModelReq) FastReadField2 ¶
func (p *CreateModelReq) FastReadField2(buf []byte) (int, error)
func (*CreateModelReq) FastReadField3 ¶
func (p *CreateModelReq) FastReadField3(buf []byte) (int, error)
func (*CreateModelReq) FastReadField4 ¶
func (p *CreateModelReq) FastReadField4(buf []byte) (int, error)
func (*CreateModelReq) FastReadField5 ¶
func (p *CreateModelReq) FastReadField5(buf []byte) (int, error)
func (*CreateModelReq) FastReadField6 ¶
func (p *CreateModelReq) FastReadField6(buf []byte) (int, error)
func (*CreateModelReq) FastReadField7 ¶
func (p *CreateModelReq) FastReadField7(buf []byte) (int, error)
func (*CreateModelReq) FastReadField8 ¶ added in v0.1.7
func (p *CreateModelReq) FastReadField8(buf []byte) (int, error)
func (*CreateModelReq) FastReadField9 ¶ added in v0.1.7
func (p *CreateModelReq) FastReadField9(buf []byte) (int, error)
func (*CreateModelReq) FastWrite ¶
func (p *CreateModelReq) FastWrite(buf []byte) int
for compatibility
func (*CreateModelReq) FastWriteNocopy ¶
func (p *CreateModelReq) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*CreateModelReq) Field1DeepEqual ¶
func (p *CreateModelReq) Field1DeepEqual(src string) bool
func (*CreateModelReq) Field2DeepEqual ¶
func (p *CreateModelReq) Field2DeepEqual(src string) bool
func (*CreateModelReq) Field3DeepEqual ¶
func (p *CreateModelReq) Field3DeepEqual(src string) bool
func (*CreateModelReq) Field4DeepEqual ¶
func (p *CreateModelReq) Field4DeepEqual(src string) bool
func (*CreateModelReq) Field5DeepEqual ¶
func (p *CreateModelReq) Field5DeepEqual(src string) bool
func (*CreateModelReq) Field6DeepEqual ¶
func (p *CreateModelReq) Field6DeepEqual(src string) bool
func (*CreateModelReq) Field7DeepEqual ¶
func (p *CreateModelReq) Field7DeepEqual(src string) bool
func (*CreateModelReq) Field8DeepEqual ¶ added in v0.1.7
func (p *CreateModelReq) Field8DeepEqual(src int64) bool
func (*CreateModelReq) Field9DeepEqual ¶ added in v0.1.7
func (p *CreateModelReq) Field9DeepEqual(src []string) bool
func (*CreateModelReq) GetDescription ¶
func (p *CreateModelReq) GetDescription() (v string)
func (*CreateModelReq) GetInputPrice ¶
func (p *CreateModelReq) GetInputPrice() (v string)
func (*CreateModelReq) GetLogo ¶
func (p *CreateModelReq) GetLogo() (v string)
func (*CreateModelReq) GetMaxToken ¶ added in v0.1.7
func (p *CreateModelReq) GetMaxToken() (v int64)
func (*CreateModelReq) GetModelKey ¶
func (p *CreateModelReq) GetModelKey() (v string)
func (*CreateModelReq) GetName ¶
func (p *CreateModelReq) GetName() (v string)
func (*CreateModelReq) GetOutputPrice ¶
func (p *CreateModelReq) GetOutputPrice() (v string)
func (*CreateModelReq) GetSource ¶
func (p *CreateModelReq) GetSource() (v string)
func (*CreateModelReq) GetTags ¶ added in v0.1.7
func (p *CreateModelReq) GetTags() (v []string)
func (*CreateModelReq) InitDefault ¶
func (p *CreateModelReq) InitDefault()
func (*CreateModelReq) ReadField1 ¶
func (p *CreateModelReq) ReadField1(iprot thrift.TProtocol) error
func (*CreateModelReq) ReadField2 ¶
func (p *CreateModelReq) ReadField2(iprot thrift.TProtocol) error
func (*CreateModelReq) ReadField3 ¶
func (p *CreateModelReq) ReadField3(iprot thrift.TProtocol) error
func (*CreateModelReq) ReadField4 ¶
func (p *CreateModelReq) ReadField4(iprot thrift.TProtocol) error
func (*CreateModelReq) ReadField5 ¶
func (p *CreateModelReq) ReadField5(iprot thrift.TProtocol) error
func (*CreateModelReq) ReadField6 ¶
func (p *CreateModelReq) ReadField6(iprot thrift.TProtocol) error
func (*CreateModelReq) ReadField7 ¶
func (p *CreateModelReq) ReadField7(iprot thrift.TProtocol) error
func (*CreateModelReq) ReadField8 ¶ added in v0.1.7
func (p *CreateModelReq) ReadField8(iprot thrift.TProtocol) error
func (*CreateModelReq) ReadField9 ¶ added in v0.1.7
func (p *CreateModelReq) ReadField9(iprot thrift.TProtocol) error
func (*CreateModelReq) SetDescription ¶
func (p *CreateModelReq) SetDescription(val string)
func (*CreateModelReq) SetInputPrice ¶
func (p *CreateModelReq) SetInputPrice(val string)
func (*CreateModelReq) SetLogo ¶
func (p *CreateModelReq) SetLogo(val string)
func (*CreateModelReq) SetMaxToken ¶ added in v0.1.7
func (p *CreateModelReq) SetMaxToken(val int64)
func (*CreateModelReq) SetModelKey ¶
func (p *CreateModelReq) SetModelKey(val string)
func (*CreateModelReq) SetName ¶
func (p *CreateModelReq) SetName(val string)
func (*CreateModelReq) SetOutputPrice ¶
func (p *CreateModelReq) SetOutputPrice(val string)
func (*CreateModelReq) SetSource ¶
func (p *CreateModelReq) SetSource(val string)
func (*CreateModelReq) SetTags ¶ added in v0.1.7
func (p *CreateModelReq) SetTags(val []string)
func (*CreateModelReq) String ¶
func (p *CreateModelReq) String() string
type GenTokenReq ¶
type GenTokenReq struct { AppId int64 `thrift:"app_id,1,required" frugal:"1,required,i64" json:"app_id"` PluginId *int64 `thrift:"plugin_id,2,optional" frugal:"2,optional,i64" json:"plugin_id,omitempty"` ConversationId int64 `thrift:"conversation_id,3,required" frugal:"3,required,i64" json:"conversation_id"` CallLimit int32 `thrift:"call_limit,4,required" frugal:"4,required,i32" json:"call_limit"` }
var ModelServiceGenTokenArgs_Req_DEFAULT *GenTokenReq
func NewGenTokenReq ¶
func NewGenTokenReq() *GenTokenReq
func (*GenTokenReq) BLength ¶
func (p *GenTokenReq) BLength() int
func (*GenTokenReq) DeepEqual ¶
func (p *GenTokenReq) DeepEqual(ano *GenTokenReq) bool
func (*GenTokenReq) FastReadField1 ¶
func (p *GenTokenReq) FastReadField1(buf []byte) (int, error)
func (*GenTokenReq) FastReadField2 ¶
func (p *GenTokenReq) FastReadField2(buf []byte) (int, error)
func (*GenTokenReq) FastReadField3 ¶
func (p *GenTokenReq) FastReadField3(buf []byte) (int, error)
func (*GenTokenReq) FastReadField4 ¶
func (p *GenTokenReq) FastReadField4(buf []byte) (int, error)
func (*GenTokenReq) FastWriteNocopy ¶
func (p *GenTokenReq) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*GenTokenReq) Field1DeepEqual ¶
func (p *GenTokenReq) Field1DeepEqual(src int64) bool
func (*GenTokenReq) Field2DeepEqual ¶
func (p *GenTokenReq) Field2DeepEqual(src *int64) bool
func (*GenTokenReq) Field3DeepEqual ¶
func (p *GenTokenReq) Field3DeepEqual(src int64) bool
func (*GenTokenReq) Field4DeepEqual ¶
func (p *GenTokenReq) Field4DeepEqual(src int32) bool
func (*GenTokenReq) GetAppId ¶
func (p *GenTokenReq) GetAppId() (v int64)
func (*GenTokenReq) GetCallLimit ¶
func (p *GenTokenReq) GetCallLimit() (v int32)
func (*GenTokenReq) GetConversationId ¶
func (p *GenTokenReq) GetConversationId() (v int64)
func (*GenTokenReq) GetPluginId ¶
func (p *GenTokenReq) GetPluginId() (v int64)
func (*GenTokenReq) InitDefault ¶
func (p *GenTokenReq) InitDefault()
func (*GenTokenReq) IsSetPluginId ¶
func (p *GenTokenReq) IsSetPluginId() bool
func (*GenTokenReq) ReadField1 ¶
func (p *GenTokenReq) ReadField1(iprot thrift.TProtocol) error
func (*GenTokenReq) ReadField2 ¶
func (p *GenTokenReq) ReadField2(iprot thrift.TProtocol) error
func (*GenTokenReq) ReadField3 ¶
func (p *GenTokenReq) ReadField3(iprot thrift.TProtocol) error
func (*GenTokenReq) ReadField4 ¶
func (p *GenTokenReq) ReadField4(iprot thrift.TProtocol) error
func (*GenTokenReq) SetAppId ¶
func (p *GenTokenReq) SetAppId(val int64)
func (*GenTokenReq) SetCallLimit ¶
func (p *GenTokenReq) SetCallLimit(val int32)
func (*GenTokenReq) SetConversationId ¶
func (p *GenTokenReq) SetConversationId(val int64)
func (*GenTokenReq) SetPluginId ¶
func (p *GenTokenReq) SetPluginId(val *int64)
func (*GenTokenReq) String ¶
func (p *GenTokenReq) String() string
type GenTokenResp ¶
type GenTokenResp struct { Token string `thrift:"token,1,required" frugal:"1,required,string" json:"token"` ExpiredAt *base.Time `thrift:"expired_at,2,required" frugal:"2,required,base.Time" json:"expired_at"` }
var ModelServiceGenTokenResult_Success_DEFAULT *GenTokenResp
func NewGenTokenResp ¶
func NewGenTokenResp() *GenTokenResp
func (*GenTokenResp) BLength ¶
func (p *GenTokenResp) BLength() int
func (*GenTokenResp) DeepEqual ¶
func (p *GenTokenResp) DeepEqual(ano *GenTokenResp) bool
func (*GenTokenResp) FastReadField1 ¶
func (p *GenTokenResp) FastReadField1(buf []byte) (int, error)
func (*GenTokenResp) FastReadField2 ¶
func (p *GenTokenResp) FastReadField2(buf []byte) (int, error)
func (*GenTokenResp) FastWriteNocopy ¶
func (p *GenTokenResp) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*GenTokenResp) Field1DeepEqual ¶
func (p *GenTokenResp) Field1DeepEqual(src string) bool
func (*GenTokenResp) Field2DeepEqual ¶
func (p *GenTokenResp) Field2DeepEqual(src *base.Time) bool
func (*GenTokenResp) GetExpiredAt ¶
func (p *GenTokenResp) GetExpiredAt() (v *base.Time)
func (*GenTokenResp) GetToken ¶
func (p *GenTokenResp) GetToken() (v string)
func (*GenTokenResp) InitDefault ¶
func (p *GenTokenResp) InitDefault()
func (*GenTokenResp) IsSetExpiredAt ¶
func (p *GenTokenResp) IsSetExpiredAt() bool
func (*GenTokenResp) ReadField1 ¶
func (p *GenTokenResp) ReadField1(iprot thrift.TProtocol) error
func (*GenTokenResp) ReadField2 ¶
func (p *GenTokenResp) ReadField2(iprot thrift.TProtocol) error
func (*GenTokenResp) SetExpiredAt ¶
func (p *GenTokenResp) SetExpiredAt(val *base.Time)
func (*GenTokenResp) SetToken ¶
func (p *GenTokenResp) SetToken(val string)
func (*GenTokenResp) String ¶
func (p *GenTokenResp) String() string
type ListModelReq ¶
type ListModelReq struct { Pagination *base.PaginationReq `thrift:"pagination,1,required" frugal:"1,required,base.PaginationReq" json:"pagination"` Name *string `thrift:"name,2,optional" frugal:"2,optional,string" query:"name"` Source *string `thrift:"source,3,optional" frugal:"3,optional,string" query:"source"` }
var ModelServiceListModelArgs_Req_DEFAULT *ListModelReq
func NewListModelReq ¶
func NewListModelReq() *ListModelReq
func (*ListModelReq) BLength ¶
func (p *ListModelReq) BLength() int
func (*ListModelReq) DeepEqual ¶
func (p *ListModelReq) DeepEqual(ano *ListModelReq) bool
func (*ListModelReq) FastReadField1 ¶
func (p *ListModelReq) FastReadField1(buf []byte) (int, error)
func (*ListModelReq) FastReadField2 ¶
func (p *ListModelReq) FastReadField2(buf []byte) (int, error)
func (*ListModelReq) FastReadField3 ¶
func (p *ListModelReq) FastReadField3(buf []byte) (int, error)
func (*ListModelReq) FastWriteNocopy ¶
func (p *ListModelReq) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*ListModelReq) Field1DeepEqual ¶
func (p *ListModelReq) Field1DeepEqual(src *base.PaginationReq) bool
func (*ListModelReq) Field2DeepEqual ¶
func (p *ListModelReq) Field2DeepEqual(src *string) bool
func (*ListModelReq) Field3DeepEqual ¶
func (p *ListModelReq) Field3DeepEqual(src *string) bool
func (*ListModelReq) GetName ¶
func (p *ListModelReq) GetName() (v string)
func (*ListModelReq) GetPagination ¶
func (p *ListModelReq) GetPagination() (v *base.PaginationReq)
func (*ListModelReq) GetSource ¶
func (p *ListModelReq) GetSource() (v string)
func (*ListModelReq) InitDefault ¶
func (p *ListModelReq) InitDefault()
func (*ListModelReq) IsSetName ¶
func (p *ListModelReq) IsSetName() bool
func (*ListModelReq) IsSetPagination ¶
func (p *ListModelReq) IsSetPagination() bool
func (*ListModelReq) IsSetSource ¶
func (p *ListModelReq) IsSetSource() bool
func (*ListModelReq) ReadField1 ¶
func (p *ListModelReq) ReadField1(iprot thrift.TProtocol) error
func (*ListModelReq) ReadField2 ¶
func (p *ListModelReq) ReadField2(iprot thrift.TProtocol) error
func (*ListModelReq) ReadField3 ¶
func (p *ListModelReq) ReadField3(iprot thrift.TProtocol) error
func (*ListModelReq) SetName ¶
func (p *ListModelReq) SetName(val *string)
func (*ListModelReq) SetPagination ¶
func (p *ListModelReq) SetPagination(val *base.PaginationReq)
func (*ListModelReq) SetSource ¶
func (p *ListModelReq) SetSource(val *string)
func (*ListModelReq) String ¶
func (p *ListModelReq) String() string
type ListModelResp ¶
type ListModelResp struct { Pagination *base.PaginationResp `thrift:"pagination,1,required" frugal:"1,required,base.PaginationResp" json:"pagination"` Models []*Model `thrift:"models,2,required" frugal:"2,required,list<Model>" json:"models"` }
var ModelServiceListModelResult_Success_DEFAULT *ListModelResp
func NewListModelResp ¶
func NewListModelResp() *ListModelResp
func (*ListModelResp) BLength ¶
func (p *ListModelResp) BLength() int
func (*ListModelResp) DeepEqual ¶
func (p *ListModelResp) DeepEqual(ano *ListModelResp) bool
func (*ListModelResp) FastReadField1 ¶
func (p *ListModelResp) FastReadField1(buf []byte) (int, error)
func (*ListModelResp) FastReadField2 ¶
func (p *ListModelResp) FastReadField2(buf []byte) (int, error)
func (*ListModelResp) FastWrite ¶
func (p *ListModelResp) FastWrite(buf []byte) int
for compatibility
func (*ListModelResp) FastWriteNocopy ¶
func (p *ListModelResp) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*ListModelResp) Field1DeepEqual ¶
func (p *ListModelResp) Field1DeepEqual(src *base.PaginationResp) bool
func (*ListModelResp) Field2DeepEqual ¶
func (p *ListModelResp) Field2DeepEqual(src []*Model) bool
func (*ListModelResp) GetModels ¶
func (p *ListModelResp) GetModels() (v []*Model)
func (*ListModelResp) GetPagination ¶
func (p *ListModelResp) GetPagination() (v *base.PaginationResp)
func (*ListModelResp) InitDefault ¶
func (p *ListModelResp) InitDefault()
func (*ListModelResp) IsSetPagination ¶
func (p *ListModelResp) IsSetPagination() bool
func (*ListModelResp) ReadField1 ¶
func (p *ListModelResp) ReadField1(iprot thrift.TProtocol) error
func (*ListModelResp) ReadField2 ¶
func (p *ListModelResp) ReadField2(iprot thrift.TProtocol) error
func (*ListModelResp) SetModels ¶
func (p *ListModelResp) SetModels(val []*Model)
func (*ListModelResp) SetPagination ¶
func (p *ListModelResp) SetPagination(val *base.PaginationResp)
func (*ListModelResp) String ¶
func (p *ListModelResp) String() string
type Model ¶
type Model struct { Id int64 `thrift:"id,1,required" frugal:"1,required,i64" json:"id"` Name string `thrift:"name,2,required" frugal:"2,required,string" json:"name"` Description string `thrift:"description,3,required" frugal:"3,required,string" json:"description"` Source string `thrift:"source,4,required" frugal:"4,required,string" json:"source"` ModelKey string `thrift:"model_key,5,required" frugal:"5,required,string" json:"model_key"` Logo string `thrift:"logo,6,required" frugal:"6,required,string" json:"logo"` InputPrice string `thrift:"input_price,7,required" frugal:"7,required,string" json:"input_price"` OutputPrice string `thrift:"output_price,8,required" frugal:"8,required,string" json:"output_price"` MaxToken int64 `thrift:"max_token,9,required" frugal:"9,required,i64" json:"max_token"` Tags []string `thrift:"tags,10,required" frugal:"10,required,list<string>" json:"tags"` }
var ModelServiceGetModelByIDResult_Success_DEFAULT *Model
func (*Model) FastReadField10 ¶ added in v0.1.7
func (*Model) FastReadField9 ¶ added in v0.1.7
func (*Model) FastWriteNocopy ¶
func (p *Model) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*Model) Field10DeepEqual ¶ added in v0.1.7
func (*Model) Field1DeepEqual ¶
func (*Model) Field2DeepEqual ¶
func (*Model) Field3DeepEqual ¶
func (*Model) Field4DeepEqual ¶
func (*Model) Field5DeepEqual ¶
func (*Model) Field6DeepEqual ¶
func (*Model) Field7DeepEqual ¶
func (*Model) Field8DeepEqual ¶
func (*Model) Field9DeepEqual ¶ added in v0.1.7
func (*Model) GetDescription ¶
func (*Model) GetInputPrice ¶
func (*Model) GetMaxToken ¶ added in v0.1.7
func (*Model) GetModelKey ¶
func (*Model) GetOutputPrice ¶
func (*Model) InitDefault ¶
func (p *Model) InitDefault()
func (*Model) ReadField10 ¶ added in v0.1.7
func (*Model) SetDescription ¶
func (*Model) SetInputPrice ¶
func (*Model) SetMaxToken ¶ added in v0.1.7
func (*Model) SetModelKey ¶
func (*Model) SetOutputPrice ¶
type ModelService ¶
type ModelService interface { GenToken(ctx context.Context, req *GenTokenReq) (r *GenTokenResp, err error) Chat(req *ChatReq, stream ModelService_ChatServer) (err error) CreateModel(ctx context.Context, req *CreateModelReq) (r *base.Empty, err error) UpdateModel(ctx context.Context, req *UpdateModelReq) (r *base.Empty, err error) DeleteModel(ctx context.Context, req *base.IDReq) (r *base.Empty, err error) GetModelByID(ctx context.Context, req *base.IDReq) (r *Model, err error) ListModel(ctx context.Context, req *ListModelReq) (r *ListModelResp, err error) }
type ModelServiceChatArgs ¶
type ModelServiceChatArgs struct {
Req *ChatReq `thrift:"req,1" frugal:"1,default,ChatReq" json:"req"`
}
func NewModelServiceChatArgs ¶
func NewModelServiceChatArgs() *ModelServiceChatArgs
func (*ModelServiceChatArgs) BLength ¶
func (p *ModelServiceChatArgs) BLength() int
func (*ModelServiceChatArgs) DeepEqual ¶
func (p *ModelServiceChatArgs) DeepEqual(ano *ModelServiceChatArgs) bool
func (*ModelServiceChatArgs) FastRead ¶
func (p *ModelServiceChatArgs) FastRead(buf []byte) (int, error)
func (*ModelServiceChatArgs) FastReadField1 ¶
func (p *ModelServiceChatArgs) FastReadField1(buf []byte) (int, error)
func (*ModelServiceChatArgs) FastWrite ¶
func (p *ModelServiceChatArgs) FastWrite(buf []byte) int
for compatibility
func (*ModelServiceChatArgs) FastWriteNocopy ¶
func (p *ModelServiceChatArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*ModelServiceChatArgs) Field1DeepEqual ¶
func (p *ModelServiceChatArgs) Field1DeepEqual(src *ChatReq) bool
func (*ModelServiceChatArgs) GetFirstArgument ¶
func (p *ModelServiceChatArgs) GetFirstArgument() interface{}
func (*ModelServiceChatArgs) GetReq ¶
func (p *ModelServiceChatArgs) GetReq() (v *ChatReq)
func (*ModelServiceChatArgs) InitDefault ¶
func (p *ModelServiceChatArgs) InitDefault()
func (*ModelServiceChatArgs) IsSetReq ¶
func (p *ModelServiceChatArgs) IsSetReq() bool
func (*ModelServiceChatArgs) Read ¶
func (p *ModelServiceChatArgs) Read(iprot thrift.TProtocol) (err error)
func (*ModelServiceChatArgs) ReadField1 ¶
func (p *ModelServiceChatArgs) ReadField1(iprot thrift.TProtocol) error
func (*ModelServiceChatArgs) SetReq ¶
func (p *ModelServiceChatArgs) SetReq(val *ChatReq)
func (*ModelServiceChatArgs) String ¶
func (p *ModelServiceChatArgs) String() string
type ModelServiceChatResult ¶
type ModelServiceChatResult struct {
Success *ChatResp `thrift:"success,0,optional" frugal:"0,optional,ChatResp" json:"success,omitempty"`
}
func NewModelServiceChatResult ¶
func NewModelServiceChatResult() *ModelServiceChatResult
func (*ModelServiceChatResult) BLength ¶
func (p *ModelServiceChatResult) BLength() int
func (*ModelServiceChatResult) DeepEqual ¶
func (p *ModelServiceChatResult) DeepEqual(ano *ModelServiceChatResult) bool
func (*ModelServiceChatResult) FastRead ¶
func (p *ModelServiceChatResult) FastRead(buf []byte) (int, error)
func (*ModelServiceChatResult) FastReadField0 ¶
func (p *ModelServiceChatResult) FastReadField0(buf []byte) (int, error)
func (*ModelServiceChatResult) FastWrite ¶
func (p *ModelServiceChatResult) FastWrite(buf []byte) int
for compatibility
func (*ModelServiceChatResult) FastWriteNocopy ¶
func (p *ModelServiceChatResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*ModelServiceChatResult) Field0DeepEqual ¶
func (p *ModelServiceChatResult) Field0DeepEqual(src *ChatResp) bool
func (*ModelServiceChatResult) GetResult ¶
func (p *ModelServiceChatResult) GetResult() interface{}
func (*ModelServiceChatResult) GetSuccess ¶
func (p *ModelServiceChatResult) GetSuccess() (v *ChatResp)
func (*ModelServiceChatResult) InitDefault ¶
func (p *ModelServiceChatResult) InitDefault()
func (*ModelServiceChatResult) IsSetSuccess ¶
func (p *ModelServiceChatResult) IsSetSuccess() bool
func (*ModelServiceChatResult) Read ¶
func (p *ModelServiceChatResult) Read(iprot thrift.TProtocol) (err error)
func (*ModelServiceChatResult) ReadField0 ¶
func (p *ModelServiceChatResult) ReadField0(iprot thrift.TProtocol) error
func (*ModelServiceChatResult) SetSuccess ¶
func (p *ModelServiceChatResult) SetSuccess(x interface{})
func (*ModelServiceChatResult) String ¶
func (p *ModelServiceChatResult) String() string
type ModelServiceCreateModelArgs ¶
type ModelServiceCreateModelArgs struct {
Req *CreateModelReq `thrift:"req,1" frugal:"1,default,CreateModelReq" json:"req"`
}
func NewModelServiceCreateModelArgs ¶
func NewModelServiceCreateModelArgs() *ModelServiceCreateModelArgs
func (*ModelServiceCreateModelArgs) BLength ¶
func (p *ModelServiceCreateModelArgs) BLength() int
func (*ModelServiceCreateModelArgs) DeepEqual ¶
func (p *ModelServiceCreateModelArgs) DeepEqual(ano *ModelServiceCreateModelArgs) bool
func (*ModelServiceCreateModelArgs) FastRead ¶
func (p *ModelServiceCreateModelArgs) FastRead(buf []byte) (int, error)
func (*ModelServiceCreateModelArgs) FastReadField1 ¶
func (p *ModelServiceCreateModelArgs) FastReadField1(buf []byte) (int, error)
func (*ModelServiceCreateModelArgs) FastWrite ¶
func (p *ModelServiceCreateModelArgs) FastWrite(buf []byte) int
for compatibility
func (*ModelServiceCreateModelArgs) FastWriteNocopy ¶
func (p *ModelServiceCreateModelArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*ModelServiceCreateModelArgs) Field1DeepEqual ¶
func (p *ModelServiceCreateModelArgs) Field1DeepEqual(src *CreateModelReq) bool
func (*ModelServiceCreateModelArgs) GetFirstArgument ¶
func (p *ModelServiceCreateModelArgs) GetFirstArgument() interface{}
func (*ModelServiceCreateModelArgs) GetReq ¶
func (p *ModelServiceCreateModelArgs) GetReq() (v *CreateModelReq)
func (*ModelServiceCreateModelArgs) InitDefault ¶
func (p *ModelServiceCreateModelArgs) InitDefault()
func (*ModelServiceCreateModelArgs) IsSetReq ¶
func (p *ModelServiceCreateModelArgs) IsSetReq() bool
func (*ModelServiceCreateModelArgs) Read ¶
func (p *ModelServiceCreateModelArgs) Read(iprot thrift.TProtocol) (err error)
func (*ModelServiceCreateModelArgs) ReadField1 ¶
func (p *ModelServiceCreateModelArgs) ReadField1(iprot thrift.TProtocol) error
func (*ModelServiceCreateModelArgs) SetReq ¶
func (p *ModelServiceCreateModelArgs) SetReq(val *CreateModelReq)
func (*ModelServiceCreateModelArgs) String ¶
func (p *ModelServiceCreateModelArgs) String() string
type ModelServiceCreateModelResult ¶
type ModelServiceCreateModelResult struct {
Success *base.Empty `thrift:"success,0,optional" frugal:"0,optional,base.Empty" json:"success,omitempty"`
}
func NewModelServiceCreateModelResult ¶
func NewModelServiceCreateModelResult() *ModelServiceCreateModelResult
func (*ModelServiceCreateModelResult) BLength ¶
func (p *ModelServiceCreateModelResult) BLength() int
func (*ModelServiceCreateModelResult) DeepEqual ¶
func (p *ModelServiceCreateModelResult) DeepEqual(ano *ModelServiceCreateModelResult) bool
func (*ModelServiceCreateModelResult) FastRead ¶
func (p *ModelServiceCreateModelResult) FastRead(buf []byte) (int, error)
func (*ModelServiceCreateModelResult) FastReadField0 ¶
func (p *ModelServiceCreateModelResult) FastReadField0(buf []byte) (int, error)
func (*ModelServiceCreateModelResult) FastWrite ¶
func (p *ModelServiceCreateModelResult) FastWrite(buf []byte) int
for compatibility
func (*ModelServiceCreateModelResult) FastWriteNocopy ¶
func (p *ModelServiceCreateModelResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*ModelServiceCreateModelResult) Field0DeepEqual ¶
func (p *ModelServiceCreateModelResult) Field0DeepEqual(src *base.Empty) bool
func (*ModelServiceCreateModelResult) GetResult ¶
func (p *ModelServiceCreateModelResult) GetResult() interface{}
func (*ModelServiceCreateModelResult) GetSuccess ¶
func (p *ModelServiceCreateModelResult) GetSuccess() (v *base.Empty)
func (*ModelServiceCreateModelResult) InitDefault ¶
func (p *ModelServiceCreateModelResult) InitDefault()
func (*ModelServiceCreateModelResult) IsSetSuccess ¶
func (p *ModelServiceCreateModelResult) IsSetSuccess() bool
func (*ModelServiceCreateModelResult) Read ¶
func (p *ModelServiceCreateModelResult) Read(iprot thrift.TProtocol) (err error)
func (*ModelServiceCreateModelResult) ReadField0 ¶
func (p *ModelServiceCreateModelResult) ReadField0(iprot thrift.TProtocol) error
func (*ModelServiceCreateModelResult) SetSuccess ¶
func (p *ModelServiceCreateModelResult) SetSuccess(x interface{})
func (*ModelServiceCreateModelResult) String ¶
func (p *ModelServiceCreateModelResult) String() string
type ModelServiceDeleteModelArgs ¶
type ModelServiceDeleteModelArgs struct {
Req *base.IDReq `thrift:"req,1" frugal:"1,default,base.IDReq" json:"req"`
}
func NewModelServiceDeleteModelArgs ¶
func NewModelServiceDeleteModelArgs() *ModelServiceDeleteModelArgs
func (*ModelServiceDeleteModelArgs) BLength ¶
func (p *ModelServiceDeleteModelArgs) BLength() int
func (*ModelServiceDeleteModelArgs) DeepEqual ¶
func (p *ModelServiceDeleteModelArgs) DeepEqual(ano *ModelServiceDeleteModelArgs) bool
func (*ModelServiceDeleteModelArgs) FastRead ¶
func (p *ModelServiceDeleteModelArgs) FastRead(buf []byte) (int, error)
func (*ModelServiceDeleteModelArgs) FastReadField1 ¶
func (p *ModelServiceDeleteModelArgs) FastReadField1(buf []byte) (int, error)
func (*ModelServiceDeleteModelArgs) FastWrite ¶
func (p *ModelServiceDeleteModelArgs) FastWrite(buf []byte) int
for compatibility
func (*ModelServiceDeleteModelArgs) FastWriteNocopy ¶
func (p *ModelServiceDeleteModelArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*ModelServiceDeleteModelArgs) Field1DeepEqual ¶
func (p *ModelServiceDeleteModelArgs) Field1DeepEqual(src *base.IDReq) bool
func (*ModelServiceDeleteModelArgs) GetFirstArgument ¶
func (p *ModelServiceDeleteModelArgs) GetFirstArgument() interface{}
func (*ModelServiceDeleteModelArgs) GetReq ¶
func (p *ModelServiceDeleteModelArgs) GetReq() (v *base.IDReq)
func (*ModelServiceDeleteModelArgs) InitDefault ¶
func (p *ModelServiceDeleteModelArgs) InitDefault()
func (*ModelServiceDeleteModelArgs) IsSetReq ¶
func (p *ModelServiceDeleteModelArgs) IsSetReq() bool
func (*ModelServiceDeleteModelArgs) Read ¶
func (p *ModelServiceDeleteModelArgs) Read(iprot thrift.TProtocol) (err error)
func (*ModelServiceDeleteModelArgs) ReadField1 ¶
func (p *ModelServiceDeleteModelArgs) ReadField1(iprot thrift.TProtocol) error
func (*ModelServiceDeleteModelArgs) SetReq ¶
func (p *ModelServiceDeleteModelArgs) SetReq(val *base.IDReq)
func (*ModelServiceDeleteModelArgs) String ¶
func (p *ModelServiceDeleteModelArgs) String() string
type ModelServiceDeleteModelResult ¶
type ModelServiceDeleteModelResult struct {
Success *base.Empty `thrift:"success,0,optional" frugal:"0,optional,base.Empty" json:"success,omitempty"`
}
func NewModelServiceDeleteModelResult ¶
func NewModelServiceDeleteModelResult() *ModelServiceDeleteModelResult
func (*ModelServiceDeleteModelResult) BLength ¶
func (p *ModelServiceDeleteModelResult) BLength() int
func (*ModelServiceDeleteModelResult) DeepEqual ¶
func (p *ModelServiceDeleteModelResult) DeepEqual(ano *ModelServiceDeleteModelResult) bool
func (*ModelServiceDeleteModelResult) FastRead ¶
func (p *ModelServiceDeleteModelResult) FastRead(buf []byte) (int, error)
func (*ModelServiceDeleteModelResult) FastReadField0 ¶
func (p *ModelServiceDeleteModelResult) FastReadField0(buf []byte) (int, error)
func (*ModelServiceDeleteModelResult) FastWrite ¶
func (p *ModelServiceDeleteModelResult) FastWrite(buf []byte) int
for compatibility
func (*ModelServiceDeleteModelResult) FastWriteNocopy ¶
func (p *ModelServiceDeleteModelResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*ModelServiceDeleteModelResult) Field0DeepEqual ¶
func (p *ModelServiceDeleteModelResult) Field0DeepEqual(src *base.Empty) bool
func (*ModelServiceDeleteModelResult) GetResult ¶
func (p *ModelServiceDeleteModelResult) GetResult() interface{}
func (*ModelServiceDeleteModelResult) GetSuccess ¶
func (p *ModelServiceDeleteModelResult) GetSuccess() (v *base.Empty)
func (*ModelServiceDeleteModelResult) InitDefault ¶
func (p *ModelServiceDeleteModelResult) InitDefault()
func (*ModelServiceDeleteModelResult) IsSetSuccess ¶
func (p *ModelServiceDeleteModelResult) IsSetSuccess() bool
func (*ModelServiceDeleteModelResult) Read ¶
func (p *ModelServiceDeleteModelResult) Read(iprot thrift.TProtocol) (err error)
func (*ModelServiceDeleteModelResult) ReadField0 ¶
func (p *ModelServiceDeleteModelResult) ReadField0(iprot thrift.TProtocol) error
func (*ModelServiceDeleteModelResult) SetSuccess ¶
func (p *ModelServiceDeleteModelResult) SetSuccess(x interface{})
func (*ModelServiceDeleteModelResult) String ¶
func (p *ModelServiceDeleteModelResult) String() string
type ModelServiceGenTokenArgs ¶
type ModelServiceGenTokenArgs struct {
Req *GenTokenReq `thrift:"req,1" frugal:"1,default,GenTokenReq" json:"req"`
}
func NewModelServiceGenTokenArgs ¶
func NewModelServiceGenTokenArgs() *ModelServiceGenTokenArgs
func (*ModelServiceGenTokenArgs) BLength ¶
func (p *ModelServiceGenTokenArgs) BLength() int
func (*ModelServiceGenTokenArgs) DeepEqual ¶
func (p *ModelServiceGenTokenArgs) DeepEqual(ano *ModelServiceGenTokenArgs) bool
func (*ModelServiceGenTokenArgs) FastRead ¶
func (p *ModelServiceGenTokenArgs) FastRead(buf []byte) (int, error)
func (*ModelServiceGenTokenArgs) FastReadField1 ¶
func (p *ModelServiceGenTokenArgs) FastReadField1(buf []byte) (int, error)
func (*ModelServiceGenTokenArgs) FastWrite ¶
func (p *ModelServiceGenTokenArgs) FastWrite(buf []byte) int
for compatibility
func (*ModelServiceGenTokenArgs) FastWriteNocopy ¶
func (p *ModelServiceGenTokenArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*ModelServiceGenTokenArgs) Field1DeepEqual ¶
func (p *ModelServiceGenTokenArgs) Field1DeepEqual(src *GenTokenReq) bool
func (*ModelServiceGenTokenArgs) GetFirstArgument ¶
func (p *ModelServiceGenTokenArgs) GetFirstArgument() interface{}
func (*ModelServiceGenTokenArgs) GetReq ¶
func (p *ModelServiceGenTokenArgs) GetReq() (v *GenTokenReq)
func (*ModelServiceGenTokenArgs) InitDefault ¶
func (p *ModelServiceGenTokenArgs) InitDefault()
func (*ModelServiceGenTokenArgs) IsSetReq ¶
func (p *ModelServiceGenTokenArgs) IsSetReq() bool
func (*ModelServiceGenTokenArgs) Read ¶
func (p *ModelServiceGenTokenArgs) Read(iprot thrift.TProtocol) (err error)
func (*ModelServiceGenTokenArgs) ReadField1 ¶
func (p *ModelServiceGenTokenArgs) ReadField1(iprot thrift.TProtocol) error
func (*ModelServiceGenTokenArgs) SetReq ¶
func (p *ModelServiceGenTokenArgs) SetReq(val *GenTokenReq)
func (*ModelServiceGenTokenArgs) String ¶
func (p *ModelServiceGenTokenArgs) String() string
type ModelServiceGenTokenResult ¶
type ModelServiceGenTokenResult struct {
Success *GenTokenResp `thrift:"success,0,optional" frugal:"0,optional,GenTokenResp" json:"success,omitempty"`
}
func NewModelServiceGenTokenResult ¶
func NewModelServiceGenTokenResult() *ModelServiceGenTokenResult
func (*ModelServiceGenTokenResult) BLength ¶
func (p *ModelServiceGenTokenResult) BLength() int
func (*ModelServiceGenTokenResult) DeepEqual ¶
func (p *ModelServiceGenTokenResult) DeepEqual(ano *ModelServiceGenTokenResult) bool
func (*ModelServiceGenTokenResult) FastRead ¶
func (p *ModelServiceGenTokenResult) FastRead(buf []byte) (int, error)
func (*ModelServiceGenTokenResult) FastReadField0 ¶
func (p *ModelServiceGenTokenResult) FastReadField0(buf []byte) (int, error)
func (*ModelServiceGenTokenResult) FastWrite ¶
func (p *ModelServiceGenTokenResult) FastWrite(buf []byte) int
for compatibility
func (*ModelServiceGenTokenResult) FastWriteNocopy ¶
func (p *ModelServiceGenTokenResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*ModelServiceGenTokenResult) Field0DeepEqual ¶
func (p *ModelServiceGenTokenResult) Field0DeepEqual(src *GenTokenResp) bool
func (*ModelServiceGenTokenResult) GetResult ¶
func (p *ModelServiceGenTokenResult) GetResult() interface{}
func (*ModelServiceGenTokenResult) GetSuccess ¶
func (p *ModelServiceGenTokenResult) GetSuccess() (v *GenTokenResp)
func (*ModelServiceGenTokenResult) InitDefault ¶
func (p *ModelServiceGenTokenResult) InitDefault()
func (*ModelServiceGenTokenResult) IsSetSuccess ¶
func (p *ModelServiceGenTokenResult) IsSetSuccess() bool
func (*ModelServiceGenTokenResult) Read ¶
func (p *ModelServiceGenTokenResult) Read(iprot thrift.TProtocol) (err error)
func (*ModelServiceGenTokenResult) ReadField0 ¶
func (p *ModelServiceGenTokenResult) ReadField0(iprot thrift.TProtocol) error
func (*ModelServiceGenTokenResult) SetSuccess ¶
func (p *ModelServiceGenTokenResult) SetSuccess(x interface{})
func (*ModelServiceGenTokenResult) String ¶
func (p *ModelServiceGenTokenResult) String() string
type ModelServiceGetModelByIDArgs ¶
type ModelServiceGetModelByIDArgs struct {
Req *base.IDReq `thrift:"req,1" frugal:"1,default,base.IDReq" json:"req"`
}
func NewModelServiceGetModelByIDArgs ¶
func NewModelServiceGetModelByIDArgs() *ModelServiceGetModelByIDArgs
func (*ModelServiceGetModelByIDArgs) BLength ¶
func (p *ModelServiceGetModelByIDArgs) BLength() int
func (*ModelServiceGetModelByIDArgs) DeepEqual ¶
func (p *ModelServiceGetModelByIDArgs) DeepEqual(ano *ModelServiceGetModelByIDArgs) bool
func (*ModelServiceGetModelByIDArgs) FastRead ¶
func (p *ModelServiceGetModelByIDArgs) FastRead(buf []byte) (int, error)
func (*ModelServiceGetModelByIDArgs) FastReadField1 ¶
func (p *ModelServiceGetModelByIDArgs) FastReadField1(buf []byte) (int, error)
func (*ModelServiceGetModelByIDArgs) FastWrite ¶
func (p *ModelServiceGetModelByIDArgs) FastWrite(buf []byte) int
for compatibility
func (*ModelServiceGetModelByIDArgs) FastWriteNocopy ¶
func (p *ModelServiceGetModelByIDArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*ModelServiceGetModelByIDArgs) Field1DeepEqual ¶
func (p *ModelServiceGetModelByIDArgs) Field1DeepEqual(src *base.IDReq) bool
func (*ModelServiceGetModelByIDArgs) GetFirstArgument ¶
func (p *ModelServiceGetModelByIDArgs) GetFirstArgument() interface{}
func (*ModelServiceGetModelByIDArgs) GetReq ¶
func (p *ModelServiceGetModelByIDArgs) GetReq() (v *base.IDReq)
func (*ModelServiceGetModelByIDArgs) InitDefault ¶
func (p *ModelServiceGetModelByIDArgs) InitDefault()
func (*ModelServiceGetModelByIDArgs) IsSetReq ¶
func (p *ModelServiceGetModelByIDArgs) IsSetReq() bool
func (*ModelServiceGetModelByIDArgs) Read ¶
func (p *ModelServiceGetModelByIDArgs) Read(iprot thrift.TProtocol) (err error)
func (*ModelServiceGetModelByIDArgs) ReadField1 ¶
func (p *ModelServiceGetModelByIDArgs) ReadField1(iprot thrift.TProtocol) error
func (*ModelServiceGetModelByIDArgs) SetReq ¶
func (p *ModelServiceGetModelByIDArgs) SetReq(val *base.IDReq)
func (*ModelServiceGetModelByIDArgs) String ¶
func (p *ModelServiceGetModelByIDArgs) String() string
type ModelServiceGetModelByIDResult ¶
type ModelServiceGetModelByIDResult struct {
Success *Model `thrift:"success,0,optional" frugal:"0,optional,Model" json:"success,omitempty"`
}
func NewModelServiceGetModelByIDResult ¶
func NewModelServiceGetModelByIDResult() *ModelServiceGetModelByIDResult
func (*ModelServiceGetModelByIDResult) BLength ¶
func (p *ModelServiceGetModelByIDResult) BLength() int
func (*ModelServiceGetModelByIDResult) DeepEqual ¶
func (p *ModelServiceGetModelByIDResult) DeepEqual(ano *ModelServiceGetModelByIDResult) bool
func (*ModelServiceGetModelByIDResult) FastRead ¶
func (p *ModelServiceGetModelByIDResult) FastRead(buf []byte) (int, error)
func (*ModelServiceGetModelByIDResult) FastReadField0 ¶
func (p *ModelServiceGetModelByIDResult) FastReadField0(buf []byte) (int, error)
func (*ModelServiceGetModelByIDResult) FastWrite ¶
func (p *ModelServiceGetModelByIDResult) FastWrite(buf []byte) int
for compatibility
func (*ModelServiceGetModelByIDResult) FastWriteNocopy ¶
func (p *ModelServiceGetModelByIDResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*ModelServiceGetModelByIDResult) Field0DeepEqual ¶
func (p *ModelServiceGetModelByIDResult) Field0DeepEqual(src *Model) bool
func (*ModelServiceGetModelByIDResult) GetResult ¶
func (p *ModelServiceGetModelByIDResult) GetResult() interface{}
func (*ModelServiceGetModelByIDResult) GetSuccess ¶
func (p *ModelServiceGetModelByIDResult) GetSuccess() (v *Model)
func (*ModelServiceGetModelByIDResult) InitDefault ¶
func (p *ModelServiceGetModelByIDResult) InitDefault()
func (*ModelServiceGetModelByIDResult) IsSetSuccess ¶
func (p *ModelServiceGetModelByIDResult) IsSetSuccess() bool
func (*ModelServiceGetModelByIDResult) Read ¶
func (p *ModelServiceGetModelByIDResult) Read(iprot thrift.TProtocol) (err error)
func (*ModelServiceGetModelByIDResult) ReadField0 ¶
func (p *ModelServiceGetModelByIDResult) ReadField0(iprot thrift.TProtocol) error
func (*ModelServiceGetModelByIDResult) SetSuccess ¶
func (p *ModelServiceGetModelByIDResult) SetSuccess(x interface{})
func (*ModelServiceGetModelByIDResult) String ¶
func (p *ModelServiceGetModelByIDResult) String() string
type ModelServiceListModelArgs ¶
type ModelServiceListModelArgs struct {
Req *ListModelReq `thrift:"req,1" frugal:"1,default,ListModelReq" json:"req"`
}
func NewModelServiceListModelArgs ¶
func NewModelServiceListModelArgs() *ModelServiceListModelArgs
func (*ModelServiceListModelArgs) BLength ¶
func (p *ModelServiceListModelArgs) BLength() int
func (*ModelServiceListModelArgs) DeepEqual ¶
func (p *ModelServiceListModelArgs) DeepEqual(ano *ModelServiceListModelArgs) bool
func (*ModelServiceListModelArgs) FastRead ¶
func (p *ModelServiceListModelArgs) FastRead(buf []byte) (int, error)
func (*ModelServiceListModelArgs) FastReadField1 ¶
func (p *ModelServiceListModelArgs) FastReadField1(buf []byte) (int, error)
func (*ModelServiceListModelArgs) FastWrite ¶
func (p *ModelServiceListModelArgs) FastWrite(buf []byte) int
for compatibility
func (*ModelServiceListModelArgs) FastWriteNocopy ¶
func (p *ModelServiceListModelArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*ModelServiceListModelArgs) Field1DeepEqual ¶
func (p *ModelServiceListModelArgs) Field1DeepEqual(src *ListModelReq) bool
func (*ModelServiceListModelArgs) GetFirstArgument ¶
func (p *ModelServiceListModelArgs) GetFirstArgument() interface{}
func (*ModelServiceListModelArgs) GetReq ¶
func (p *ModelServiceListModelArgs) GetReq() (v *ListModelReq)
func (*ModelServiceListModelArgs) InitDefault ¶
func (p *ModelServiceListModelArgs) InitDefault()
func (*ModelServiceListModelArgs) IsSetReq ¶
func (p *ModelServiceListModelArgs) IsSetReq() bool
func (*ModelServiceListModelArgs) Read ¶
func (p *ModelServiceListModelArgs) Read(iprot thrift.TProtocol) (err error)
func (*ModelServiceListModelArgs) ReadField1 ¶
func (p *ModelServiceListModelArgs) ReadField1(iprot thrift.TProtocol) error
func (*ModelServiceListModelArgs) SetReq ¶
func (p *ModelServiceListModelArgs) SetReq(val *ListModelReq)
func (*ModelServiceListModelArgs) String ¶
func (p *ModelServiceListModelArgs) String() string
type ModelServiceListModelResult ¶
type ModelServiceListModelResult struct {
Success *ListModelResp `thrift:"success,0,optional" frugal:"0,optional,ListModelResp" json:"success,omitempty"`
}
func NewModelServiceListModelResult ¶
func NewModelServiceListModelResult() *ModelServiceListModelResult
func (*ModelServiceListModelResult) BLength ¶
func (p *ModelServiceListModelResult) BLength() int
func (*ModelServiceListModelResult) DeepEqual ¶
func (p *ModelServiceListModelResult) DeepEqual(ano *ModelServiceListModelResult) bool
func (*ModelServiceListModelResult) FastRead ¶
func (p *ModelServiceListModelResult) FastRead(buf []byte) (int, error)
func (*ModelServiceListModelResult) FastReadField0 ¶
func (p *ModelServiceListModelResult) FastReadField0(buf []byte) (int, error)
func (*ModelServiceListModelResult) FastWrite ¶
func (p *ModelServiceListModelResult) FastWrite(buf []byte) int
for compatibility
func (*ModelServiceListModelResult) FastWriteNocopy ¶
func (p *ModelServiceListModelResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*ModelServiceListModelResult) Field0DeepEqual ¶
func (p *ModelServiceListModelResult) Field0DeepEqual(src *ListModelResp) bool
func (*ModelServiceListModelResult) GetResult ¶
func (p *ModelServiceListModelResult) GetResult() interface{}
func (*ModelServiceListModelResult) GetSuccess ¶
func (p *ModelServiceListModelResult) GetSuccess() (v *ListModelResp)
func (*ModelServiceListModelResult) InitDefault ¶
func (p *ModelServiceListModelResult) InitDefault()
func (*ModelServiceListModelResult) IsSetSuccess ¶
func (p *ModelServiceListModelResult) IsSetSuccess() bool
func (*ModelServiceListModelResult) Read ¶
func (p *ModelServiceListModelResult) Read(iprot thrift.TProtocol) (err error)
func (*ModelServiceListModelResult) ReadField0 ¶
func (p *ModelServiceListModelResult) ReadField0(iprot thrift.TProtocol) error
func (*ModelServiceListModelResult) SetSuccess ¶
func (p *ModelServiceListModelResult) SetSuccess(x interface{})
func (*ModelServiceListModelResult) String ¶
func (p *ModelServiceListModelResult) String() string
type ModelServiceUpdateModelArgs ¶
type ModelServiceUpdateModelArgs struct {
Req *UpdateModelReq `thrift:"req,1" frugal:"1,default,UpdateModelReq" json:"req"`
}
func NewModelServiceUpdateModelArgs ¶
func NewModelServiceUpdateModelArgs() *ModelServiceUpdateModelArgs
func (*ModelServiceUpdateModelArgs) BLength ¶
func (p *ModelServiceUpdateModelArgs) BLength() int
func (*ModelServiceUpdateModelArgs) DeepEqual ¶
func (p *ModelServiceUpdateModelArgs) DeepEqual(ano *ModelServiceUpdateModelArgs) bool
func (*ModelServiceUpdateModelArgs) FastRead ¶
func (p *ModelServiceUpdateModelArgs) FastRead(buf []byte) (int, error)
func (*ModelServiceUpdateModelArgs) FastReadField1 ¶
func (p *ModelServiceUpdateModelArgs) FastReadField1(buf []byte) (int, error)
func (*ModelServiceUpdateModelArgs) FastWrite ¶
func (p *ModelServiceUpdateModelArgs) FastWrite(buf []byte) int
for compatibility
func (*ModelServiceUpdateModelArgs) FastWriteNocopy ¶
func (p *ModelServiceUpdateModelArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*ModelServiceUpdateModelArgs) Field1DeepEqual ¶
func (p *ModelServiceUpdateModelArgs) Field1DeepEqual(src *UpdateModelReq) bool
func (*ModelServiceUpdateModelArgs) GetFirstArgument ¶
func (p *ModelServiceUpdateModelArgs) GetFirstArgument() interface{}
func (*ModelServiceUpdateModelArgs) GetReq ¶
func (p *ModelServiceUpdateModelArgs) GetReq() (v *UpdateModelReq)
func (*ModelServiceUpdateModelArgs) InitDefault ¶
func (p *ModelServiceUpdateModelArgs) InitDefault()
func (*ModelServiceUpdateModelArgs) IsSetReq ¶
func (p *ModelServiceUpdateModelArgs) IsSetReq() bool
func (*ModelServiceUpdateModelArgs) Read ¶
func (p *ModelServiceUpdateModelArgs) Read(iprot thrift.TProtocol) (err error)
func (*ModelServiceUpdateModelArgs) ReadField1 ¶
func (p *ModelServiceUpdateModelArgs) ReadField1(iprot thrift.TProtocol) error
func (*ModelServiceUpdateModelArgs) SetReq ¶
func (p *ModelServiceUpdateModelArgs) SetReq(val *UpdateModelReq)
func (*ModelServiceUpdateModelArgs) String ¶
func (p *ModelServiceUpdateModelArgs) String() string
type ModelServiceUpdateModelResult ¶
type ModelServiceUpdateModelResult struct {
Success *base.Empty `thrift:"success,0,optional" frugal:"0,optional,base.Empty" json:"success,omitempty"`
}
func NewModelServiceUpdateModelResult ¶
func NewModelServiceUpdateModelResult() *ModelServiceUpdateModelResult
func (*ModelServiceUpdateModelResult) BLength ¶
func (p *ModelServiceUpdateModelResult) BLength() int
func (*ModelServiceUpdateModelResult) DeepEqual ¶
func (p *ModelServiceUpdateModelResult) DeepEqual(ano *ModelServiceUpdateModelResult) bool
func (*ModelServiceUpdateModelResult) FastRead ¶
func (p *ModelServiceUpdateModelResult) FastRead(buf []byte) (int, error)
func (*ModelServiceUpdateModelResult) FastReadField0 ¶
func (p *ModelServiceUpdateModelResult) FastReadField0(buf []byte) (int, error)
func (*ModelServiceUpdateModelResult) FastWrite ¶
func (p *ModelServiceUpdateModelResult) FastWrite(buf []byte) int
for compatibility
func (*ModelServiceUpdateModelResult) FastWriteNocopy ¶
func (p *ModelServiceUpdateModelResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*ModelServiceUpdateModelResult) Field0DeepEqual ¶
func (p *ModelServiceUpdateModelResult) Field0DeepEqual(src *base.Empty) bool
func (*ModelServiceUpdateModelResult) GetResult ¶
func (p *ModelServiceUpdateModelResult) GetResult() interface{}
func (*ModelServiceUpdateModelResult) GetSuccess ¶
func (p *ModelServiceUpdateModelResult) GetSuccess() (v *base.Empty)
func (*ModelServiceUpdateModelResult) InitDefault ¶
func (p *ModelServiceUpdateModelResult) InitDefault()
func (*ModelServiceUpdateModelResult) IsSetSuccess ¶
func (p *ModelServiceUpdateModelResult) IsSetSuccess() bool
func (*ModelServiceUpdateModelResult) Read ¶
func (p *ModelServiceUpdateModelResult) Read(iprot thrift.TProtocol) (err error)
func (*ModelServiceUpdateModelResult) ReadField0 ¶
func (p *ModelServiceUpdateModelResult) ReadField0(iprot thrift.TProtocol) error
func (*ModelServiceUpdateModelResult) SetSuccess ¶
func (p *ModelServiceUpdateModelResult) SetSuccess(x interface{})
func (*ModelServiceUpdateModelResult) String ¶
func (p *ModelServiceUpdateModelResult) String() string
type ModelService_ChatServer ¶
type UpdateModelReq ¶
type UpdateModelReq struct { Id int64 `thrift:"id,1,required" frugal:"1,required,i64" path:"id"` Name *string `thrift:"name,2,optional" frugal:"2,optional,string" json:"name,omitempty"` Description *string `thrift:"description,3,optional" frugal:"3,optional,string" json:"description,omitempty"` Source *string `thrift:"source,4,optional" frugal:"4,optional,string" json:"source,omitempty"` ModelKey *string `thrift:"model_key,5,optional" frugal:"5,optional,string" json:"model_key,omitempty"` Logo *string `thrift:"logo,6,optional" frugal:"6,optional,string" json:"logo,omitempty"` InputPrice *string `thrift:"input_price,7,optional" frugal:"7,optional,string" json:"input_price,omitempty"` OutputPrice *string `thrift:"output_price,8,optional" frugal:"8,optional,string" json:"output_price,omitempty"` MaxToken *int64 `thrift:"max_token,9,optional" frugal:"9,optional,i64" json:"max_token,omitempty"` Tags []string `thrift:"tags,10,optional" frugal:"10,optional,list<string>" json:"tags,omitempty"` }
var ModelServiceUpdateModelArgs_Req_DEFAULT *UpdateModelReq
func NewUpdateModelReq ¶
func NewUpdateModelReq() *UpdateModelReq
func (*UpdateModelReq) BLength ¶
func (p *UpdateModelReq) BLength() int
func (*UpdateModelReq) DeepEqual ¶
func (p *UpdateModelReq) DeepEqual(ano *UpdateModelReq) bool
func (*UpdateModelReq) FastReadField1 ¶
func (p *UpdateModelReq) FastReadField1(buf []byte) (int, error)
func (*UpdateModelReq) FastReadField10 ¶ added in v0.1.7
func (p *UpdateModelReq) FastReadField10(buf []byte) (int, error)
func (*UpdateModelReq) FastReadField2 ¶
func (p *UpdateModelReq) FastReadField2(buf []byte) (int, error)
func (*UpdateModelReq) FastReadField3 ¶
func (p *UpdateModelReq) FastReadField3(buf []byte) (int, error)
func (*UpdateModelReq) FastReadField4 ¶
func (p *UpdateModelReq) FastReadField4(buf []byte) (int, error)
func (*UpdateModelReq) FastReadField5 ¶
func (p *UpdateModelReq) FastReadField5(buf []byte) (int, error)
func (*UpdateModelReq) FastReadField6 ¶
func (p *UpdateModelReq) FastReadField6(buf []byte) (int, error)
func (*UpdateModelReq) FastReadField7 ¶
func (p *UpdateModelReq) FastReadField7(buf []byte) (int, error)
func (*UpdateModelReq) FastReadField8 ¶
func (p *UpdateModelReq) FastReadField8(buf []byte) (int, error)
func (*UpdateModelReq) FastReadField9 ¶ added in v0.1.7
func (p *UpdateModelReq) FastReadField9(buf []byte) (int, error)
func (*UpdateModelReq) FastWrite ¶
func (p *UpdateModelReq) FastWrite(buf []byte) int
for compatibility
func (*UpdateModelReq) FastWriteNocopy ¶
func (p *UpdateModelReq) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*UpdateModelReq) Field10DeepEqual ¶ added in v0.1.7
func (p *UpdateModelReq) Field10DeepEqual(src []string) bool
func (*UpdateModelReq) Field1DeepEqual ¶
func (p *UpdateModelReq) Field1DeepEqual(src int64) bool
func (*UpdateModelReq) Field2DeepEqual ¶
func (p *UpdateModelReq) Field2DeepEqual(src *string) bool
func (*UpdateModelReq) Field3DeepEqual ¶
func (p *UpdateModelReq) Field3DeepEqual(src *string) bool
func (*UpdateModelReq) Field4DeepEqual ¶
func (p *UpdateModelReq) Field4DeepEqual(src *string) bool
func (*UpdateModelReq) Field5DeepEqual ¶
func (p *UpdateModelReq) Field5DeepEqual(src *string) bool
func (*UpdateModelReq) Field6DeepEqual ¶
func (p *UpdateModelReq) Field6DeepEqual(src *string) bool
func (*UpdateModelReq) Field7DeepEqual ¶
func (p *UpdateModelReq) Field7DeepEqual(src *string) bool
func (*UpdateModelReq) Field8DeepEqual ¶
func (p *UpdateModelReq) Field8DeepEqual(src *string) bool
func (*UpdateModelReq) Field9DeepEqual ¶ added in v0.1.7
func (p *UpdateModelReq) Field9DeepEqual(src *int64) bool
func (*UpdateModelReq) GetDescription ¶
func (p *UpdateModelReq) GetDescription() (v string)
func (*UpdateModelReq) GetId ¶
func (p *UpdateModelReq) GetId() (v int64)
func (*UpdateModelReq) GetInputPrice ¶
func (p *UpdateModelReq) GetInputPrice() (v string)
func (*UpdateModelReq) GetLogo ¶
func (p *UpdateModelReq) GetLogo() (v string)
func (*UpdateModelReq) GetMaxToken ¶ added in v0.1.7
func (p *UpdateModelReq) GetMaxToken() (v int64)
func (*UpdateModelReq) GetModelKey ¶
func (p *UpdateModelReq) GetModelKey() (v string)
func (*UpdateModelReq) GetName ¶
func (p *UpdateModelReq) GetName() (v string)
func (*UpdateModelReq) GetOutputPrice ¶
func (p *UpdateModelReq) GetOutputPrice() (v string)
func (*UpdateModelReq) GetSource ¶
func (p *UpdateModelReq) GetSource() (v string)
func (*UpdateModelReq) GetTags ¶ added in v0.1.7
func (p *UpdateModelReq) GetTags() (v []string)
func (*UpdateModelReq) InitDefault ¶
func (p *UpdateModelReq) InitDefault()
func (*UpdateModelReq) IsSetDescription ¶
func (p *UpdateModelReq) IsSetDescription() bool
func (*UpdateModelReq) IsSetInputPrice ¶
func (p *UpdateModelReq) IsSetInputPrice() bool
func (*UpdateModelReq) IsSetLogo ¶
func (p *UpdateModelReq) IsSetLogo() bool
func (*UpdateModelReq) IsSetMaxToken ¶ added in v0.1.7
func (p *UpdateModelReq) IsSetMaxToken() bool
func (*UpdateModelReq) IsSetModelKey ¶
func (p *UpdateModelReq) IsSetModelKey() bool
func (*UpdateModelReq) IsSetName ¶
func (p *UpdateModelReq) IsSetName() bool
func (*UpdateModelReq) IsSetOutputPrice ¶
func (p *UpdateModelReq) IsSetOutputPrice() bool
func (*UpdateModelReq) IsSetSource ¶
func (p *UpdateModelReq) IsSetSource() bool
func (*UpdateModelReq) IsSetTags ¶ added in v0.1.7
func (p *UpdateModelReq) IsSetTags() bool
func (*UpdateModelReq) ReadField1 ¶
func (p *UpdateModelReq) ReadField1(iprot thrift.TProtocol) error
func (*UpdateModelReq) ReadField10 ¶ added in v0.1.7
func (p *UpdateModelReq) ReadField10(iprot thrift.TProtocol) error
func (*UpdateModelReq) ReadField2 ¶
func (p *UpdateModelReq) ReadField2(iprot thrift.TProtocol) error
func (*UpdateModelReq) ReadField3 ¶
func (p *UpdateModelReq) ReadField3(iprot thrift.TProtocol) error
func (*UpdateModelReq) ReadField4 ¶
func (p *UpdateModelReq) ReadField4(iprot thrift.TProtocol) error
func (*UpdateModelReq) ReadField5 ¶
func (p *UpdateModelReq) ReadField5(iprot thrift.TProtocol) error
func (*UpdateModelReq) ReadField6 ¶
func (p *UpdateModelReq) ReadField6(iprot thrift.TProtocol) error
func (*UpdateModelReq) ReadField7 ¶
func (p *UpdateModelReq) ReadField7(iprot thrift.TProtocol) error
func (*UpdateModelReq) ReadField8 ¶
func (p *UpdateModelReq) ReadField8(iprot thrift.TProtocol) error
func (*UpdateModelReq) ReadField9 ¶ added in v0.1.7
func (p *UpdateModelReq) ReadField9(iprot thrift.TProtocol) error
func (*UpdateModelReq) SetDescription ¶
func (p *UpdateModelReq) SetDescription(val *string)
func (*UpdateModelReq) SetId ¶
func (p *UpdateModelReq) SetId(val int64)
func (*UpdateModelReq) SetInputPrice ¶
func (p *UpdateModelReq) SetInputPrice(val *string)
func (*UpdateModelReq) SetLogo ¶
func (p *UpdateModelReq) SetLogo(val *string)
func (*UpdateModelReq) SetMaxToken ¶ added in v0.1.7
func (p *UpdateModelReq) SetMaxToken(val *int64)
func (*UpdateModelReq) SetModelKey ¶
func (p *UpdateModelReq) SetModelKey(val *string)
func (*UpdateModelReq) SetName ¶
func (p *UpdateModelReq) SetName(val *string)
func (*UpdateModelReq) SetOutputPrice ¶
func (p *UpdateModelReq) SetOutputPrice(val *string)
func (*UpdateModelReq) SetSource ¶
func (p *UpdateModelReq) SetSource(val *string)
func (*UpdateModelReq) SetTags ¶ added in v0.1.7
func (p *UpdateModelReq) SetTags(val []string)
func (*UpdateModelReq) String ¶
func (p *UpdateModelReq) String() string
Click to show internal directories.
Click to hide internal directories.