Documentation ¶
Index ¶
- type DBClient
- func (dbClient *DBClient) Create(ctx context.Context, req *pb.ModelCreateRequest) (*pb.Model, error)
- func (dbClient *DBClient) Delete(ctx context.Context, req *pb.ModelDeleteRequest) (*commonpb.VoidResponse, error)
- func (dbClient *DBClient) Get(ctx context.Context, req *pb.ModelGetRequest) (*pb.Model, error)
- func (dbClient *DBClient) Paging(ctx context.Context, req *pb.ModelPagingRequest) (*pb.ModelPagingResponse, error)
- func (dbClient *DBClient) Update(ctx context.Context, req *pb.ModelUpdateRequest) (*pb.Model, error)
- type Model
- type Models
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBClient ¶
func (*DBClient) Delete ¶
func (dbClient *DBClient) Delete(ctx context.Context, req *pb.ModelDeleteRequest) (*commonpb.VoidResponse, error)
func (*DBClient) Paging ¶
func (dbClient *DBClient) Paging(ctx context.Context, req *pb.ModelPagingRequest) (*pb.ModelPagingResponse, error)
type Model ¶
type Model struct { common.BaseModel Name string `gorm:"column:name;type:varchar(191)" json:"name" yaml:"name"` Desc string `gorm:"column:desc;type:varchar(1024)" json:"desc" yaml:"desc"` Type model_type.ModelType `gorm:"column:type;type:varchar(32)" json:"type" yaml:"type"` ProviderID string `gorm:"column:provider_id;type:char(36)" json:"providerID" yaml:"providerID"` APIKey string `gorm:"column:api_key;type:varchar(191)" json:"aPIKey" yaml:"aPIKey"` Metadata metadata.Metadata `gorm:"column:metadata;type:mediumtext" json:"metadata" yaml:"metadata"` }
func (*Model) ToProtobuf ¶
Click to show internal directories.
Click to hide internal directories.