structs

package
v0.0.0-...-e372f82 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Subreddits   []string
	DownloadPath string          `json:"downloadPath"`
	FileExt      map[string]bool `json:"fileExt"`
}

Config hold data on what Reddits to pull from

func (*Config) LoadConfig

func (c *Config) LoadConfig(confFile string)

LoadConfig will load in a config from a path

type DownloadFile

type DownloadFile struct {
	Filename string
	Folder   string
	URL      string
}

DownloadFile holds the details for the file to download

func (*DownloadFile) DownloadFile

func (f *DownloadFile) DownloadFile(directory string) bool

DownloadFile is used to download the file to the local system

Jump to

Keyboard shortcuts

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