channel

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Channels = channelMap{RegistryMap: util.RegistryMap{}}

Channels handles all registered channels TODO make this variable local and add functions instead

Functions

This section is empty.

Types

type Channel

type Channel interface {
	Download(*viper.Viper) (*bytes.Reader, image.Image, *PictureMeta, error)
}

Channel defines a wallpaper downloader

type PictureMeta added in v0.4.0

type PictureMeta struct {
	Title        string
	Caption      string
	Credit       string
	Format       string
	Channel      string
	ChannelKey   string
	UploadTime   time.Time
	DownloadTime time.Time
}

PictureMeta contains title, format, time and other metadata of a picture

Jump to

Keyboard shortcuts

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