updatelist

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2023 License: ISC Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Document

type Document struct {
	Info          litexml.DocumentInfo
	PatchVer      string      `tag:"patchVer" attr:"value"`
	PatchNum      int         `tag:"patchNum" attr:"value"`
	UpdateListVer string      `tag:"updatelistVer" attr:"value"`
	UpdateFiles   UpdateFiles `tag:"updatefiles"`
}

Document is the document containing the update list.

type FileInfo

type FileInfo struct {
	Filename   string `attr:"fname"`
	Directory  string `attr:"fdir"`
	Size       int64  `attr:"fsize"`
	Crc        int32  `attr:"fcrc"`
	Date       string `attr:"fdate"`
	Time       string `attr:"ftime"`
	PackedName string `attr:"pname"`
	PackedSize int64  `attr:"psize"`
}

FileInfo represents the per-file information in an UpdateList.

func MakeFileInfo

func MakeFileInfo(basedir, dir string, finfo os.FileInfo, psize int64) (FileInfo, error)

MakeFileInfo generates a FileInfo structure from an OS file.

type UpdateFiles

type UpdateFiles struct {
	Count int        `attr:"count"`
	Files []FileInfo `tag:"fileinfo"`
}

UpdateFiles contains the files in the updatelist.

Jump to

Keyboard shortcuts

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