Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetResVersion ¶
GetResVersion gets the current resource version.
Types ¶
type ResInfo ¶
ResInfo represents an abstraction of AbInfo and PackInfo.
func FilterResInfos ¶
FilterResInfos returns a slice containing all ResInfo matching the specified predicate.
func FilterResInfosRegexp ¶
FilterResInfosRegexp returns a slice containing all ResInfo matching the specified regexp.
func GetResInfos ¶
GetResInfos gets the resource infos of specified resource version.
type Resources ¶
type Resources struct { FullPack FullPack `json:"fullPack"` VersionId string `json:"versionId"` AbInfos []AbInfo `json:"abInfos"` CountOfTypedRes int `json:"countOfTypedRes"` PackInfos []PackInfo `json:"packInfos"` }
Resources represents a raw response of ".../hot_update_list.json"
func GetRawResources ¶
GetRawResources gets the raw response of Arknights resource API with specified resource version.
type Version ¶
type Version struct { ResVersion string `json:"resVersion"` ClientVersion string `json:"clientVersion"` }
Version represents a raw response of "https://ak-conf.hypergryph.com/config/prod/official/Android/version".
func GetRawVersion ¶
GetRawVersion gets the raw response from Arknights version API.