internal

package
v0.0.0-...-086aacb Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2019 License: Apache-2.0, Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsMatchBetween

func IsMatchBetween(parsedCurrentTime []int, parsedPeriodStart []int, parsedPeriodEnd []int) bool

func IsMatchEvery

func IsMatchEvery(parsedCurrentTime []int, parsedScheduleInput []int) bool

func Monitor

func Monitor()

func NextWallpaper

func NextWallpaper()

func SetWallpaper

func SetWallpaper()

Types

type Config

type Config struct {
	Sources   []Sources   `mapstructure:"sources"`
	Schedules []Schedules `mapstructure:"schedules"`
}

func GetConfig

func GetConfig() Config

type Period

type Period struct {
	Start string
	End   string
}

type Schedules

type Schedules struct {
	Id        string
	Enabled   bool
	Title     string
	Type      string
	Frequency string
	Period    Period
	Priority  string
	Sources   []string
}

type Sources

type Sources struct {
	Id         string
	Title      string
	Plugin     string
	Subreddits []string
	Folders    []string
	Files      []string
}

Jump to

Keyboard shortcuts

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