1
0
mirror of https://github.com/nitezs/sub2sing-box.git synced 2024-12-24 23:14:42 -05:00
sub2sing-box/constant/parsers_map.go

17 lines
454 B
Go
Raw Normal View History

2024-03-11 05:31:29 -04:00
package constant
import (
"sub2sing-box/model"
"sub2sing-box/parser"
)
var ParserMap map[string]func(string) (model.Proxy, error) = map[string]func(string) (model.Proxy, error){
"ss://": parser.ParseShadowsocks,
"vmess://": parser.ParseVmess,
"trojan://": parser.ParseTrojan,
"vless://": parser.ParseVless,
"hysteria://": parser.ParseHysteria,
"hy2://": parser.ParseHysteria2,
"hysteria2://": parser.ParseHysteria2,
}