Documentation
¶
Index ¶
Constants ¶
View Source
const ( // This flag is enabled if files are retrieved from local storage using the CASC format OptUseCASContainer = 1 << iota // This flag is enabled if files are retrieved over the network (if OptUseCASContainer is not set, or if the file was not retrieved from CASC) OptUseTACTNetwork )
Variables ¶
This section is empty.
Functions ¶
func DefaultDownloader ¶
func DefaultDownloader(url string) (io.ReadCloser, error)
Types ¶
type Agent ¶
type Agent struct {
Region string
Locale i18n.Locale
// A base URL for the NGDP entry point
HostServer string
// Callback for customizing how clients connect to the CDN
DownloadFn func(url string) (io.ReadCloser, error)
}
Agent defines the user's preferences
func DefaultAgent ¶
func DefaultAgent() *Agent
type BuildConfig ¶
type BuildConfig struct {
Root Hash `ccfg:"root"`
Install []Hash `ccfg:"install"`
InstallSize []uint64 `ccfg:"install-size"`
Download []Hash `ccfg:"download"`
DownloadSize []uint64 `ccfg:"download-size"`
Size []Hash `ccfg:"size"`
SizeSize []uint64 `ccfg:"size-size"`
Encoding []Hash `ccfg:"encoding"`
EncodingSize []uint64 `ccfg:"encoding-size"`
Patch Hash `ccfg:"patch"`
PatchSize uint64 `ccfg:"patch-size"`
PatchConfig Hash `ccfg:"patch-config"`
BuildName string `ccfg:"build-name"`
BuildUID string `ccfg:"build-uid"`
BuildProduct string `ccfg:"build-product"`
BuildPlayBuildInstaller string `ccfg:"build-playbuild-installer"`
BuildPartialPriority []string `ccfg:"build-partial-priority"`
}
Click to show internal directories.
Click to hide internal directories.