Documentation
¶
Index ¶
- type CacheType
- type CreateLocalModel
- type CreateLocalModelInstallState
- type CreateLocalModelPackage
- type EditLocalModel
- type EditLocalModelInstallState
- type EditLocalModelPackage
- type ILocalModelCacheService
- type ILocalModelInstallStateService
- type ILocalModelPackageService
- type ILocalModelService
- type LocalModel
- type LocalModelCache
- type LocalModelInstallState
- type LocalModelPackage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheType ¶
type CacheType string
const (
CacheTypeService CacheType = "service"
)
func FromCacheType ¶
type CreateLocalModel ¶
type CreateLocalModelPackage ¶
type EditLocalModel ¶
type EditLocalModel struct {
State *int
}
type EditLocalModelPackage ¶
type ILocalModelCacheService ¶
type ILocalModelCacheService interface {
List(ctx context.Context, model string, typ CacheType) ([]*LocalModelCache, error)
Delete(ctx context.Context, model string) error
Save(ctx context.Context, model string, typ CacheType, target string) error
GetByTarget(ctx context.Context, typ CacheType, target string) (*LocalModelCache, error)
}
type ILocalModelInstallStateService ¶
type ILocalModelInstallStateService interface {
universally.IServiceGet[LocalModelInstallState]
universally.IServiceCreate[CreateLocalModelInstallState]
universally.IServiceEdit[EditLocalModelInstallState]
universally.IServiceDelete
}
type ILocalModelPackageService ¶
type ILocalModelPackageService interface {
universally.IServiceGet[LocalModelPackage]
universally.IServiceCreate[CreateLocalModelPackage]
universally.IServiceEdit[EditLocalModelPackage]
universally.IServiceDelete
}
type ILocalModelService ¶
type ILocalModelService interface {
universally.IServiceGet[LocalModel]
universally.IServiceCreate[CreateLocalModel]
universally.IServiceEdit[EditLocalModel]
universally.IServiceDelete
DefaultModel(ctx context.Context) (*LocalModel, error)
UpdateProvider(ctx context.Context, provider string, ids ...string) error
}
type LocalModel ¶
type LocalModelCache ¶
type LocalModelInstallState ¶
Click to show internal directories.
Click to hide internal directories.