config

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func LoadConfig

func LoadConfig() error

Types

type Config

type Config struct {
	Address            string `mapstructure:"address"`
	MetaTemplate       string `mapstructure:"meta_template"`
	ClashTemplate      string `mapstructure:"clash_template"`
	RequestRetryTimes  int    `mapstructure:"request_retry_times"`
	RequestMaxFileSize int64  `mapstructure:"request_max_file_size"`
	CacheExpire        int64  `mapstructure:"cache_expire"`
	LogLevel           string `mapstructure:"log_level"`
	ShortLinkLength    int    `mapstructure:"short_link_length"`
}
var GlobalConfig *Config

Jump to

Keyboard shortcuts

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