Documentation ¶
Index ¶
- Constants
- type App
- func (r *App) Close() error
- func (r *App) CountMedia() (int, error)
- func (r *App) GetGoogleClient() *googlephotoclient.Client
- func (r *App) InitConfig(force bool) error
- func (r *App) Start() error
- func (r *App) Sync(ignoreCursor bool) error
- func (r *App) TryAuth() error
- func (r *App) UploadPath(path string) error
- type Config
- type UploadResult
Constants ¶
View Source
const ( UploadResultRetry = UploadResult("retry") UploadResultWaitAndRetry = UploadResult("wait_and_retry") UploadResultReactDayLimit = UploadResult("react_day_limit") UpdateResultSkip = UploadResult("skip") UpdateResultError = UploadResult("error") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) CountMedia ¶
func (*App) GetGoogleClient ¶
func (r *App) GetGoogleClient() *googlephotoclient.Client
func (*App) InitConfig ¶
func (*App) UploadPath ¶
type Config ¶
type Config struct { Account string `json:"account"` GooglePhotos struct { ClientID string `json:"client_id"` ClientSecret string `json:"client_secret"` } `json:"google_photos"` Dropbox struct { Token string `json:"token"` RootDir string `json:"root_dir"` } `json:"dropbox"` Worker int `json:"worker"` }
type UploadResult ¶
type UploadResult string
Click to show internal directories.
Click to hide internal directories.