Documentation ¶
Index ¶
- type API
- func (api *API) DeleteModel(w http.ResponseWriter, r *http.Request)
- func (api *API) GetModel(w http.ResponseWriter, r *http.Request)
- func (api *API) GetModelMetadata(w http.ResponseWriter, r *http.Request)
- func (api *API) GetNetworkStatus(w http.ResponseWriter, r *http.Request)
- func (api *API) GetPeers(w http.ResponseWriter, r *http.Request)
- func (api *API) GetStorageStatus(w http.ResponseWriter, r *http.Request)
- func (api *API) HealthCheck(w http.ResponseWriter, r *http.Request)
- func (api *API) ListModels(w http.ResponseWriter, r *http.Request)
- func (api *API) Start() error
- func (api *API) Stop(ctx context.Context) error
- func (api *API) UploadModel(w http.ResponseWriter, r *http.Request)
- type APIResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func (*API) DeleteModel ¶
func (api *API) DeleteModel(w http.ResponseWriter, r *http.Request)
Delete model handler
func (*API) GetModel ¶
func (api *API) GetModel(w http.ResponseWriter, r *http.Request)
Get model handler
func (*API) GetModelMetadata ¶
func (api *API) GetModelMetadata(w http.ResponseWriter, r *http.Request)
Get model metadata handler
func (*API) GetNetworkStatus ¶
func (api *API) GetNetworkStatus(w http.ResponseWriter, r *http.Request)
Network status handler
func (*API) GetPeers ¶
func (api *API) GetPeers(w http.ResponseWriter, r *http.Request)
Get peers handler
func (*API) GetStorageStatus ¶
func (api *API) GetStorageStatus(w http.ResponseWriter, r *http.Request)
Storage status handler
func (*API) HealthCheck ¶
func (api *API) HealthCheck(w http.ResponseWriter, r *http.Request)
Health check handler
func (*API) ListModels ¶
func (api *API) ListModels(w http.ResponseWriter, r *http.Request)
List models handler
func (*API) UploadModel ¶
func (api *API) UploadModel(w http.ResponseWriter, r *http.Request)
Model upload handler
type APIResponse ¶
Click to show internal directories.
Click to hide internal directories.