Documentation ¶
Index ¶
- func TxCheckClientID(tx *gorm.DB, clientID string) error
- func TxCheckModelIDs(tx *gorm.DB, modelIDs []string) error
- type ClientModelRelation
- type DBClient
- func (dbClient *DBClient) Allocate(ctx context.Context, req *pb.AllocateRequest) (*commonpb.VoidResponse, error)
- func (dbClient *DBClient) ListClientModels(ctx context.Context, req *pb.ListClientModelsRequest) (*pb.ListAllocatedModelsResponse, error)
- func (dbClient *DBClient) UnAllocate(ctx context.Context, req *pb.AllocateRequest) (*commonpb.VoidResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClientModelRelation ¶
type ClientModelRelation struct { common.BaseModel ClientID string `gorm:"column:client_id;type:char(36)" json:"clientID" yaml:"clientID"` ModelID string `gorm:"column:model_id;type:char(36)" json:"modelID" yaml:"modelID"` }
func (*ClientModelRelation) TableName ¶
func (*ClientModelRelation) TableName() string
type DBClient ¶
func (*DBClient) Allocate ¶
func (dbClient *DBClient) Allocate(ctx context.Context, req *pb.AllocateRequest) (*commonpb.VoidResponse, error)
func (*DBClient) ListClientModels ¶
func (dbClient *DBClient) ListClientModels(ctx context.Context, req *pb.ListClientModelsRequest) (*pb.ListAllocatedModelsResponse, error)
func (*DBClient) UnAllocate ¶
func (dbClient *DBClient) UnAllocate(ctx context.Context, req *pb.AllocateRequest) (*commonpb.VoidResponse, error)
Click to show internal directories.
Click to hide internal directories.