Documentation ¶
Index ¶
- Constants
- type App
- func (a *App) CancelGDriveOauth()
- func (a *App) CancelQueue(id int)
- func (a *App) ChangeMasterPassword(oldPassword, newPassword string) error
- func (a *App) CheckForUpdates() (bool, error)
- func (a *App) CheckMasterPassword(password string) bool
- func (a *App) DeleteAllGdriveCache() error
- func (a *App) DeleteAllKemonoCreatorCache() error
- func (a *App) DeleteAllPostCache() error
- func (a *App) DeleteAllUgoiraCache() error
- func (a *App) DeleteCacheKey(bucket, cacheKey string) error
- func (a *App) DeleteProfilePic() error
- func (a *App) DeleteQueue(id int)
- func (a *App) GetAllGdriveCache() []*FrontendCacheKeyValue
- func (a *App) GetAllKemonoCreatorCache() []*FrontendCacheKeyValue
- func (a *App) GetAllUgoiraCache() []*FrontendCacheKeyValue
- func (a *App) GetDarkMode() bool
- func (a *App) GetDownloadDir() (string, error)
- func (a *App) GetDownloadQueues() []FrontendDownloadQueue
- func (a *App) GetFfmpegPath() string
- func (a *App) GetFrontendDownloadDetails(id int) []*FrontendDownloadDetails
- func (a *App) GetGDriveAPIKey() string
- func (a *App) GetGDriveClientAndOauthToken() GetGDriveOauthResponse
- func (a *App) GetGDriveServiceAccount() string
- func (a *App) GetGdriveClient() *gdrive.GDrive
- func (a *App) GetLanguage() string
- func (a *App) GetPixivRefreshToken() string
- func (a *App) GetPostCache(filter Filter) []*database.PostCache
- func (a *App) GetPreferences() *Preferences
- func (a *App) GetProfilePic() (ProfilePic, error)
- func (a *App) GetProgramInfo() ProgramInfo
- func (a *App) GetSessionValue(website string) (string, error)
- func (a *App) GetUserAgent() UserAgentResponse
- func (a *App) GetUsername() string
- func (a *App) HasProfilePic() bool
- func (a *App) PromptMasterPassword() bool
- func (a *App) RemoveMasterPassword() error
- func (a *App) ResetSession(website string) error
- func (a *App) SelectDlDirPath() error
- func (a *App) SelectFfmpegPath() error
- func (a *App) SelectGDriveServiceAccount() error
- func (a *App) SelectProfilePic() (ProfilePic, error)
- func (a *App) SetDarkMode(darkMode bool)
- func (a *App) SetDlDirPath(dirPath string) error
- func (a *App) SetFantiaPreferences(p *FantiaPreferences) error
- func (a *App) SetFfmpegPath(ffmpegPath string) error
- func (a *App) SetGDriveAPIKey(apiKey string) error
- func (a *App) SetGeneralPreferences(p *GeneralPreferences) error
- func (a *App) SetLanguage(lang string) string
- func (a *App) SetMasterPassword(password string) error
- func (a *App) SetPixivOAuthRefreshToken(refreshToken string) error
- func (a *App) SetPixivPreferences(p *PixivPreferences) error
- func (a *App) SetSessionValue(website, session string) error
- func (a *App) SetUserAgent(userAgent string) error
- func (a *App) SetUsername(username string)
- func (a *App) Shutdown(ctx context.Context)
- func (a *App) StartGDriveOauth() error
- func (a *App) StartPixivOAuth() string
- func (a *App) Startup(ctx context.Context)
- func (a *App) SubmitFantiaToQueue(inputs []string, prefs *Preferences) error
- func (a *App) SubmitKemonoToQueue(inputs []string, prefs *Preferences) error
- func (a *App) SubmitPixivFanboxToQueue(inputs []string, prefs *Preferences) error
- func (a *App) SubmitPixivToQueue(inputs []string, prefs *Preferences) error
- func (a *App) Translate(textKey, fallback, lang string) string
- func (a *App) UnsetGDriveJson() error
- func (a *App) UploadCookieFile(website string) error
- func (a *App) UploadProfilePic(picPath string) error
- func (a *App) ValidateFantiaUrls(inputs []string) bool
- func (a *App) ValidateGDriveOauth() error
- func (a *App) ValidateKemonoInputs(inputs []string) bool
- func (a *App) ValidatePixivFanboxUrls(inputs []string) bool
- func (a *App) ValidatePixivInputs(inputs []string) bool
- func (a *App) VerifyPixivOAuthCode(code string) error
- type DownloadQueue
- type FantiaPreferences
- type Filter
- type FrontendCacheKeyValue
- type FrontendDownloadDetails
- type FrontendDownloadQueue
- type GeneralPreferences
- type GetGDriveOauthResponse
- type Input
- type Messages
- type NestedProgressBar
- type PixivPreferences
- type Preferences
- type ProfilePic
- type ProgramInfo
- type ProgressBar
- func (p *ProgressBar) Add(i int)
- func (p *ProgressBar) GetBaseMsg() string
- func (p *ProgressBar) GetErrorMsg() string
- func (p *ProgressBar) GetIsProgBar() bool
- func (p *ProgressBar) GetIsSpinner() bool
- func (p *ProgressBar) GetSuccessMsg() string
- func (p *ProgressBar) Increment()
- func (p *ProgressBar) MakeLatestSnapshotMain()
- func (p *ProgressBar) SetToProgressBar()
- func (p *ProgressBar) SetToSpinner()
- func (p *ProgressBar) SnapshotTask()
- func (p *ProgressBar) Start()
- func (p *ProgressBar) Stop(hasErr bool)
- func (p *ProgressBar) StopInterrupt(errMsg string)
- func (p *ProgressBar) UpdateBaseMsg(msg string)
- func (p *ProgressBar) UpdateErrorMsg(errMsg string)
- func (p *ProgressBar) UpdateFolderPath(folderPath string)
- func (p *ProgressBar) UpdateMax(max int)
- func (p *ProgressBar) UpdateSuccessMsg(successMsg string)
- type UserAgentResponse
Constants ¶
View Source
const ( None = iota PixivArtworkTypeIllustAndUgoira PixivArtworkTypeManga PixivArtworkTypeAll PixivRatingModeR18 PixivRatingModeSafe PixivRatingModeAll PixivSearchModeTag PixivSearchModeTagFull PixivSearchModeTC PixivSortOrderDate PixivSortOrderDateDesc PixivSortOrderPopular PixivSortOrderPopularDesc PixivSortOrderPopularMale PixivSortOrderPopularMaleDesc PixivSortOrderPopularFemale PixivSortOrderPopularFemaleDesc PixivUgoiraOutputFormatGif PixivUgoiraOutputFormatApng PixivUgoiraOutputFormatWebp PixivUgoiraOutputFormatWebm PixivUgoiraOutputFormatMp4 PixivAiSearchAllow PixivAiSearchFilter UnknownValue = "Unknown" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App struct
func (*App) CancelGDriveOauth ¶
func (a *App) CancelGDriveOauth()
func (*App) CancelQueue ¶
func (*App) ChangeMasterPassword ¶
func (*App) CheckForUpdates ¶
func (*App) CheckMasterPassword ¶
func (*App) DeleteAllGdriveCache ¶
func (*App) DeleteAllKemonoCreatorCache ¶
func (*App) DeleteAllPostCache ¶
func (*App) DeleteAllUgoiraCache ¶
func (*App) DeleteCacheKey ¶
func (*App) DeleteProfilePic ¶
func (*App) DeleteQueue ¶
func (*App) GetAllGdriveCache ¶
func (a *App) GetAllGdriveCache() []*FrontendCacheKeyValue
func (*App) GetAllKemonoCreatorCache ¶
func (a *App) GetAllKemonoCreatorCache() []*FrontendCacheKeyValue
func (*App) GetAllUgoiraCache ¶
func (a *App) GetAllUgoiraCache() []*FrontendCacheKeyValue
func (*App) GetDarkMode ¶
func (*App) GetDownloadDir ¶
func (*App) GetDownloadQueues ¶
func (a *App) GetDownloadQueues() []FrontendDownloadQueue
func (*App) GetFfmpegPath ¶
func (*App) GetFrontendDownloadDetails ¶
func (a *App) GetFrontendDownloadDetails(id int) []*FrontendDownloadDetails
func (*App) GetGDriveAPIKey ¶
func (*App) GetGDriveClientAndOauthToken ¶
func (a *App) GetGDriveClientAndOauthToken() GetGDriveOauthResponse
func (*App) GetGDriveServiceAccount ¶
func (*App) GetGdriveClient ¶
func (*App) GetLanguage ¶
func (*App) GetPixivRefreshToken ¶
func (*App) GetPreferences ¶
func (a *App) GetPreferences() *Preferences
func (*App) GetProfilePic ¶
func (a *App) GetProfilePic() (ProfilePic, error)
func (*App) GetProgramInfo ¶
func (a *App) GetProgramInfo() ProgramInfo
func (*App) GetUserAgent ¶
func (a *App) GetUserAgent() UserAgentResponse
func (*App) GetUsername ¶
func (*App) HasProfilePic ¶
func (*App) PromptMasterPassword ¶
func (*App) RemoveMasterPassword ¶
func (*App) ResetSession ¶
func (*App) SelectDlDirPath ¶
func (*App) SelectFfmpegPath ¶
func (*App) SelectGDriveServiceAccount ¶
func (*App) SelectProfilePic ¶
func (a *App) SelectProfilePic() (ProfilePic, error)
func (*App) SetDarkMode ¶
func (*App) SetDlDirPath ¶
func (*App) SetFantiaPreferences ¶
func (a *App) SetFantiaPreferences(p *FantiaPreferences) error
func (*App) SetFfmpegPath ¶
func (*App) SetGDriveAPIKey ¶
func (*App) SetGeneralPreferences ¶
func (a *App) SetGeneralPreferences(p *GeneralPreferences) error
func (*App) SetLanguage ¶
func (*App) SetMasterPassword ¶
func (*App) SetPixivOAuthRefreshToken ¶
func (*App) SetPixivPreferences ¶
func (a *App) SetPixivPreferences(p *PixivPreferences) error
func (*App) SetSessionValue ¶
func (*App) SetUserAgent ¶
func (*App) SetUsername ¶
func (*App) StartGDriveOauth ¶
func (*App) StartPixivOAuth ¶
func (*App) Startup ¶
startup is called when the app starts. The context is saved so we can call the runtime methods
func (*App) SubmitFantiaToQueue ¶
func (a *App) SubmitFantiaToQueue(inputs []string, prefs *Preferences) error
func (*App) SubmitKemonoToQueue ¶
func (a *App) SubmitKemonoToQueue(inputs []string, prefs *Preferences) error
func (*App) SubmitPixivFanboxToQueue ¶
func (a *App) SubmitPixivFanboxToQueue(inputs []string, prefs *Preferences) error
func (*App) SubmitPixivToQueue ¶
func (a *App) SubmitPixivToQueue(inputs []string, prefs *Preferences) error
func (*App) UnsetGDriveJson ¶
func (*App) UploadCookieFile ¶
func (*App) UploadProfilePic ¶
func (*App) ValidateFantiaUrls ¶
returns true if it's valid, false otherwise.
func (*App) ValidateGDriveOauth ¶
func (*App) ValidateKemonoInputs ¶
returns true if it's valid, false otherwise.
func (*App) ValidatePixivFanboxUrls ¶
returns true if it's valid, false otherwise.
func (*App) ValidatePixivInputs ¶
returns true if it's valid, false otherwise.
func (*App) VerifyPixivOAuthCode ¶
type DownloadQueue ¶
type DownloadQueue struct {
// contains filtered or unexported fields
}
func (*DownloadQueue) CancelQueue ¶
func (q *DownloadQueue) CancelQueue()
func (*DownloadQueue) GetErrSlice ¶
func (q *DownloadQueue) GetErrSlice() []error
func (*DownloadQueue) GetStatus ¶
func (q *DownloadQueue) GetStatus() (active bool, finished bool)
func (*DownloadQueue) SetFinished ¶
func (q *DownloadQueue) SetFinished(finished bool)
func (*DownloadQueue) Start ¶
func (q *DownloadQueue) Start()
func (*DownloadQueue) UpdateErrSlice ¶
func (q *DownloadQueue) UpdateErrSlice(errSlice []error)
type FantiaPreferences ¶
type FantiaPreferences struct {
OrganisePostImages bool `json:"OrganisePostImages"`
}
type FrontendCacheKeyValue ¶
type FrontendDownloadDetails ¶
type FrontendDownloadDetails struct { Msg string `json:"Msg"` SuccessMsg string `json:"SuccessMsg"` ErrMsg string `json:"ErrMsg"` Finished bool `json:"Finished"` HasError bool `json:"HasError"` FileSize string `json:"FileSize"` Filename string `json:"Filename"` DownloadSpeed float64 `json:"DownloadSpeed"` DownloadETA float64 `json:"DownloadETA"` Percentage int `json:"Percentage"` }
type FrontendDownloadQueue ¶
type FrontendDownloadQueue struct { Id int `json:"Id"` Website string `json:"Website"` Msg string `json:"Msg"` SuccessMsg string `json:"SuccessMsg"` ErrMsg string `json:"ErrMsg"` ErrSlice []string `json:"ErrSlice"` HasError bool `json:"HasError"` Inputs []Input `json:"Inputs"` ProgressBar ProgressBar `json:"ProgressBar"` NestedProgressBar []*NestedProgressBar `json:"NestedProgressBar"` Finished bool `json:"Finished"` }
type GeneralPreferences ¶
type GeneralPreferences struct { DlPostThumbnail bool `json:"DlPostThumbnail"` DlPostImages bool `json:"DlPostImages"` DlPostAttachments bool `json:"DlPostAttachments"` OverwriteFiles bool `json:"OverwriteFiles"` DlGDrive bool `json:"DlGDrive"` DetectOtherLinks bool `json:"DetectOtherLinks"` UseCacheDb bool `json:"UseCacheDb"` }
type GetGDriveOauthResponse ¶
type NestedProgressBar ¶
type PixivPreferences ¶
type PixivPreferences struct { ArtworkType int `json:"ArtworkType"` DeleteUgoiraZip bool `json:"DeleteUgoiraZip"` RatingMode int `json:"RatingMode"` SearchMode int `json:"SearchMode"` AiSearchMode int `json:"AiSearchMode"` SortOrder int `json:"SortOrder"` UgoiraOutputFormat int `json:"UgoiraOutputFormat"` UgoiraQuality int `json:"UgoiraQuality"` }
type Preferences ¶
type Preferences struct { DlPostThumbnail bool `json:"DlPostThumbnail"` DlPostImages bool `json:"DlPostImages"` DlPostAttachments bool `json:"DlPostAttachments"` OverwriteFiles bool `json:"OverwriteFiles"` DlGDrive bool `json:"DlGDrive"` DetectOtherLinks bool `json:"DetectOtherLinks"` UseCacheDb bool `json:"UseCacheDb"` // Fantia OrganisePostImages bool `json:"OrganisePostImages"` // Pixiv ArtworkType int `json:"ArtworkType"` DeleteUgoiraZip bool `json:"DeleteUgoiraZip"` RatingMode int `json:"RatingMode"` SearchMode int `json:"SearchMode"` AiSearchMode int `json:"AiSearchMode"` SortOrder int `json:"SortOrder"` UgoiraOutputFormat int `json:"UgoiraOutputFormat"` UgoiraQuality int `json:"UgoiraQuality"` }
type ProfilePic ¶
type ProfilePic struct { Path string `json:"Path"` Type string `json:"Type"` Filename string `json:"Filename"` Data string `json:"Data"` }
func NewProfilePic ¶
func NewProfilePic(path string) (ProfilePic, error)
type ProgramInfo ¶
type ProgressBar ¶
type ProgressBar struct { // For the frontend IsSpinner bool `json:"IsSpinner"` Count int `json:"Count"` MaxCount int `json:"MaxCount"` Active bool `json:"Active"` Finished bool `json:"Finished"` HasError bool `json:"HasError"` Percentage int `json:"Percentage"` FolderPath string `json:"FolderPath"` DateTime time.Time `json:"DateTime"` // download progress bars for more detailed information DownloadProgressBars []*progress.DownloadProgressBar // contains filtered or unexported fields }
func NewProgressBar ¶
func NewProgressBar(ctx context.Context) *ProgressBar
func (*ProgressBar) Add ¶
func (p *ProgressBar) Add(i int)
func (*ProgressBar) GetBaseMsg ¶
func (p *ProgressBar) GetBaseMsg() string
func (*ProgressBar) GetErrorMsg ¶
func (p *ProgressBar) GetErrorMsg() string
func (*ProgressBar) GetIsProgBar ¶
func (p *ProgressBar) GetIsProgBar() bool
func (*ProgressBar) GetIsSpinner ¶
func (p *ProgressBar) GetIsSpinner() bool
func (*ProgressBar) GetSuccessMsg ¶
func (p *ProgressBar) GetSuccessMsg() string
func (*ProgressBar) Increment ¶
func (p *ProgressBar) Increment()
func (*ProgressBar) MakeLatestSnapshotMain ¶
func (p *ProgressBar) MakeLatestSnapshotMain()
func (*ProgressBar) SetToProgressBar ¶
func (p *ProgressBar) SetToProgressBar()
func (*ProgressBar) SetToSpinner ¶
func (p *ProgressBar) SetToSpinner()
func (*ProgressBar) SnapshotTask ¶
func (p *ProgressBar) SnapshotTask()
func (*ProgressBar) Start ¶
func (p *ProgressBar) Start()
func (*ProgressBar) Stop ¶
func (p *ProgressBar) Stop(hasErr bool)
func (*ProgressBar) StopInterrupt ¶
func (p *ProgressBar) StopInterrupt(errMsg string)
func (*ProgressBar) UpdateBaseMsg ¶
func (p *ProgressBar) UpdateBaseMsg(msg string)
func (*ProgressBar) UpdateErrorMsg ¶
func (p *ProgressBar) UpdateErrorMsg(errMsg string)
func (*ProgressBar) UpdateFolderPath ¶
func (p *ProgressBar) UpdateFolderPath(folderPath string)
func (*ProgressBar) UpdateMax ¶
func (p *ProgressBar) UpdateMax(max int)
func (*ProgressBar) UpdateSuccessMsg ¶
func (p *ProgressBar) UpdateSuccessMsg(successMsg string)
type UserAgentResponse ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.