Multi-Platform Package Manager for Stable Diffusion
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
using StabilityMatrix.Core.Models;
|
|
|
|
using StabilityMatrix.Core.Models.Database;
|
|
|
|
|
|
|
|
namespace StabilityMatrix.Core.Services;
|
|
|
|
|
|
|
|
public interface IModelIndexService
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Refreshes the local model file index.
|
|
|
|
/// </summary>
|
|
|
|
Task RefreshIndex();
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Get all models of the specified type from the existing index.
|
|
|
|
/// </summary>
|
|
|
|
Task<IReadOnlyList<LocalModelFile>> GetModelsOfType(SharedFolderType type);
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Starts a background task to refresh the local model file index.
|
|
|
|
/// </summary>
|
|
|
|
void BackgroundRefreshIndex();
|
|
|
|
}
|