Version: v0.0.0-...-b9c0c39 Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2021 License: GPL-2.0 Imports: 7 Imported by: 0




This section is empty.


This section is empty.


This section is empty.


type App

type App struct {
	// contains filtered or unexported fields

App is a GoSiMac application. It contains all gosimac functionality. it fetchs background from given source and store them in the given path.

func NewApp

func NewApp(path string, source Source) *App

NewApp creates new app from given source.

func (*App) Run

func (a *App) Run() error

Run application that fetches images and store them.

func (*App) Wait

func (a *App) Wait()

Wait waits until all images are fetched.

type Source

type Source interface {
	Init() (int, error)                             // call once on source and return number of available images to fetch
	Name() string                                   // name of source in string format
	Fetch(index int) (string, io.ReadCloser, error) // fetch image from source

Source represents source for image background.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL