Documentation ¶
Index ¶
- func GetGlobalMods(w http.ResponseWriter, r *http.Request)
- func GetLocalMods(w http.ResponseWriter, r *http.Request)
- func Install(w http.ResponseWriter, r *http.Request)
- func Uninstall(w http.ResponseWriter, r *http.Request)
- func Update(w http.ResponseWriter, r *http.Request)
- type GlobalModsResponse
- type InstallRequest
- type InstallResponse
- type LocalModsRequest
- type LocalModsResponse
- type UninstallRequest
- type UninstallResponse
- type UpdateRequest
- type UpdateResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGlobalMods ¶
func GetGlobalMods(w http.ResponseWriter, r *http.Request)
GetGlobalMods returns all available mods
func GetLocalMods ¶
func GetLocalMods(w http.ResponseWriter, r *http.Request)
GetLocalMods returns all installed mods
Types ¶
type GlobalModsResponse ¶
type GlobalModsResponse struct { Success bool `json:"success"` Message string `json:"message,omitempty"` Mods map[string]ccmodupdater.PackageMetadata `json:"mods"` }
GlobalModsResponse contains a list of available mods
type InstallRequest ¶
InstallRequest for incoming installation requests
type InstallResponse ¶
type InstallResponse struct { Success bool `json:"success"` Message string `json:"message,omitempty"` Stats *internal.Stats `json:"stats,omitempty"` }
InstallResponse for installation requests
type LocalModsRequest ¶
type LocalModsRequest struct {
Game *string `json:"game"`
}
LocalModsRequest for incoming installed mod list requests
type LocalModsResponse ¶
type LocalModsResponse struct { Success bool `json:"success"` Message string `json:"message,omitempty"` Mods []ccmodupdater.PackageMetadata `json:"mods"` }
LocalModsResponse contains a list of installed mods
type UninstallRequest ¶
UninstallRequest for incoming uninstallation requests
type UninstallResponse ¶
type UninstallResponse struct { Success bool `json:"success"` Message string `json:"message,omitempty"` Stats *internal.Stats `json:"stats,omitempty"` }
UninstallResponse for uninstallation requests
type UpdateRequest ¶
UpdateRequest for incoming update requests
Click to show internal directories.
Click to hide internal directories.