Documentation ¶
Index ¶
- Variables
- type SteamCmd
- func (scmd *SteamCmd) AppAvailableVersion(id int) (int, error)
- func (scmd *SteamCmd) AppInstalledVersion(id int) (int, error)
- func (scmd SteamCmd) CheckLogin() error
- func (scmd *SteamCmd) DownloadWorkshopMod(appid, id int) error
- func (scmd *SteamCmd) DownloadWorkshopMods(appid string, ids ...string) error
- func (scmd SteamCmd) EnsureInstalled() error
- func (scmd *SteamCmd) InstallUpdateApp(id int) error
- func (scmd *SteamCmd) Raw(params ...string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotImplemented gets returned if something doesnt work yet ErrNotImplemented = errors.New("Not implemented") )
Functions ¶
This section is empty.
Types ¶
type SteamCmd ¶
type SteamCmd struct { sync.Mutex // mutex for operations LoginUser string LoginPass string Debug bool }
SteamCmd is a wrapper around the Steam CMD
func (*SteamCmd) AppAvailableVersion ¶
AppAvailableVersion returns the latest Build ID for the Public branch of an Steam App
func (*SteamCmd) AppInstalledVersion ¶
AppInstalledVersion returns the Build ID of an Steam App
func (SteamCmd) CheckLogin ¶
CheckLogin checks if the given login can authenticate with Steam
func (*SteamCmd) DownloadWorkshopMod ¶
DownloadWorkshopMod tries to download a mod from the workshop
func (*SteamCmd) DownloadWorkshopMods ¶
DownloadWorkshopMods tries to download the specified mods from the workshop
func (SteamCmd) EnsureInstalled ¶
EnsureInstalled checks if the SteamCmd is executable. Remember, steam needs curl, bzip2, tar and lib32gcc1
func (*SteamCmd) InstallUpdateApp ¶
InstallUpdateApp installs and updates a given app
Click to show internal directories.
Click to hide internal directories.