backendapi

package
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBackendRoutes

func AddBackendRoutes(mux *http.ServeMux, backendService backendservice.Service, stateService stateservice.Service)

func AddModelRoutes

func AddModelRoutes(mux *http.ServeMux, modelService modelservice.Service, dwService downloadservice.Service)

func AddQueueRoutes

func AddQueueRoutes(mux *http.ServeMux, dwService downloadservice.Service)

func AddStateRoutes added in v0.0.5

func AddStateRoutes(mux *http.ServeMux, stateService stateservice.Service)

Types

type RespBackend

type RespBackend struct {
	ID           string                  `json:"id"`
	Name         string                  `json:"name"`
	BaseURL      string                  `json:"baseUrl"`
	Type         string                  `json:"type"`
	Models       []string                `json:"models"`
	PulledModels []api.ListModelResponse `json:"pulledModels"`
	Error        string                  `json:"error,omitempty"`
	CreatedAt    time.Time               `json:"createdAt"`
	UpdatedAt    time.Time               `json:"updatedAt"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL