Versions in this module Expand all Collapse all v0 v0.0.8 Mar 5, 2022 v0.0.7 Jan 6, 2022 Changes in this version + func FileReadByLine(fileName string, logic func(line string) error) error + func GenPassword(key, pwd string) string v0.0.6 Sep 17, 2021 Changes in this version + const SSRCipher + const SSROBFS + const SSRPort + const SSRProtocol + const SSRServer + const SSRSuffix + func Base64DecodeStripped(s string) (string, error) + func CopyFile(from, to string) error + func Disable() + func DownloadWithProgressbar(fileUrl, fileName string) error + func DownloadWithProgressbarWithTimeout(fileUrl, fileName string, timeout time.Duration) error + func EnableSysPac(proxy string) + func EnableSysProxy(proxy string) + func FileExists(path string) bool + func FileRead(filename string) (content string, err error) + func FileWrite(filename string, content string) error + func GetConfigDir() string + func GetExecPath() string + func GetExitSign() chan os.Signal + func GetFileModTime(path string) time.Time + func GetProxyNodeType(u string) types.ProxyNodeType + func GetPwd() string + func GetRealIpFromCtx(ctx *fiber.Ctx) string + func GetUserConfigDir() string + func GetUserHomeDir() string + func IsDir(path string) bool + func IsFile(path string) bool + func IsIp(ip string) bool + func IsIpV4(ip string) bool + func IsIpV6(ip string) bool + func Md5(s string) string + func Now() uint32 + func RandStringRunes(n int) string + func Sha224(s string) string + func Sha256(s string) string + func Sha384(s string) string + func Sha512(s string) string + func ShortStr(str string, max int) string + func ShortStr4Web(str string, max int) string + type ClashRSSR struct + Cipher string + Name string + OBFS string + OBFSParam string + Password string + Port interface{} + Protocol string + ProtocolParam string + Server string + Type string + type ClashSS struct + Cipher string + Name string + Password string + Plugin string + PluginOpts PluginOpts + Port interface{} + Server string + Type string + type ClashVmess struct + AlterID interface{} + Cipher string + Name string + Network string + Port interface{} + Server string + SkipCertVerify bool + TLS bool + Type string + UUID string + WSHeaders map[string]string + WSPATH string + type Ecc struct + func NewEcc() *Ecc + func (p *Ecc) ECCDecrypt(ct string) (string, error) + func (p *Ecc) ECCEncrypt(pt interface{}) (string, error) + func (p *Ecc) ECCEncrypt4Bytes(pt []byte) (string, error) + func (p *Ecc) ECCEncrypt4Str(pt string) (string, error) + func (p *Ecc) EccSign(pt []byte) (sign []byte, err error) + func (p *Ecc) EccSignVer(pt, sign []byte) bool + func (p *Ecc) GetPrivate() *ecdsa.PrivateKey + func (p *Ecc) Init(key string) error + type PluginOpts struct + Host string + Mode string + type SSD struct + Airport string + Encryption string + Expiry string + Password string + Port int + Servers []struct{ ... } + TrafficTotal float64 + TrafficUsed float64 + URL string + type Trojan struct + Name string + Password string + Port interface{} + Server string + Sni string + Type string + type Vmess struct + Add string + Aid interface{} + Host string + ID string + Net string + PS string + Path string + Port interface{} + TLS string + Type string + V interface{}