config

package
v1.1.17 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultConfigLocation added in v1.1.17

func DefaultConfigLocation() (string, error)

func OpenConfig added in v1.1.17

func OpenConfig(customPath string) error

func SaveConfig added in v1.1.17

func SaveConfig() error

Types

type Config added in v1.1.17

type Config struct {
	DivoltSessionTokens     []string            `json:"divoltsessiontokens"`
	DivoltLoginCredentials  []*ConfigCredential `json:"divoltlogincredentials"`
	DiscordSessionTokens    []string            `json:"discordsessiontokens"`
	DiscordLoginCredentials []*ConfigCredential `json:"discordlogincredentials"`
	DownloadCmd             *ConfigDownloadCmd  `json:"downloadcmd"`
}
var Open *Config

type ConfigCredential added in v1.1.17

type ConfigCredential struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

type ConfigDownloadCmd added in v1.1.17

type ConfigDownloadCmd struct {
	UseDiscord bool                     `json:"usediscord"`
	OutputDir  string                   `json:"outputdir"`
	LogLevel   string                   `json:"loglevel"`
	Quality    int                      `json:"quality"`
	Timeout    int                      `json:"timeout"`
	Cooldown   int                      `json:"cooldown"`
	Ignore     *ConfigDownloadCmdIgnore `json:"ignore"`
	Skip       *ConfigDownloadCmdSkip   `json:"skip"`
}

type ConfigDownloadCmdIgnore added in v1.1.17

type ConfigDownloadCmdIgnore struct {
	Cover   bool `json:"cover"`
	SubDirs bool `json:"subdirs"`
}

type ConfigDownloadCmdSkip added in v1.1.17

type ConfigDownloadCmdSkip struct {
	Unzip bool `json:"unzip"`
}

Jump to

Keyboard shortcuts

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