Documentation
¶
Overview ¶
Package registry implements an http.Handler for handling local Ollama API model management requests. See Local for details.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Local ¶
type Local struct {
Client *ollama.Registry // required
Logger *slog.Logger // required
// Fallback, if set, is used to handle requests that are not handled by
// this handler.
Fallback http.Handler
// Prune, if set, is called to prune the local disk cache after a model
// is deleted.
Prune func() error // optional
}
Local implements an http.Handler for handling local Ollama API model management requests, such as pushing, pulling, and deleting models.
It can be arranged for all unknown requests to be passed through to a fallback handler, if one is provided.
Click to show internal directories.
Click to hide internal directories.