Documentation ¶
Index ¶
Constants ¶
View Source
const BrowserVFSPathDefault = "computer://"
Variables ¶
View Source
var InjectorCode = "" /* 4460-byte string literal not displayed */
Functions ¶
func BrowserVFSLocationReal ¶ added in v1.3.0
func FetchRemotePlugins ¶
func WriteConfig ¶
func WriteConfig(cfg Config)
Types ¶
type BrowserLocation ¶ added in v1.3.0
func BrowserVFSList ¶ added in v1.3.0
func BrowserVFSList(vfsPath string) []BrowserLocation
type Config ¶
type Config struct {
DiscordPath string `json:"discordPath"`
}
func ReadConfig ¶
func ReadConfig() Config
type DiscordInstance ¶
func CheckDiscordLocation ¶ added in v1.3.0
func CheckDiscordLocation(dir string) *DiscordInstance
func GetChannels ¶
func GetChannels() []DiscordInstance
func GetInstance ¶
func GetInstance(channel string) (DiscordInstance, error)
func NewDiscordInstance ¶
func NewDiscordInstance(path string) (*DiscordInstance, error)
type FinderLocation ¶ added in v1.3.0
type FinderLocation struct { BrowserLocation Instance *DiscordInstance }
A BrowserLocation with the output of CheckDiscordLocation. The CCUpdaterUI code put the necessary information into GameInstance but Impregnate doesn't do that. So we use this instead to get the same data.
func DiscordFinderVFSList ¶ added in v1.3.0
func DiscordFinderVFSList(vfsPath string) []FinderLocation
type ReturnData ¶
type ReturnData struct {
Name string `json:"name"`
}
func CheckHealth ¶
func CheckHealth() ReturnData
type Warning ¶
Warning represents a warning to show the user on the primary view.
func FindWarnings ¶
type WarningID ¶
type WarningID int
const ( // NullActionWarningID cannot be automatically fixed. NullActionWarningID WarningID = iota // InstallOrUpdatePackageWarningID warnings can be solved by installing/updating the package Parameter. InstallOrUpdatePackageWarningID // URLAndCloseWarningID warnings can be solved manually by the user given navigation to a URL. The application closes. URLAndCloseWarningID )
Source Files ¶
Click to show internal directories.
Click to hide internal directories.