config

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RawConfig

type RawConfig struct {
	Proxy []map[string]interface{} `yaml:"proxies"`
}

func GenerateProxies

func GenerateProxies(sCfg *SuConfig) (proxies map[string]C.Proxy, cfg *RawConfig, err error)

func NETFLIXFilter

func NETFLIXFilter(netflixList []string, cfg *RawConfig) (netflixCfg RawConfig)

func UnmarshalRawConfig

func UnmarshalRawConfig(buf []byte) (*RawConfig, error)

type SuConfig

type SuConfig struct {
	ConverterAPI   string       `yaml:"converterAPI"`
	SubURL         string       `yaml:"subURL"`
	LocalFile      bool         `yaml:"localFile"`
	Token          string       `yaml:"token"`
	MaxConn        int          `yaml:"maxConn"`
	GistUrl        string       `yaml:"gistUrl,omitempty"`
	Internal       int          `yaml:"internal"`
	LogLevel       log.LogLevel `yaml:"log_level"`
	EnableTelegram bool         `yaml:"enableTelegram"`
	Telegram       *telegram
}

func Init

func Init(cfgPath *string) (s *SuConfig)

Jump to

Keyboard shortcuts

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