Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoIndex = errors.New("no json index found inside jar")
Functions ¶
This section is empty.
Types ¶
type Apk ¶
type Apk struct { VersName string `json:"versionName"` VersCode int `json:"versionCode"` Size int64 `json:"size"` MinSdk StringInt `json:"minSdkVersion"` MaxSdk StringInt `json:"maxSdkVersion"` TargetSdk StringInt `json:"targetSdkVersion"` ABIs []string `json:"nativecode"` ApkName string `json:"apkName"` SrcName string `json:"srcname"` Sig HexVal `json:"sig"` Signer HexVal `json:"signer"` Added UnixDate `json:"added"` Perms []Permission `json:"uses-permission"` Feats []string `json:"features"` Hash HexVal `json:"hash"` HashType string `json:"hashType"` AppID string `json:"-"` RepoURL string `json:"-"` }
Apk is an Android package
func (*Apk) IsCompatibleABI ¶
func (*Apk) IsCompatibleAPILevel ¶
type App ¶
type App struct { PackageName string `json:"packageName"` Name string `json:"name"` Summary string `json:"summary"` Added UnixDate `json:"added"` Updated UnixDate `json:"lastUpdated"` Icon string `json:"icon"` Description string `json:"description"` License string `json:"license"` Categories []string `json:"categories"` Website string `json:"webSite"` SourceCode string `json:"sourceCode"` IssueTracker string `json:"issueTracker"` Changelog string `json:"changelog"` Donate string `json:"donate"` Bitcoin string `json:"bitcoin"` Litecoin string `json:"litecoin"` FlattrID string `json:"flattrID"` SugVersName string `json:"suggestedVersionName"` SugVersCode int `json:"suggestedVersionCode,string"` FdroidRepoName string `json:"-"` FdroidRepoURL string `json:"-"` Localized map[string]Localization `json:"localized"` Apks []*Apk `json:"-"` }
App is an Android application
func (*App) IconURLForDensity ¶
func (a *App) IconURLForDensity(density IconDensity) string
type IconDensity ¶
type IconDensity uint
const ( UnknownDensity IconDensity = 0 LowDensity IconDensity = 120 MediumDensity IconDensity = 160 HighDensity IconDensity = 240 XHighDensity IconDensity = 320 XXHighDensity IconDensity = 480 XXXHighDensity IconDensity = 640 )
type Index ¶
type Localization ¶
type Permission ¶ added in v0.6.0
func (*Permission) UnmarshalJSON ¶ added in v0.6.0
func (p *Permission) UnmarshalJSON(data []byte) error
type StringInt ¶ added in v0.6.0
type StringInt struct {
Value int
}
https://codesahara.com/blog/golang-cannot-unmarshal-string-into-go-value-of-type-int/
func (*StringInt) UnmarshalJSON ¶ added in v0.6.0
type UnixDate ¶
UnixDate is F-Droid's timestamp format. It's a unix time, but in milliseconds. We can ignore the extra digits, as they're always zero, and won't be displayed anyway.
func (*UnixDate) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.