conf

package
v0.0.0-...-fc6a7e2 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfig

func InitConfig(path string) error

Initializing configuration information

Types

type ConfigType

type ConfigType struct {
	Proxy    string     `yaml:"proxy"`
	Username string     `yaml:"username"`
	Password string     `yaml:"password"`
	Open     OpenConfig `yaml:"open"`
}
var Config ConfigType

func (*ConfigType) UseProxy

func (c *ConfigType) UseProxy() bool

UseProxy returns whether the proxy is used

type OpenConfig

type OpenConfig struct {
	DownloadDir string   `yaml:"download_dir"`
	Default     []string `yaml:"default"`
	Text        []string `yaml:"text"`
	Image       []string `yaml:"image"`
	Video       []string `yaml:"video"`
	Audio       []string `yaml:"audio"`
	PDF         []string `yaml:"pdf"`
}

Jump to

Keyboard shortcuts

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