Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { LogLevel slog.Level `json:"log_level,omitempty"` LogFormat string `json:"log_format,omitempty"` HTTPAddr string `json:"http_addr,omitempty"` }
func LoadConfig ¶
type Endpoints ¶
func MakeEndpoints ¶
type Service ¶
type Service interface { Search(ctx context.Context, query Query) ([]ServiceInfo, error) Versions(ctx context.Context, packageId string) ([]string, error) }
func NewService ¶
func NewService(controller WingetController) Service
type ServiceInfo ¶
type WingetController ¶
type WingetController interface { Search(ctx context.Context, term string) ([]ServiceInfo, error) Versions(ctx context.Context, packageId string) ([]string, error) }
func NewWingetController ¶
func NewWingetController(logger *slog.Logger) WingetController
Source Files ¶
Click to show internal directories.
Click to hide internal directories.