1
0
mirror of https://github.com/nitezs/sub2sing-box.git synced 2024-12-23 21:34:41 -05:00
sub2sing-box/constant/parsers_map.go
2024-03-11 17:31:29 +08:00

17 lines
454 B
Go

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,
}