Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultLimit = 50 MaxLimit = 100 )
ModServiceInterface defines the interface for mod service operations
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(modService ModServiceInterface, version string, disabledVersions []string) *Handler
type ModServiceInterface ¶
type ModServiceInterface interface {
GetModList(ctx context.Context, limit int, after string, before string) ([]modmgr.Mod, error)
GetMod(ctx context.Context, modID string) (*modmgr.Mod, error)
GetModVersions(ctx context.Context, modID string, limit int, after string) ([]modmgr.ModVersion, error)
GetModVersion(ctx context.Context, modID string, versionID string) (*modmgr.ModVersion, error)
}
Click to show internal directories.
Click to hide internal directories.