Documentation ¶
Index ¶
- Constants
- func DiffImages(sliceA, sliceB []imgur.Image) ([]imgur.Image, []imgur.Image)
- func Randomise(images []imgur.Image)
- type App
- func (a *App) AddAlbumToFolder(albumId string) (err error)
- func (a *App) Authorise() error
- func (a *App) AuthorisedUsername() string
- func (a *App) CountImages() int
- func (a *App) DownloadImage(image imgur.Image) (imgPath string, err error)
- func (a *App) DownloadState() (data []byte, err error)
- func (a *App) DumpFavourites(folderOwner string) (err error)
- func (a *App) GetStateAlbum() (album imgur.Album, err error)
- func (a *App) GetStateImage() (image imgur.Image, err error)
- func (a *App) LoadAlbums() (err error)
- func (a *App) LoadImages() (err error)
- func (a *App) LoadState() (err error)
- func (a *App) PickImage(expiry time.Duration, minRatio, maxRatio int) (imgur.Image, error)
- func (a *App) RunServer(shutdownChan chan error)
- func (a *App) SaveImages() error
- func (a *App) SaveState() (err error)
- func (a *App) SelectFolder(folderOwner, folderName string) error
- func (a *App) SetSeed(seed int64)
- func (a *App) StopServer()
- func (a *App) SyncState() (err error)
- func (a *App) UploadAllImages(sourcePath, albumName string) (err error)
- func (a *App) UploadState(state State) (err error)
- type State
Constants ¶
View Source
const AuthPort = 8099
These are hard coded on the Imgur app auth page
View Source
const AuthUrl = "/oauthcallback"
View Source
const StateAlbumName = "Bgur Sync Data"
View Source
const TimeFormat = time.RFC3339
Variables ¶
This section is empty.
Functions ¶
func DiffImages ¶
Returns elements in A not in B, and vice versa
Types ¶
type App ¶
type App struct { ConfigDir string CacheDir string CacheTime time.Duration Sync bool // contains filtered or unexported fields }
func (*App) AddAlbumToFolder ¶
func (*App) AuthorisedUsername ¶
func (*App) CountImages ¶
func (*App) DownloadImage ¶
func (*App) DownloadState ¶
func (*App) DumpFavourites ¶
func (*App) LoadAlbums ¶
func (*App) LoadImages ¶
func (*App) SaveImages ¶
func (*App) SelectFolder ¶
func (*App) StopServer ¶
func (a *App) StopServer()
func (*App) UploadAllImages ¶
func (*App) UploadState ¶
Click to show internal directories.
Click to hide internal directories.