steamcmd

package module
v0.0.0-...-35473e6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

README

steamcmd

Golang wrapper around the steamcmd

Documentation

Index

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 New

func New(user, pass string) *SteamCmd

New creates a new steamcmd instance, defaulting to anonymous login

func (*SteamCmd) AppAvailableVersion

func (scmd *SteamCmd) AppAvailableVersion(id int) (int, error)

AppAvailableVersion returns the latest Build ID for the Public branch of an Steam App

func (*SteamCmd) AppInstalledVersion

func (scmd *SteamCmd) AppInstalledVersion(id int) (int, error)

AppInstalledVersion returns the Build ID of an Steam App

func (SteamCmd) CheckLogin

func (scmd SteamCmd) CheckLogin() error

CheckLogin checks if the given login can authenticate with Steam

func (*SteamCmd) DownloadWorkshopMod

func (scmd *SteamCmd) DownloadWorkshopMod(appid, id int) error

DownloadWorkshopMod tries to download a mod from the workshop

func (*SteamCmd) DownloadWorkshopMods

func (scmd *SteamCmd) DownloadWorkshopMods(appid string, ids ...string) error

DownloadWorkshopMods tries to download the specified mods from the workshop

func (SteamCmd) EnsureInstalled

func (scmd SteamCmd) EnsureInstalled() error

EnsureInstalled checks if the SteamCmd is executable. Remember, steam needs curl, bzip2, tar and lib32gcc1

func (*SteamCmd) InstallUpdateApp

func (scmd *SteamCmd) InstallUpdateApp(id int) error

InstallUpdateApp installs and updates a given app

func (*SteamCmd) Raw

func (scmd *SteamCmd) Raw(params ...string) error

Raw exposes run to use raw parameters

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL