Documentation
¶
Index ¶
- func ApplyGalleryFromFile(modelPath, s string, cm *config.ConfigLoader, galleries []gallery.Gallery) error
- func ApplyGalleryFromString(modelPath, s string, cm *config.ConfigLoader, galleries []gallery.Gallery) error
- func ApplyModelGalleryEndpoint(modelPath string, cm *config.ConfigLoader, g chan galleryOp, ...) func(c *fiber.Ctx) error
- func BackendMonitorEndpoint(bm BackendMonitor) func(c *fiber.Ctx) error
- func BackendShutdownEndpoint(bm BackendMonitor) func(c *fiber.Ctx) error
- func GetOpStatusEndpoint(g *galleryApplier) func(c *fiber.Ctx) error
- func ListModelFromGalleryEndpoint(galleries []gallery.Gallery, basePath string) func(c *fiber.Ctx) error
- func NewGalleryService(modelPath string) *galleryApplier
- func TTSEndpoint(cm *config.ConfigLoader, o *options.Option) func(c *fiber.Ctx) error
- type BackendMonitor
- type BackendMonitorRequest
- type BackendMonitorResponse
- type GalleryModel
- type TTSRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyGalleryFromFile ¶
func ApplyGalleryFromString ¶
func BackendMonitorEndpoint ¶ added in v1.25.0
func BackendMonitorEndpoint(bm BackendMonitor) func(c *fiber.Ctx) error
func BackendShutdownEndpoint ¶ added in v1.25.0
func BackendShutdownEndpoint(bm BackendMonitor) func(c *fiber.Ctx) error
func GetOpStatusEndpoint ¶
func NewGalleryService ¶
func NewGalleryService(modelPath string) *galleryApplier
func TTSEndpoint ¶
Types ¶
type BackendMonitor ¶ added in v1.25.0
type BackendMonitor struct {
// contains filtered or unexported fields
}
func NewBackendMonitor ¶ added in v1.25.0
func NewBackendMonitor(configLoader *config.ConfigLoader, options *options.Option) BackendMonitor
func (*BackendMonitor) SampleLocalBackendProcess ¶ added in v1.25.0
func (bm *BackendMonitor) SampleLocalBackendProcess(model string) (*BackendMonitorResponse, error)
type BackendMonitorRequest ¶ added in v1.25.0
type BackendMonitorRequest struct {
Model string `json:"model" yaml:"model"`
}
type BackendMonitorResponse ¶ added in v1.25.0
type BackendMonitorResponse struct {
MemoryInfo *gopsutil.MemoryInfoStat
MemoryPercent float32
CPUPercent float64
}
type GalleryModel ¶
type GalleryModel struct {
ID string `json:"id"`
gallery.GalleryModel
}
type TTSRequest ¶
Click to show internal directories.
Click to hide internal directories.